Page 18 of 20

Re: Android port

Posted: 04 Mar 2017 23:48
by pi1985
I vant to build an android version of Spring PP, but...

Code: Select all

$ ./build.sh
Android NDK: WARNING: APP_PLATFORM android-18 is larger than android:minSdkVersion 9 in jni/../AndroidManifest.xml    
Android NDK: WARNING:jni/../jni/nanogl/Android.mk:nanogl: LOCAL_LDLIBS is always ignored for static libraries    
Android NDK: WARNING:jni/../jni/xerces/Android.mk:xerces: LOCAL_LDLIBS is always ignored for static libraries    
Android NDK: WARNING:jni/../jni/yaml-cpp/Android.mk:yaml-cpp: LOCAL_LDLIBS is always ignored for static libraries    
jni/../jni/application/Android.mk:93: предупреждение: переопределение способа для цели `jni/../jni/application/src/libapplication-armeabi.so'
jni/../jni/application/Android.mk:93: предупреждение: старый способ для цели `jni/../jni/application/src/libapplication-armeabi.so' игнорируются
jni/../jni/application/Android.mk:100: предупреждение: переопределение способа для цели `jni/../jni/application/src/libapplication-armeabi-v7a.so'
jni/../jni/application/Android.mk:100: предупреждение: старый способ для цели `jni/../jni/application/src/libapplication-armeabi-v7a.so' игнорируются
jni/../jni/application/Android.mk:106: предупреждение: переопределение способа для цели `jni/../jni/application/src/libapplication-armeabi-v7a-hard.so'
jni/../jni/application/Android.mk:106: предупреждение: старый способ для цели `jni/../jni/application/src/libapplication-armeabi-v7a-hard.so' игнорируются
jni/../jni/application/Android.mk:112: предупреждение: переопределение способа для цели `jni/../jni/application/src/libapplication-mips.so'
jni/../jni/application/Android.mk:112: предупреждение: старый способ для цели `jni/../jni/application/src/libapplication-mips.so' игнорируются
jni/../jni/application/Android.mk:118: предупреждение: переопределение способа для цели `jni/../jni/application/src/libapplication-x86.so'
jni/../jni/application/Android.mk:118: предупреждение: старый способ для цели `jni/../jni/application/src/libapplication-x86.so' игнорируются
jni/../jni/application/Android.mk:124: предупреждение: переопределение способа для цели `jni/../jni/application/src/libapplication-arm64-v8a.so'
jni/../jni/application/Android.mk:124: предупреждение: старый способ для цели `jni/../jni/application/src/libapplication-arm64-v8a.so' игнорируются
jni/../jni/application/Android.mk:130: предупреждение: переопределение способа для цели `jni/../jni/application/src/libapplication-x86_64.so'
jni/../jni/application/Android.mk:130: предупреждение: старый способ для цели `jni/../jni/application/src/libapplication-x86_64.so' игнорируются
Android NDK: WARNING:jni/../jni/nanogl/Android.mk:nanogl: LOCAL_LDLIBS is always ignored for static libraries    
Android NDK: WARNING:jni/../jni/xerces/Android.mk:xerces: LOCAL_LDLIBS is always ignored for static libraries    
Android NDK: WARNING:jni/../jni/yaml-cpp/Android.mk:yaml-cpp: LOCAL_LDLIBS is always ignored for static libraries    
rm -f ./libs/arm64-v8a/lib*.so ./libs/armeabi/lib*.so ./libs/armeabi-v7a/lib*.so ./libs/armeabi-v7a-hard/lib*.so ./libs/mips/lib*.so ./libs/mips64/lib*.so ./libs/x86/lib*.so ./libs/x86_64/lib*.so
rm -f ./libs/arm64-v8a/gdbserver ./libs/armeabi/gdbserver ./libs/armeabi-v7a/gdbserver ./libs/armeabi-v7a-hard/gdbserver ./libs/mips/gdbserver ./libs/mips64/gdbserver ./libs/x86/gdbserver ./libs/x86_64/gdbserver
cd jni/../jni/application/src && until mkdir .lock >/dev/null 2>&1; do sleep 1; done && \
./AndroidBuild.sh armeabi-v7a arm-linux-androideabi && rmdir .lock >/dev/null 2>&1
rm -f ./libs/arm64-v8a/gdb.setup ./libs/armeabi/gdb.setup ./libs/armeabi-v7a/gdb.setup ./libs/armeabi-v7a-hard/gdb.setup ./libs/mips/gdb.setup ./libs/mips64/gdb.setup ./libs/x86/gdb.setup ./libs/x86_64/gdb.setup
cd jni/../jni/application/src && until mkdir .lock >/dev/null 2>&1; do sleep 1; done && \
./AndroidBuild.sh x86 i686-linux-android && rmdir .lock >/dev/null 2>&1
../setEnvironment-armeabi-v7a.sh: line 41: syntax error near unexpected token `;;'
../setEnvironment-armeabi-v7a.sh: line 41: `                    crypto) echo crypto.so.sdl.1;;'
make: *** [jni/../jni/application/src/libapplication-armeabi-v7a.so] Ошибка 1
make: *** Ожидание завершения заданий...
^Cmake: *** [jni/../jni/application/src/libapplication-x86.so] Прерывание
$
What's wrong?

