aliens

Author Topic: Android port ?  (Read 5934 times)

Offline michal

  • Commander
  • *****
  • Posts: 629
    • View Profile
Android port ?
« on: December 29, 2010, 09:59:31 am »
Someone on The Something Awful Forums ( https://forums.somethingawful.com/showthread.php?threadid=3358075&userid=0&perpage=40&pagenumber=5#post386194724 ) suggested android port.

He posted link to sdl port for android:

https://www.anddev.org/code-snippets-for-android-f33/sdl-port-for-android-sdk-ndk-1-6-t9218.html

I'm posting it here in case someone would want (and has android device) to try porting it ;)

Offline sir_nacnud

  • Captain
  • ***
  • Posts: 54
    • View Profile
Re: Android port ?
« Reply #1 on: December 30, 2010, 07:08:07 am »
An Android port may be difficult because native C++ code, ie non Java code, isn't fully supported on the Android platform.  There is no support for RTTI or C++ exceptions.  RTTI includes things like dynamic cast and typeinfo.  RTTI and C++ exceptions are both used though out the OpenXcom code base.  Also there is no support for STL containers, though you can use third party libraries like STL port to provide STL container support.

Offline michal

  • Commander
  • *****
  • Posts: 629
    • View Profile
Re: Android port ?
« Reply #2 on: January 14, 2011, 03:44:40 pm »
Check this out:

https://android-developers.blogspot.com/2011/01/gingerbread-ndk-awesomeness.html

Quote
Finally, r5 adds backwards-compatible support for RTTI, C++ exceptions, wchar_t, and includes improved debugging tools. Clearly, this release represents a large positive ?awesome.
« Last Edit: January 14, 2011, 03:47:09 pm by michal »

Offline sir_nacnud

  • Captain
  • ***
  • Posts: 54
    • View Profile
Re: Android port ?
« Reply #3 on: January 15, 2011, 07:14:08 pm »
That's awesome, finally correct support for C++.

I will have to update my SDK to gingerbeard and see what I can get going with the emulator.

Offline sir_nacnud

  • Captain
  • ***
  • Posts: 54
    • View Profile
Re: Android port ?
« Reply #4 on: January 23, 2011, 01:51:14 am »