<div>Hi all,</div><div><br></div><div>I''m a newbie of android development & trying to port olsrd-0.6.1 to my HTC Desire phone.</div><div>I have been download android NDK version 4 & move the NDK folder to /opt/, just like Makefile.android said:</div>
<div><br></div><div><div>NDK = /opt/android-ndk-r4b</div><div>NDK_ARCH = $(NDK)/build/platforms/android-3/arch-arm</div></div><div><br></div><div>Then, I start to compile it with:</div><div><br></div><div>sudo make OS=android DEBUG=0 build_all</div>
<div><br></div><div>However, it suddenly show many error message below:</div><div><br></div><div><div>/opt/android-ndk-r4b/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin/../lib/gcc/arm-eabi/4.2.1/include/stdio.h:50:23: error: sys/cdefs.h: No such file or directory</div>
<div>/opt/android-ndk-r4b/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin/../lib/gcc/arm-eabi/4.2.1/include/stdio.h:51:24: error: sys/_types.h: No such file or directory</div><div>src/unix/misc.c:43:20: error: unistd.h: No such file or directory</div>
</div><div>......</div><div><br></div><div>It seems like it could't find these header files, and those are in /opt/android-ndk-r4b/build/platforms/android-3/arch-arm/usr/include folder.</div><div>But Makefile.android have been already setup the external path of header files:</div>
<div><br></div><div><div>CFLAGS += -I$(NDK_ARCH)/usr/include</div><div>CFLAGS += -I$(TOPDIR)/android</div></div><div><br></div><div>Does anyone had the same problem or solution? Thanks. </div><div><br></div><span style="color:rgb(192, 192, 192)">Regards,<br>
--</span><br style="color:rgb(192, 192, 192)"><font color="#c0c0c0">Jeff Jheng</font>