Re: Android port

Posted: 05 Mar 2017 02:11
by pelya
Strange error. What OS do you use? Did you put any spaces in the path to sourcrs?

Re: Android port

Posted: 05 Mar 2017 03:33
by pi1985
I use AltLinux distribution.
Moved dir to ~, but nothing changed. It was some Cyrillic symbols, but no spaces.

Re: Android port

Posted: 09 Mar 2017 07:18
by Zhall
So.. how do I access my network saves from my pc?

Re: Android port

Posted: 09 Mar 2017 09:55
by Amak
Zhall wrote:So.. how do I access my network saves from my pc?
Easiest method:

Use dropbox and set both save folders to sync.

Medium method:
Share openttd save folder (mydocs/openttd normally), use ES File explorer to copy whichever saves to device.

Hardest method:
https://forums.geforce.com/default/topi ... tem-root-/

probably various other methods/apps todo with folder sync as well.

Re: Android port

Posted: 09 Mar 2017 18:15
by pelya
Your save files are at <SD card>/Android/data/org.openttd.sdl/files/.openttd/save
Just plug your phone into PC and copy them using a file manager.

Re: Android port

Posted: 20 Mar 2017 21:26
by pelya
I've had just enough free time today to release OpenTTD 1.7.0-RC1 to the beta channel on Play Store.
I'm planning a big GUI revamp for the final release, increasing buttons size even more, but I cannot promise that I will actually manage to do it.

Re: Android port

Posted: 26 Mar 2017 21:52
by pelya
I'm designing a new, more compact toolbar layout, with 10 buttons on each side of the screen.
I'd like some comments about button placement, I think that 'Town directory' button at the bottom left could be replaced with something that is used more often.

Which 'information' button do you use most often? Aside from Trains/Cars/Ships/Airplanes, which have fixed position on the right side.

Image

Image

Re: Android port

Posted: 02 Apr 2017 21:22
by pelya
1.7.0 update is out on Google Play.
It includes my attempt to improve touchscreen UI even further, you can activate it by disabling 'Title bars' setting in Game Options dialog.
This feature is active by default for new installations. To close dialogs in the game, drag them to the screen edge.
This release also includes a small easter egg, which was supposed to be April's joke, but I did not manage to publish it on April 1-st. I'll remove it in a week or two.

Re: Android port

Posted: 07 Apr 2017 09:39
by WalenTheBlue
[Copied from the main forum]

Horizontal toolbar missing ctrl/shift buttons

Why does the new mobile release change the toolbar layout? Vertical one is just fine as it used to be, but the horizontal layout is not. Having to plug in a physical keyboard kinda defeats the purpose of playing on a touch-based tablet. And my preference is to use the horizontal setting.

Any quick workarounds? Btw, it is an unrooted device so no tinkering with files directly is possible.

Re: Android port

Posted: 07 Apr 2017 20:46
by pelya
Should be fixed in release 1.7.0.69

Re: Android port

Posted: 10 Apr 2017 12:48
by mr jj
Hi Pelya ! Is it possible to use the NRT roads in android ? Or is only possible on computer ?

Re: Android port

Posted: 10 Apr 2017 13:58
by pelya
I only provide Android builds for the official OpenTTD releases.
If you want patched OpenTTD for Android, you will have to patch and recompile Android version yourself

Re: Android port

Posted: 20 Apr 2017 16:21
by ADN707
An issue since the latest update is my screen doesn't time out anymore. Is there a setting for this? It's killing my battery. ?( Thanks for the port, love this game.

Re: Android port

Posted: 20 Apr 2017 17:44
by pelya
Yes, I thought it would be better to prevent the phone from sleeping when the app is open, like all other games do.
How is this an issue? Are you forgetting to lock your phone?

Re: Android port

Posted: 20 Apr 2017 22:41
by ADN707
It's my tablet. I play for about 10 to 30 minutes at a time then just put it down. I can see it would be a help at times, but it doesn't work for me. A setting somewhere, say in options, would be great. :D

Re: Android port

Posted: 20 Apr 2017 22:50
by pelya
There's no such setting, sorry.

Re: Android port

Posted: 27 Jun 2017 17:55
by pelya
New release 1.7.1.70 removes 'switch toolbar' button, and puts all actions into submenus, the setting is called 'Compact vertical toolbar'.

Did anyone notice window border ornament in Android version? I am kind of worried, it's been half-year already, and no one has complained about this. Did I pick too muted color for it?

Re: Android port

Posted: 01 Jul 2017 12:24
by DeletedUser10
Why it's requiring google play games?
It's just a DOS game.
Is it strange?

Re: Android port

Posted: 01 Jul 2017 13:18
by pelya
For cloud saves. It will work without Google Play.