Doom Comic
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 > PrBoom+ On Android
 
Author
All times are GMT. The time now is 17:05. Post New Thread    Post A Reply
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


Ok,

So now I have PrBoom+ compiled and running with OpenGL on my Mac, this is pretty awesome. Now I am looking to port over to my Android Tablet, so I download the version of prboom4Android found here https://code.google.com/p/prboom4android/. Now I am trying to port the prBoom+ source over so I run the following....

cp -r .~/doomfolder/prboom2/src ./jni/prboom

But when I run

ndk-build

I see...

jni/prboom/i_video.c:137:1: error: unknown type name 'boolean'
jni/prboom/i_video.c:138:1: error: unknown type name 'boolean'
jni/prboom/i_video.c:339:1: error: unknown type name 'boolean'

What am I missing, where is this typedef? I tried grep -r "typedef boolean" ./ doesn't return what I would expect.

Anyone have any ideas?

Old Post 05-11-13 02:51 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


Actually now I am down to ...

Compile thumb : prboom_jni <= am_map.c
In file included from jni/prboom/am_map.c:47:0:
jni/prboom/am_map.h:48:1: error: unknown type name 'boolean'
jni/prboom/am_map.c:250:1: error: unknown type name 'boolean'
jni/prboom/am_map.c:595:1: error: unknown type name 'boolean'
jni/prboom/am_map.c:843:1: error: unknown type name 'boolean'
make: *** [obj/local/armeabi/objs/prboom_jni/am_map.o] Error 1

Old Post 05-11-13 04:23 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
entryway
Forum Staple


Posts: 2709
Registered: 01-04


doomtype.h
code:
#ifdef __cplusplus typedef bool dboolean; #else typedef enum {false, true} dboolean; #endif

Last edited by entryway on 05-11-13 at 05:10

Old Post 05-11-13 05:04 #
entryway is online now Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


So should I change from boolean to dboolean? I don't see that in the existing prboom4android code it seems to use the boolean still.

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


Posts: 24
Registered: 04-13


Also, anyone have any experience with OpenGL Linking errors?

Getting the following...

/Users/me/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/libSDL.a(SDL_render_gles.o): in function GLES_CreateRenderer:jni/SDL/src/render/opengles/SDL_render_gles.c:189: error: undefined reference to 'glDisableClientState'

I see the reference to <GLES/gl.h> but something must still be getting missed.

Old Post 05-13-13 03:21 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


The weirdest thing is when I run....

cp -rf ../prboom4Android/jni/prboom ./jni/prboom

Everything builds fine, however, when I run this...

cp -rf ../prboom2/src ./jni/prboom

And add the extra classes to the Android.mk everything compiles but doesn't link.

However, moving back using

cp -rf ../prboom4Android/jni/prboom ./jni/prboom

Everything compiles etc perfectly. Any ideas? Here is the errors...

/Users/me/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi/objs-debug/prboom_jni/w_mmap.o: multiple definition of 'W_InitCache'
....
/Users/me/Development/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/libSDL.a(SDL_render_gles.o): in function GLES_DestroyTexture:/Users/jackiegleason/Development/Code/prboom4android-base/jni/SDL/src/render/opengles/SDL_render_gles.c:775: error: undefined reference to 'glDeleteTextures'

Old Post 05-14-13 20:47 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
fx02
Mini-Member


Posts: 80
Registered: 01-04


Any news on this? Watching Doom demos on Android -> time saving.

Old Post 05-19-13 14:54 #
fx02 is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
partyk1d24
Warming Up


Posts: 24
Registered: 04-13


I am still working on it, prboom4android seems to work OK but I would really like to get the prboom+ port working. I will work on getting my version checked into Github and I will post it so others may be able to help.

For now if you want to just see what it is like use the prboom4android it is a pretty ok port.

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


Posts: 24
Registered: 04-13


Here is a link to the version I am working on... Still trying to get it working... (plus symbol didn't work)

https://github.com/jrgleason/prboom-4droid

Old Post 05-21-13 03:59 #
partyk1d24 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 17:05. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > PrBoom+ On 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.

Message Board Statistics