Sarge
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Issues with porting PrBoom+ for android.
 
Author
All times are GMT. The time now is 03:33. Post New Thread    Post A Reply
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


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?

Old Post 06-25-13 14:59 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 6006
Registered: 08-00



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.

Old Post 06-25-13 15:49 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


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

Old Post 06-25-13 15:59 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


BTW this version of Z_Zone.h works... https://code.google.com/p/prboom4an...prboom/z_zone.h

Old Post 06-25-13 16:28 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


I copied over the .h no dice

Old Post 06-25-13 16:33 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


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

Old Post 06-25-13 17:44 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


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

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

Old Post 06-25-13 22:11 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 03:33. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Issues with porting PrBoom+ for android.

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.