Issues with porting PrBoom+ for android.

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?

Share this post


Link to post
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.

Share this post


Link to post

Thanks for the ideas, that is the file I was on right now anyway. Any examples of possible values to look for?

Share this post


Link to post

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 */

Share this post


Link to post

Install : libdoom.so => libs/armeabi-v7a/libdoom.so
~/Development/porting/ported/doom/prboom2$

:-) Now for some JNI wrapping....

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now