partyk1d24 Posted June 25, 2013 I am trying to make this general so I can ask multiple questions. Anyway, currently I am trying to compile Prboom+ for android. I got it to gen config.h but when I try to build I see... In file included from /Users/me/Development/Android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/stdio.h:50:0, from ./src/z_zone.h:52, from ./src/doomdef.h:49, from ./src/d_items.h:38, from ./src/d_player.h:43, from ./src/doomstat.h:43, from ./src/am_map.c:39: /Users/me/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/include/stddef.h:212:23: error: duplicate 'unsigned' /Users/me/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/include/stddef.h:212:23: error: two or more data types in declaration specifiers In file included from /Users/jackiegleason/Development/Android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/stdio.h:55:0, from ./src/z_zone.h:52, from ./src/doomdef.h:49, from ./src/d_items.h:38, from ./src/d_player.h:43, from ./src/doomstat.h:43, from ./src/am_map.c:39: /Users/me/Development/Android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/sys/types.h:59:30: error: two or more data types in declaration specifiers /Users/me/Development/Android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/sys/types.h:59:1: warning: useless type name in empty declaration [enabled by default] /Users/me/Development/Android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/sys/types.h:101:33: error: two or more data types in declaration specifiers /Users/me/Development/Android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include/sys/types.h:101:1: warning: useless type name in empty declaration [enabled by default] Anyone know what I am missing here? 0 Share this post Link to post
Quasar Posted June 25, 2013 partyk1d24 said:I am trying to make this general so I can ask multiple questions. Anyway, currently I am trying to compile Prboom+ for android. I got it to gen config.h but when I try to build I see... Those errors are in the standard platform SDK headers... check for #defines that might be interfering with the contents of them, I guess, first off. BOOM did a number of bad, bad things like redefining malloc/free/realloc/strdup, etc. that some platforms will puke on. This was accomplished through the header z_zone.h, where most of the std* headers are included so, personally I'd start looking there before anywhere else. 0 Share this post Link to post
partyk1d24 Posted June 25, 2013 Thanks for the ideas, that is the file I was on right now anyway. Any examples of possible values to look for? 0 Share this post Link to post
partyk1d24 Posted June 25, 2013 BTW this version of Z_Zone.h works... https://code.google.com/p/prboom4android/source/browse/trunk/jni/prboom/z_zone.h 0 Share this post Link to post
partyk1d24 Posted June 25, 2013 Got it... Had to comment out the following in my config.h /* #define gid_t int */ /* #define size_t unsigned int */ /* #define uid_t int */ 0 Share this post Link to post
partyk1d24 Posted June 25, 2013 Install : libdoom.so => libs/armeabi-v7a/libdoom.so ~/Development/porting/ported/doom/prboom2$ :-) Now for some JNI wrapping.... 0 Share this post Link to post