What should I look for? Errors, warnings, both?
Here is the output with aLogcat; there are a couple errors, but unfortunately I don't know a thing about android development :G
love-android-sdl2 (native, 0.9.2)
- Positive07
- Party member
- Posts: 1014
- Joined: Sun Aug 12, 2012 4:34 pm
- Location: Argentina
Re: love-android-sdl2 (native, 0.9.0)
This is a little help for Slime and others developer working with this port, it gives more information about what failed. Thanks for taking the time to do it
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Re: love-android-sdl2 (native, 0.9.0)
Hey, thank you for helping me!Positive07 wrote:This is a little help for Slime and others developer working with this port, it gives more information about what failed. Thanks for taking the time to do it
Re: love-android-sdl2 (native, 0.9.0)
Hey fysx.
I tried to make my first android game today, but when I followed the building instructions, I got the following error in the 'ndk-build' part:
I tried to make my first android game today, but when I followed the building instructions, I got the following error in the 'ndk-build' part:
Code: Select all
[armeabi] SharedLibrary : libdevil.so
C:/android-sdk/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-and
roideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -landroid
collect2: ld returned 1 exit status
make.exe: *** [C:/android-sdk/love-android-sdl2//obj/local/armeabi/libdevil.so] Error 1
Re: love-android-sdl2 (native, 0.9.0)
Hi Satinxs,Satinxs wrote: Here is the output with aLogcat; there are a couple errors, but unfortunately I don't know a thing about android development :G
thank you *very* much for your logs. Someone reported problems with the Moto G but never responded to my requests to post the logs. I really hope that we can get this fixed!
From your logs it seems as if it tries to start a game located in /sdcard/lovegame:
Code: Select all
I/SDL/APP ( 1863): using game from /sdcard/lovegame
Bird thing: @fysxdotorg Blog thing: fysx.org
Re: love-android-sdl2 (native, 0.9.0)
My guess would be that the ANDROID_NDK variable is not properly set.Sind wrote:I tried to make my first android game today, but when I followed the building instructions, I got the following error in the 'ndk-build' part:Code: Select all
[armeabi] SharedLibrary : libdevil.so C:/android-sdk/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-and roideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -landroid collect2: ld returned 1 exit status make.exe: *** [C:/android-sdk/love-android-sdl2//obj/local/armeabi/libdevil.so] Error 1
Things you can do:
1) Find the file libandroid.so somewhere on your system. Should be somewhere in the Android NDK folder.
2) Run ndk-build in verbose mode (i.e. somehow ensure that the environment variable "V" is set to 1). In the linking process (i.e. when ld.exe) is being called it should list the directory found in 1) as -L<directory>. In my case 1) points to /opt/android-ndk-r9c/platforms/android-19/arch-arm/usr/lib and in the linking process I have -L/opt/android-ndk-r9c/platforms/android-19/arch-arm/usr/lib.
Hope that helps.
Bird thing: @fysxdotorg Blog thing: fysx.org
Re: love-android-sdl2 (native, 0.9.0)
Hm.fysx wrote:My guess would be that the ANDROID_NDK variable is not properly set.Sind wrote:I tried to make my first android game today, but when I followed the building instructions, I got the following error in the 'ndk-build' part:Code: Select all
[armeabi] SharedLibrary : libdevil.so C:/android-sdk/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-and roideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -landroid collect2: ld returned 1 exit status make.exe: *** [C:/android-sdk/love-android-sdl2//obj/local/armeabi/libdevil.so] Error 1
Things you can do:
1) Find the file libandroid.so somewhere on your system. Should be somewhere in the Android NDK folder.
2) Run ndk-build in verbose mode (i.e. somehow ensure that the environment variable "V" is set to 1). In the linking process (i.e. when ld.exe) is being called it should list the directory found in 1) as -L<directory>. In my case 1) points to /opt/android-ndk-r9c/platforms/android-19/arch-arm/usr/lib and in the linking process I have -L/opt/android-ndk-r9c/platforms/android-19/arch-arm/usr/lib.
Hope that helps.
The enviorment variable seems to be set correctly.
It's 'name:"ANDROID_NDK", value:"C:\android-sdk\android-ndk-r9c"', which is where the folder is(note: was "C:\android-sdk\android-ndk-r9d" in my previous post, but I downgraded to r9c in case that matterred.)
And "ndk-build -e V=1" gives me
Code: Select all
[armeabi] SharedLibrary : libdevil.so
C:\android-sdk\android-ndk-r9c\/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g
++ -Wl,-soname,libdevil.so -shared --sysroot=C:\android-sdk\android-ndk-r9c\/platforms/android-3/arch-arm C:/android-sdk
/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_exr.o C:/android-sdk/love-android-sdl2//obj/local/armeabi
/objs/devil/src-IL/src/il_nvidia.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_squish.o
C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_utx.o C:/android-sdk/love-android-sdl2//ob
j/local/armeabi/objs/devil/src-IL/src/altivec_common.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/sr
c-IL/src/altivec_typeconversion.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_alloc.o C
:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_bits.o C:/android-sdk/love-android-sdl2//obj
/local/armeabi/objs/devil/src-IL/src/il_blp.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/
il_bmp.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_convbuff.o C:/android-sdk/love-and
roid-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_convert.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs
/devil/src-IL/src/il_cut.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_dcx.o C:/android
-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_dds-save.o C:/android-sdk/love-android-sdl2//obj/loca
l/armeabi/objs/devil/src-IL/src/il_dds.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_de
vil.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_dicom.o C:/android-sdk/love-android-s
dl2//obj/local/armeabi/objs/devil/src-IL/src/il_doom.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/sr
c-IL/src/il_dpx.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_endian.o C:/android-sdk/l
ove-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_error.o C:/android-sdk/love-android-sdl2//obj/local/armeabi
/objs/devil/src-IL/src/il_fastconv.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_files.
o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_fits.o C:/android-sdk/love-android-sdl2//
obj/local/armeabi/objs/devil/src-IL/src/il_ftx.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/s
rc/il_gif.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_hdr.o C:/android-sdk/love-andro
id-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_header.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/de
vil/src-IL/src/il_icns.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_icon.o C:/android-
sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_iff.o C:/android-sdk/love-android-sdl2//obj/local/arme
abi/objs/devil/src-IL/src/il_ilbm.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_interna
l.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_io.o C:/android-sdk/love-android-sdl2//
obj/local/armeabi/objs/devil/src-IL/src/il_iwi.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/s
rc/il_jp2.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_jpeg.o C:/android-sdk/love-andr
oid-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_lif.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devi
l/src-IL/src/il_main.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_manip.o C:/android-s
dk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_mdl.o C:/android-sdk/love-android-sdl2//obj/local/armea
bi/objs/devil/src-IL/src/il_mng.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_mp3.o C:/
android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_neuquant.o C:/android-sdk/love-android-sdl2//o
bj/local/armeabi/objs/devil/src-IL/src/il_pal.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/sr
c/il_pcd.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_pcx.o C:/android-sdk/love-androi
d-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_pic.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/
src-IL/src/il_pix.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_png.o C:/android-sdk/lo
ve-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_pnm.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/ob
js/devil/src-IL/src/il_profiles.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_psd.o C:/
android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_psp.o C:/android-sdk/love-android-sdl2//obj/lo
cal/armeabi/objs/devil/src-IL/src/il_pxr.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_
quantizer.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_raw.o C:/android-sdk/love-andro
id-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_rawdata.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/d
evil/src-IL/src/il_register.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_rle.o C:/andr
oid-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_rot.o C:/android-sdk/love-android-sdl2//obj/local/
armeabi/objs/devil/src-IL/src/il_sgi.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_size
.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_stack.o C:/android-sdk/love-android-sdl2
//obj/local/armeabi/objs/devil/src-IL/src/il_states.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src
-IL/src/il_sun.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_targa.o C:/android-sdk/lov
e-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_texture.o C:/android-sdk/love-android-sdl2//obj/local/armeabi
/objs/devil/src-IL/src/il_tiff.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_tpl.o C:/a
ndroid-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_utility.o C:/android-sdk/love-android-sdl2//obj
/local/armeabi/objs/devil/src-IL/src/il_vtf.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/
il_wal.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_wbmp.o C:/android-sdk/love-android
-sdl2//obj/local/armeabi/objs/devil/src-IL/src/il_wdp.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/objs/devil/s
rc-IL/src/il_xpm.o C:/android-sdk/love-android-sdl2//obj/local/armeabi/libtiff.a C:/android-sdk/love-android-sdl2//obj/l
ocal/armeabi/libpng.a C:/android-sdk/love-android-sdl2//obj/local/armeabi/libjasper.a C:/android-sdk/love-android-sdl2//
obj/local/armeabi/libjpeg.a C:/android-sdk/love-android-sdl2//obj/local/armeabi/libmng.a C:/android-sdk/love-android-sdl
2//obj/local/armeabi/liblcms.a -lgcc C:/android-sdk/love-android-sdl2//obj/local/armeabi/libgnustl_shared.so -no-canonic
al-prefixes -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -llog -landroid -lz C:\android-sdk\android-nd
k-r9c\/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/libsupc++.a -lc -lm -o C:/android-sdk/love-android-sdl2//obj/local
/armeabi/libdevil.so
C:/android-sdk/android-ndk-r9c//toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-an
droideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: error: cannot find -landroid
collect2: ld returned 1 exit status
make.exe: *** [C:/android-sdk/love-android-sdl2//obj/local/armeabi/libdevil.so] Error 1
Edit: Okay, so I found out what my problem was; I was running 'ndk-build' in the wrong folder.
I was running it from the ".externalToolBuilders" folder, instead of the root folder, because that folder actually has a file in it named "ndk-build.launch", and I didn't know that I could run 'ndk-build' from anywhere, so when it said "Run ndk-build on the love-android-sdl2 repo", I understood that as "run the ndk-build that is in the repo"
Re: love-android-sdl2 (native, 0.9.0)
Ah, okay. Good to hear that it works.Sind wrote:Edit: Okay, so I found out what my problem was; I was running 'ndk-build' in the wrong folder.
I was running it from the ".externalToolBuilders" folder, instead of the root folder, because that folder actually has a file in it named "ndk-build.launch", and I didn't know that I could run 'ndk-build' from anywhere, so when it said "Run ndk-build on the love-android-sdl2 repo", I understood that as "run the ndk-build that is in the repo"
I also found out that it has nothing to do with the -L parameter. Instead the "system root" is specified via --sysroot=C:\android-sdk\android-ndk-r9c\/platforms/android-3/arch-arm which is exactly as it should be. So also no need to be confused about that .
Bird thing: @fysxdotorg Blog thing: fysx.org
- Positive07
- Party member
- Posts: 1014
- Joined: Sun Aug 12, 2012 4:34 pm
- Location: Argentina
Re: love-android-sdl2 (native, 0.9.0)
Do you want me to specify it in the love-android wiki somehow?Sind wrote: Edit: Okay, so I found out what my problem was; I was running 'ndk-build' in the wrong folder.
I was running it from the ".externalToolBuilders" folder, instead of the root folder, because that folder actually has a file in it named "ndk-build.launch", and I didn't know that I could run 'ndk-build' from anywhere, so when it said "Run ndk-build on the love-android-sdl2 repo", I understood that as "run the ndk-build that is in the repo"
Don't start a war that you cannot winSatinxs wrote:Hey, thank you for helping me!Positive07 wrote:Thanks for taking the time to do it
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Re: love-android-sdl2 (native, 0.9.0)
I do think you should specify it some more. I believe the best way is to be more direct and simple about the instructions, like so:Positive07 wrote:Do you want me to specify it in the love-android wiki somehow?Sind wrote: Edit: Okay, so I found out what my problem was; I was running 'ndk-build' in the wrong folder.
I was running it from the ".externalToolBuilders" folder, instead of the root folder, because that folder actually has a file in it named "ndk-build.launch", and I didn't know that I could run 'ndk-build' from anywhere, so when it said "Run ndk-build on the love-android-sdl2 repo", I understood that as "run the ndk-build that is in the repo"
"go to your love-android-sdl2 folder, and open a command prompt there. in it, run the command 'ndk-build'".
I'm not sure how much better it is from the current, but it should reduce some confusion.
Also, after I finished making my app yesterday, I found out that I didn't have a micro-usb cable at hand XD
And it seems love-android-sdl2 doesn't work in the standard emulator(at least I couldn't get it to work).
Oh well. I borrowed a cable from a friend today, and it works perfectly on my phone =D
Who is online
Users browsing this forum: No registered users and 2 guests