Android Make APK (Error 2)
#1
Everything was fine until this morning. Now when I type in "make apk" i get an error
Here is the log in pastebin: http://pastebin.com/ZcqTihXC

Here is a snippet of the end error
Code:
/home/parallels/Desktop/opt/android-toolchain-arm/android-14/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libspotify.so: File format not recognized

Help would greatly be appreciated.
Reply
#2
whats the output of
Code:
file /home/parallels/Desktop/opt/android-toolchain-arm/android-14/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libspotify.so
ls -al /home/parallels/Desktop/opt/android-toolchain-arm/android-14/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libspotify.so
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
(2015-01-15, 00:42)Memphiz Wrote: whats the output of
Code:
file /home/parallels/Desktop/opt/android-toolchain-arm/android-14/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libspotify.so
ls -al /home/parallels/Desktop/opt/android-toolchain-arm/android-14/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libspotify.so

Code:
parallels@ubuntu:~$ file /home/parallels/Desktop/opt/android-toolchain-arm/android-14/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libspotify.so
/home/parallels/Desktop/opt/android-toolchain-arm/android-14/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libspotify.so: ERROR: cannot open `/home/parallels/Desktop/opt/android-toolchain-arm/android-14/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libspotify.so' (No such file or directory)
parallels@ubuntu:~$ ls -al /home/parallels/Desktop/opt/android-toolchain-arm/android-14/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libspotify.so
ls: cannot access /home/parallels/Desktop/opt/android-toolchain-arm/android-14/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libspotify.so: No such file or directory
Reply
#4
Reinstalled toolchain, built kodi dependencies again, re-cloned git, but get the same error.
Reply
#5
libspotify.so is nothing we provide nore we build. Either you are cloning/building not from our github or something else is going wrong. Imo its a fact that you don't build with our vanilla tree. So whatever builds this libspotify.so - you need to figure it out on your own and ensure that this library is built before making the apk.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#6
My guess is that he is trying to compile https://github.com/akezeke/spotyxbmc2 or a fork of it, as per http://forum.kodi.tv/showthread.php?tid=67012 ), instead of actually trying to compile upstream master from https://github.com/xbmc/xbmc/

Please clean again and try to compile upstream master first to check if you get same issue.


If you are only getting issue with https://github.com/akezeke/spotyxbmc2 and not with upstream master then probably better to ask for help in that other thread here http://forum.kodi.tv/showthread.php?tid=67012

PS: Make sure you follow the installation instructions for Ubuntu Linux in the readme for spotyxbmc2 here if that is what you are trying to compile https://github.com/akezeke/spotyxbmc2/bl.../Readme.md as it tells you how to get libspotify
Reply
#7
(2015-01-15, 14:01)Memphiz Wrote: libspotify.so is nothing we provide nore we build. Either you are cloning/building not from our github or something else is going wrong. Imo its a fact that you don't build with our vanilla tree. So whatever builds this libspotify.so - you need to figure it out on your own and ensure that this library is built before making the apk.

(2015-01-15, 16:23)RockerC Wrote: My guess is that he is trying to compile https://github.com/akezeke/spotyxbmc2 or a fork of it, as per http://forum.kodi.tv/showthread.php?tid=67012 ), instead of actually trying to compile upstream master from https://github.com/xbmc/xbmc/

Please clean again and try to compile upstream master first to check if you get same issue.


If you are only getting issue with https://github.com/akezeke/spotyxbmc2 and not with upstream master then probably better to ask for help in that other thread here http://forum.kodi.tv/showthread.php?tid=67012

PS: Make sure you follow the installation instructions for Ubuntu Linux in the readme for spotyxbmc2 here if that is what you are trying to compile https://github.com/akezeke/spotyxbmc2/bl.../Readme.md as it tells you how to get libspotify

I am compiling from https://github.com/xbmc/xbmc/ it was fine until yesterday morning, i don't know what happened...i guess i will delete ubuntu, reinstall and start from scratch Sad
Reply
#8
git checkout master
git reset --hard origin/master
git clean -xfd

Thats enough from clearing your build tree to the default state...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#9
I'm getting this...

cp -fp xbmc/obj/local/armeabi-v7a/*.so xbmc/lib/armeabi-v7a/
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip --strip-unneeded xbmc/lib/armeabi-v7a/*.so
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libargustv-addon.so: File format not recognized
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libdvblink-addon.so: File format not recognized
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libdvbviewer-addon.so: File format not recognized
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libmediaportal-addon.so: File format not recognized
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libmythtv-addon.so: File format not recognized
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libnextpvr-addon.so: File format not recognized
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libpvrdemo-addon.so: File format not recognized
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libpvrnjoy-addon.so: File format not recognized
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libpvrwmc-addon.so: File format not recognized
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libtvheadend-addon.so: File format not recognized
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libvdrvnsi-addon.so: File format not recognized
/home/joseph/Downloads/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/android-17/bin/arm-linux-androideabi-strip:xbmc/lib/armeabi-v7a/libvuplus-addon.so: File format not recognized
make[1]: *** [libs] Error 1
make[1]: Leaving directory `/home/joseph/Downloads/kodi-android/tools/android/packaging'
make: *** [apk] Error 2

I tried what Memphiz posted but I still get this error, any ideas?
Reply
#10
Did you do "make -C tools/depends/target/xbmc" to kick the initial build?
Reply
#11
(2015-03-29, 16:30)Koying Wrote: Did you do "make -C tools/depends/target/xbmc" to kick the initial build?

Yes. The first time I built Isengard it was successful but it was built with out the PVR addons. A few days later I tried to rebuild it again and received that error. I was able to build Helix fine, maybe I'll try removing everything and starting clean again and see if Isengard builds successfully.
Reply

Logout Mark Read Team Forum Stats Members Help
Make APK (Error 2)0