Building for Android x86 fails
#16
r9! nothing newer man
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
#17
To anticipate the next question, here is the link to the linux 64bits NDK r9: http://dl.google.com/android/ndk/android...64.tar.bz2
Reply
#18
high five koying ... Big Grin
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
#19
the command # make, work using ndk r9 .. not r9something haha.

Thanks *-*
Reply
#20
Hi,
after command #sudo make

make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/pazeto/xbmc/lib/addons/library.xbmc.pvr'
-----------------------
XBMC built successfully
-----------------------


nice, work, but in the command # sudo make apk had already generated an error and then i run:
# ln -s -f ~/Android/android-sdks/build-tools/17.0.0/dx ~/Android/android-sdks/platform-tools/dx
# ln -s -f ~/Android/android-sdks/build-tools/17.0.0/lib ~/Android/android-sdks/platform-tools/lib
# ln -s -f ~/Android/android-sdks/build-tools/17.0.0/aapt ~/Android/android-sdks/platform-tools/aapt:

work but appeared this now :

...while processing org/xbmc/xbmc/R$layout.class

trouble processing:
bad class file magic (cafebabe) or version (0033.0000)
...while parsing org/xbmc/xbmc/R$string.class
...while processing org/xbmc/xbmc/R$string.class

trouble processing:
bad class file magic (cafebabe) or version (0033.0000)
...while parsing org/xbmc/xbmc/Splash$Work.class
...while processing org/xbmc/xbmc/Splash$Work.class

trouble processing:
bad class file magic (cafebabe) or version (0033.0000)
...while parsing org/xbmc/xbmc/Splash.class
...while processing org/xbmc/xbmc/Splash.class

trouble processing:
bad class file magic (cafebabe) or version (0033.0000)
...while parsing org/xbmc/xbmc/Splash$2.class
...while processing org/xbmc/xbmc/Splash$2.class
15 warnings
no classfiles specified
make[1]: *** [package] Error 1
make[1]: Leaving directory `/home/pazeto/xbmc/tools/android/packaging'
make: *** [apk] Error 2



http://pastebin.com/20JvkrtV


the last command :/
have any idea?
Reply
#21
sudo? grats you poissoned your workspace ... do it again ... DON'T USE SUDO!
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
#22
pazeto@phi20:~/xbmc$ make apk
make -C tools/android/packaging clean
make[1]: Entering directory `/home/pazeto/xbmc/tools/android/packaging'
rm -rf images
rm: cannot remove `images/xbmcapp-debug-skeleton.apk': Permission denied
rm: cannot remove `images/xbmcapp-debug-x86-unaligned.apk': Permission denied
make[1]: *** [clean] Error 1
make[1]: Leaving directory `/home/pazeto/xbmc/tools/android/packaging'
make: *** [apk-clean] Error 2


doesn't work. Undecided
Reply
#23
yep, you poissoned your workspace. rm it all and do it again, WITHOUT Sudo.
Reply
#24
I performed "# make " and "# make apk" but this last doesn't work.
but how generated the source of apk in "packaging" folder, i import to Eclipse and worked.

Thanks for help guys.
Reply
#25
(2014-03-27, 18:54)pazeto Wrote: I run these commands with yours tips:

This command i change the "install-dir" and download a new ndk, case i had corrupte my last ndk.
# sudo ./make-standalone-toolchain.sh --ndk-dir=../../ --install-dir=$HOME/toolchain/android-14 --platform=android-14 --toolchain=x86-4.8 --system=linux-x86

Now my configure run perfectly.
# sudo ./configure --with-tarballs=/opt/xbmc-tarballs --host=i686-linux-android --with-sdk-path=/home/pazeto/Android/android-sdks --with-ndk=/home/pazeto/Android/android-ndk-r9b1 --with-toolchain=/home/pazeto/toolchain/android-14 --prefix=/opt/xbmc-depends

then, i run this:
#sudo make -C tools/depends/target/xbmc

and after, this:
# make

then:
Undecided

AR xbmc/commons/commons.a
CPP xbmc/android/activity/android_main.o
CPP xbmc/android/activity/AndroidFeatures.o
CPP xbmc/android/activity/AndroidKey.o
CPP xbmc/android/activity/AndroidTouch.o
CPP xbmc/android/activity/AndroidMouse.o
AndroidMouse.cpp: In member function 'bool CAndroidMouse::onMouseEvent(AInputEvent*)':
AndroidMouse.cpp:48:11: warning: unused variable 'mousePointerId' [-Wunused-variable]
int32_t mousePointerId = AMotionEvent_getPointerId(event, mousePointerIdx);
^
CPP xbmc/android/activity/AndroidJoyStick.o
In file included from AndroidJoyStick.cpp:22:0:
AndroidExtra.h:35:25: error: expected identifier before numeric constant
#define AKEYCODE_ESCAPE 111
^
AndroidExtra.h:35:25: error: expected '}' before numeric constant
AndroidExtra.h:35:25: error: expected unqualified-id before numeric constant
In file included from /home/pazeto/toolchain/android-14/sysroot/usr/include/android/input.h:45:0,
from /home/pazeto/toolchain/android-14/sysroot/usr/include/android/native_activity.h:27,
from XBMCApp.h:27,
from AndroidJoyStick.cpp:23:
/home/pazeto/toolchain/android-14/sysroot/usr/include/android/keycodes.h:259:1: error: expected declaration before '}' token
}
^
make[1]: *** [AndroidJoyStick.o] Error 1


Error log ( Last piece of terminal ):
http://pastebin.com/81tzWbGr

thanks for the replies, and you know about this error?

If you use ndk r9d like me, just delete AndroidExtra.h and all the reference will ok. I think the definition in AndroidExtra.h are already include in ndk r9d.
Reply

Logout Mark Read Team Forum Stats Members Help
Building for Android x86 fails0