#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <sys/ioctl.h>
LOCAL_PATH := /home/nick/.projects/39dll-4-linux/jni
include $(CLEAR_VARS)
LOCAL_MODULE := 39dll-4-linux
LOCAL_SRC_FILES := buffer.cpp, list.cpp, main.cpp, md5.cpp, socket.cpp, tools.cpp
INCLUDE_HEADERS := sys/socket.h, sys/types.h, netinet/in.h, arpa/inet.h, netinet/tcp.h, stdio.h, stdlib.h, string.h, iostream, sys/ioctl.h
include $(BUILD_SHARED_LIBRARY)
I use POSIX compliant method calls and types. Will a lib that is not compiled with the ndk work with android?
Also, if i have to use the the NDK, is this the correct way to specify my makefile?LOCAL_PATH := /home/nick/.projects/39dll-4-linux/jni
include $(CLEAR_VARS)
LOCAL_MODULE := 39dll-4-linux
LOCAL_SRC_FILES := buffer.cpp, list.cpp, main.cpp, md5.cpp, socket.cpp, tools.cpp
INCLUDE_HEADERS := sys/socket.h, sys/types.h, netinet/in.h, arpa/inet.h, netinet/tcp.h, stdio.h, stdlib.h, string.h, iostream, sys/ioctl.h
include $(BUILD_SHARED_LIBRARY)
Do you separate the individual libs with commas, semicolons, or what?
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/nqJvje4MyIUJ.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
$ /usr/bin/android-ndk-r8/ndk-build
make: /usr/bin/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found
make: /usr/bin/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found
Compile++ thumb : 39dll-4-linux <= buffer.cpp
make: /usr/bin/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++: Command not found
make: *** [/home/nick/.projects/39dll-4-linux/obj/local/armeabi/objs/39dll-4-linux/buffer.o] Error 127
To unsubscribe from this group, send email to android-ndk+unsubscribe@googlegroups.com.