Message Boards

Topic: Attempting to Port to Android  (Read 21961 times)

Offline Fellowzdoomer

  • Posts: 4
    • View Profile
Attempting to Port to Android
« 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.

Offline Ralphis

  • Administrator
  • Posts: 111
    • View Profile
Re: Attempting to Port to Android
« Reply #1 on: July 16, 2015, 01:04:07 »
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.

Offline Fellowzdoomer

  • Posts: 4
    • View Profile
Re: Attempting to Port to Android
« Reply #2 on: July 16, 2015, 06:36:16 »
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?
« Last Edit: July 16, 2015, 06:42:37 by Fellowzdoomer »

Offline Fellowzdoomer

  • Posts: 4
    • View Profile
Re: Attempting to Port to Android
« Reply #3 on: July 18, 2015, 16:51:22 »
Bump to say I have my undefined reference to main error fixed. I'll let you guys know what else is happening.

Offline Doomkid

  • Posts: 75
  • Deathmatch Nut
    • View Profile
    • Doomkid's YT Channel
Re: Attempting to Port to Android
« Reply #4 on: August 03, 2015, 09:02:23 »
Keep it up FZ, hope you make some headway soon.
Part of the Oceanian Doomers Club

Offline Fellowzdoomer

  • Posts: 4
    • View Profile
Re: Attempting to Port to Android
« Reply #5 on: August 18, 2015, 10:43:24 »
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.
« Last Edit: August 20, 2015, 10:55:34 by Fellowzdoomer »