facebookarchive / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
3.3k stars 1.02k forks source link

Android compilation fail #66

Closed antlafarge closed 9 years ago

antlafarge commented 9 years ago

Hello, when I try to build RakNet for Android with cygwin, I get this error :

jni/RakNetSources/FileList.cpp:18:20: fatal error: asm/io.h: No such file or directory
 #include <asm/io.h>
larku commented 9 years ago

If I remember correctly I simply commented out/removed this include.

antlafarge commented 9 years ago

Okay well, now I get this error.

jni/RakNetSources/RandSync.cpp:13:18: fatal error: limits: No such file or directory
 #include <limits>
antlafarge commented 9 years ago

Okay I managed to build RakNet adding my APP_STL := stlport_static in Application.mk (add the STL).

ankurgupta7 commented 7 years ago

Thanks for the pointer. Though I solved it with APP_STL := c++_static

lizijie commented 6 years ago

@ankurgupta7 not work for me