Hello dear Community,
I'm trying to compile the iproute2-package for quite a while now.
I want to compile iproute2 to use it in my android-ndk project which should run on the am335x evm lcd board.
My first try was compiling iproute2 using cygwin since my os is w7.
I'm using "ndk-build" like i used sucessfully in my former android-ndk project.
But i always ended up like this with some error-messages i wasnt able to solve.
My Error messages:
$ /cygdrive/c/Backup/android-ndk-r8d-windows/android-ndk-r8d/ndk-build
Compile thumb : ip <= ip.c
In file included from jni/ip/ip.c:17:0:
C:/Backup/android-ndk-r8d-windows/android-ndk-r8d/platforms/android-14/arch-arm/usr/include/sys/socket.h:74:44: warning: 'struct msghdr' declared inside parameter list [enabled by default]
C:/Backup/android-ndk-r8d-windows/android-ndk-r8d/platforms/android-14/arch-arm/usr/include/sys/socket.h:74:44: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
C:/Backup/android-ndk-r8d-windows/android-ndk-r8d/platforms/android-14/arch-arm/usr/include/sys/socket.h:75:38: warning: 'struct msghdr' declared inside parameter list [enabled by default]
jni/ip/ip.c:26:24: error: 'AF_UNSPEC' undeclared here (not in a function)
jni/ip/ip.c: In function 'do_help':
jni/ip/ip.c:53:24: warning: unused parameter 'argc' [-Wunused-parameter]
jni/ip/ip.c:53:37: warning: unused parameter 'argv' [-Wunused-parameter]
jni/ip/ip.c: In function 'main':
jni/ip/ip.c:167:24: error: 'AF_INET' undeclared (first use in this function)
jni/ip/ip.c:167:24: note: each undeclared identifier is reported only once for each function it appears in
jni/ip/ip.c:169:24: error: 'AF_INET6' undeclared (first use in this function)
jni/ip/ip.c:173:24: error: 'AF_PACKET' undeclared (first use in this function)
jni/ip/ip.c:175:24: error: 'AF_IPX' undeclared (first use in this function)
/cygdrive/c/Backup/android-ndk-r8d-windows/android-ndk-r8d/build/core/build-binary.mk:266: recipe for target `obj/local/armeabi/objs/ip/ip.o' failed
I couldnt find a solution for that problem, so i tried to follow the instructions of the AM335x DCAN Driver Guide.
After following the steps until im trying to compile using "make" i get another bunch of error messages.
$ make
make[1]: Entering directory `/cygdrive/c/workspace/CANAndroid/jni/lib'
cc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -fPIC -c -o ll_map.o ll_map.c
make[1]: cc: Kommando nicht gefunden // "commando not found"
<builtin>: recipe for target `ll_map.o' failed
make[1]: *** [ll_map.o] Error 127
make[1]: Leaving directory `/cygdrive/c/workspace/CANAndroid/jni/lib'
Makefile:43: recipe for target `all' failed
make: *** [all] Error 2
Im stuck at this problem for quite a while now, im not sure if this is the right place to ask that but i hope someone can help me.