Odamex Message Boards
Community Discussion => Developer's Corner => Topic started by: Fellowzdoomer on July 15, 2015, 19:29:02
-
Hello guys. (Is anybody even alive around here?)
I am trying to compile the source of Odamex to Android, using an app called C4Droid. I have all the files, and I can program in a touch screen UI, however,upon attempting to compile (or even test-run) the file c_main.h, I get this error. Is there any way to work around this?
Image of the error. It's basically an undefined reference to main error. (http://i.imgur.com/BHkaWsQ.png)
-
Hi fellowzdoomer,
I don't think we really have any internal experts on Android, but I did reach out to CSG about this (as he's compiled some android ports) and he said that he "always checks for native_app_glue". I'm not sure if this helps. He said he would look into it further. I'll be sure to post any follow-ups.
-
Hey ralphis. Its been a while.
I'll check up on this "native_app_glue" thing. It sounds new to me so I'm sure Google will be most helpful. I'll post again with my updates on this matter.
EDIT: Hmm... I'm still getting an undefined reference to main error. Should I #include it in the c_main file?
-
Bump to say I have my undefined reference to main error fixed. I'll let you guys know what else is happening.
-
Keep it up FZ, hope you make some headway soon.
-
Keep it up FZ, hope you make some headway soon.
Bump to say that I have successfully compiled Odamex to Android! I took the Prboom4Android code and replaced the entire PrBoom code with Odamex's code. However, it crashes when I tap play. I need an Odamex.so or libodamex.so, the way I have it now is that it is trying to load PrBoom.so so I need help in that department.
Edit: it crashes if the code is anything but PrBoom. Odamex has nothing to do with it.