love-android-sdl2 (native, 0.9.2)
Re: love-android-sdl2 (native, 0.9.0)
I was playing around with this, and managed to compile the sources. I've been mostly using the precompiled version for app testing, but today I decided to try and see if what I for the game that I have now works on compiled version.
I was happy to notice that it does work, and I even managed to remove some of the activities from the game (I personally do not want to give a random application license to use internet, but rather just not use the app at all), but I noticed that vibrate thing is the only one that cannot be removed without actually making the game crash when pausing(switching app). So I was wondering if there is an easy way to completely remove the vibration support from the löve?
Also I was happy to notice that it is possible to save and load files without the need to give permission for external storage.
I was happy to notice that it does work, and I even managed to remove some of the activities from the game (I personally do not want to give a random application license to use internet, but rather just not use the app at all), but I noticed that vibrate thing is the only one that cannot be removed without actually making the game crash when pausing(switching app). So I was wondering if there is an easy way to completely remove the vibration support from the löve?
Also I was happy to notice that it is possible to save and load files without the need to give permission for external storage.
Re: love-android-sdl2 (native, 0.9.0)
The easiest would be to adjust the function vibrate() in GameActivity.java to do nothing.Muris wrote:So I was wondering if there is an easy way to completely remove the vibration support from the löve?
Bird thing: @fysxdotorg Blog thing: fysx.org
Re: love-android-sdl2 (native, 0.9.0)
Oh, umm I mean it crashes on pause because of:fysx wrote:The easiest would be to adjust the function vibrate() in GameActivity.java to do nothing.Muris wrote:So I was wondering if there is an easy way to completely remove the vibration support from the löve?
Code: Select all
vibrator.cancel();
Code: Select all
in begin of gameactivity.java
private static Vibrator vibrator = null;
in oncreate:
context = this.getApplicationContext();
if( context.checkCallingOrSelfPermission("android.permission.VIBRATE") ==
context.getPackageManager().PERMISSION_GRANTED ) {
Log.d("GameActivity", "Permission for vibrator granted.");
vibrator = (Vibrator) this.context.getSystemService(Context.VIBRATOR_SERVICE);
}
and on destroy / pause
if( vibrator != null ) {
Log.d("GameActivity", "Cancelling vibration");
vibrator.cancel();
}
and then in vibrate function
if( vibrator != null ) {
vibrator.vibrate((long) (seconds * 1000.));
}
Re: love-android-sdl2 (native, 0.9.0)
i have this error
and
Code: Select all
atos@atos-1011PX ~/love-android-sdl2 $ ant debug
Buildfile: /home/atos/love-android-sdl2/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.0.2
[checkenv] Installed at /home/atos/Android/Sdk
-setup:
[echo] Project Name: love_android_sdl2
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 21.1.2
[echo] Resolving Build Target for love_android_sdl2...
BUILD FAILED
/home/atos/Android/Sdk/tools/ant/build.xml:542: Unable to resolve project target 'android-19'
Total time: 6 seconds
Code: Select all
atos@atos-1011PX ~/love-android-sdl2 $ ant debug
Buildfile: /home/atos/love-android-sdl2/build.xml
BUILD FAILED
/home/atos/love-android-sdl2/build.xml:56: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable.
Total time: 2 seconds
Re: love-android-sdl2 (native, 0.9.0)
Either set android:targetSdkVersion in AndroidManifest.xml to 21 or install the Android SDK Build-tools Rev. 19.atos93 wrote:i have this errorCode: Select all
atos@atos-1011PX ~/love-android-sdl2 $ ant debug [...] -build-setup: [getbuildtools] Using latest Build Tools: 21.1.2 [echo] Resolving Build Target for love_android_sdl2... BUILD FAILED /home/atos/Android/Sdk/tools/ant/build.xml:542: Unable to resolve project target 'android-19'
Running the suggested 'android update project' fixes this.atos93 wrote:i have this errorandCode: Select all
atos@atos-1011PX ~/love-android-sdl2 $ ant debug Buildfile: /home/atos/love-android-sdl2/build.xml BUILD FAILED /home/atos/love-android-sdl2/build.xml:56: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable. Total time: 2 seconds
Bird thing: @fysxdotorg Blog thing: fysx.org
- Ranguna259
- Party member
- Posts: 911
- Joined: Tue Jun 18, 2013 10:58 pm
- Location: I'm right next to you
Re: love-android-sdl2 (native, 0.9.0)
How do I filter love's prints in logcat ?
I've tried
But I get no outputs.
EDIT: DOS only
I've tried
Code: Select all
adb logcat org.love2d.android:V *:S
EDIT: DOS only
Code: Select all
adb logcat | find "LOVE"
Re: love-android-sdl2 (native, 0.9.0)
I'm having major problems actually creating a .apk that works. I had managed it 3 months ago, but now I have a new computer so I needed to set everything up again. I'm on Windows 8 64-bit.
I do successfully make a .apk(when I do ant debug/ant release) but when I try to run it on my phone the game crashes immediately.
I first thought it was because of this:
And I thought that happens because I had a Icelandic letter in my user folder in windows, í. So I moved everything to another hard-drive but still it's all failing.
This is what comes from "ndk-build" in hard-drive with no Icelandic letters:
So does anybody know whats wrong? I absolutely hate this step of game development. Making a working .apk this way is horribly frustrating.
I do successfully make a .apk(when I do ant debug/ant release) but when I try to run it on my phone the game crashes immediately.
I first thought it was because of this:
Code: Select all
arm-linux-androideabi-g++: error: CreateProcess: No such file or directory
make.exe: *** [obj/local/armeabi/objs/love/src/love.o] Error 1
This is what comes from "ndk-build" in hard-drive with no Icelandic letters:
Code: Select all
E:\Android-release\love-android-repository\MartinFelis-love-android-sdl2-5048f3f
f8c20>ndk-build
E:/Android-release/NDK/android-ndk-r10d/build/core/add-toolchain.mk:35: E:/Andro
id-release/NDK/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/config.mk:
Invalid argument
E:/Android-release/NDK/android-ndk-r10d/build/core/add-toolchain.mk:35: E:/Andro
id-release/NDK/android-ndk-r10d/toolchains/x86_64-4.9/config.mk: Invalid argumen
t
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersi
on 10 in ./AndroidManifest.xml
[armeabi] Compile++ thumb: love <= love.cpp
arm-linux-androideabi-g++: error: CreateProcess: No such file or directory
make.exe: *** [obj/local/armeabi/objs/love/src/love.o] Error 1
Email: ic4ruz39@gmail.com
Re: love-android-sdl2 (native, 0.9.0)
That means that your apk build was not succesfull (compare the resulting *.apk sizes). For some reason compilation of love.o failed (check earlier error messages), and without this file love2d does not work.Mermersk wrote:I'm having major problems actually creating a .apk that works. I had managed it 3 months ago, but now I have a new computer so I needed to set everything up again. I'm on Windows 8 64-bit.
I do successfully make a .apk(when I do ant debug/ant release) but when I try to run it on my phone the game crashes immediately.
I first thought it was because of this:
Code: Select all
arm-linux-androideabi-g++: error: CreateProcess: No such file or directory make.exe: *** [obj/local/armeabi/objs/love/src/love.o] Error 1
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples
Re: love-android-sdl2 (native, 0.9.0)
But what is love.o ? And how can this be fixed? What is armeabi? Remember installing it when I was selecting Android SDK plugins or something.miko wrote:That means that your apk build was not succesfull (compare the resulting *.apk sizes). For some reason compilation of love.o failed (check earlier error messages), and without this file love2d does not work.Mermersk wrote:I'm having major problems actually creating a .apk that works. I had managed it 3 months ago, but now I have a new computer so I needed to set everything up again. I'm on Windows 8 64-bit.
I do successfully make a .apk(when I do ant debug/ant release) but when I try to run it on my phone the game crashes immediately.
I first thought it was because of this:
Code: Select all
arm-linux-androideabi-g++: error: CreateProcess: No such file or directory make.exe: *** [obj/local/armeabi/objs/love/src/love.o] Error 1
Email: ic4ruz39@gmail.com
Re: love-android-sdl2 (native, 0.9.0)
love.o is "everything", means a game engine (love2d) as a library ("object file"). armeabi is a binary format form ARM platform. To create a binary files for android (ARM) on your PC (Intel), you need to have working cross-compiler. Android SDK should do that for you. Maybe you need to reinstall it. Try a "hello world" example for android first, and if that works out, retry with love2d.Mermersk wrote: But what is love.o ? And how can this be fixed? What is armeabi? Remember installing it when I was selecting Android SDK plugins or something.
Also, be sure to theck out this: http://stackoverflow.com/questions/7651 ... tory-error
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples
Who is online
Users browsing this forum: No registered users and 6 guests