Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Support #11

Open
phomm opened this issue Dec 16, 2016 · 2 comments
Open

Android Support #11

phomm opened this issue Dec 16, 2016 · 2 comments

Comments

@phomm
Copy link

phomm commented Dec 16, 2016

Hello
It's written in readme, that Terra has Android support via FPC and Delphi
I've tried to build Terra samples for windows - everything is OK, tried on Android - lots of compilation errors about not working "system" routines like debug, callstack, cmem, unixthreads and so on, main units like terra_object or terra_string are not compilable due to string types unsupported for android target.
Tried some steps like putting conditional defines, commenting some units - still lots of errors.

Please provide info about the way to get Terra running on android, either Delphi(preferably) or FPC (which is way harder to get anything working in android-building toolchain).

P.S. I'm using Delphi XE7 update1 and do things for android with it (i.e. http://delphioga.sf.net/ even without FMX), tried some FPC-guides for android, but not yet successful (if Terra would support only FPC for Android - it's OK, I'll manage that)
Thank you for Terra, BTW.

@phomm phomm changed the title Android Supprt for Delphi Android Support Dec 16, 2016
@Relfos
Copy link
Owner

Relfos commented Dec 16, 2016

TERRA does support Android, I made this game that is published in the Play Store with TERRA + FPC 2.7
(https://play.google.com/store/apps/details?id=com.terra.minimon3d&hl=en)

However let me warn you that it is difficult to get this working, in part due to TERRA being a huge project but also due to FPC support for Android being extremely fragile. As far as I know the only way to currrently getting this to work will be using the "old_master" branch (this is the one that is used in my game and that I can garantee that works fine in Android) and you'll need FPC 2.7 (as far as I know, the 3.0 release changed the way that strings work and other stuff, and broke TERRA in Android).

Also you will need a FPC 2.7 compiled with support for native floating point, this is extremly important, as from what I remembered, the available precompiled binaries were compiled with soft floatiing point emulation, which for games is very bad for performance.

@Relfos
Copy link
Owner

Relfos commented Dec 16, 2016

About Delphi, I only use Delphi 7 for compiling in Windows, I dont have access to other versions, so I can't comment much about support.
Some other coders already sent me patches that allows to use TERRA in Delphi XE2 (and possibly others).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants