Android Compilation error of 13.0 alpha10.0
#1
I am compiling the Goatham Alpha10 current source. I am getting these errors.

CPP xbmc/android/activity/AndroidKey.o
CPP xbmc/android/activity/AndroidJoyStick.o
In file included from AndroidJoyStick.cpp:22:0:
AndroidExtra.h:25:25: error: expected identifier before numeric constant
#define AKEYCODE_ESCAPE 111
^
AndroidExtra.h:25:25: error: expected '}' before numeric constant
AndroidExtra.h:25:25: error: expected unqualified-id before numeric constant
In file included from /home/Development/xbmc/android-toolchain/android-17/sysroot/usr/include/android/input.h:45:0,
from /Development/xbmc/android-toolchain/android-17/sysroot/usr/include/android/native_activity.h:27,
from XBMCApp.h:27,
from AndroidJoyStick.cpp:23:
/Development/xbmc/android-toolchain/android-17/sysroot/usr/include/android/keycodes.h:272:1: error: expected declaration before '}' token
}
^
make[1]: *** [AndroidJoyStick.o] Error 1
make: *** [xbmc/android/activity/activity.a] Error 2


Thanks
Reply
#2
Hi, I got the solution, I am compiling using NDK r9b so keycodes.h and input.h already having extra connstant defined in AndroidExtra.h.
So, just need to comment out all the extras defined in AndroidExtra.h
Reply
#3
Or use the official NDK, as recommended...
BTW, we use the android-14 toolchain.
Reply
#4
(2013-11-06, 16:16)Koying Wrote: Or use the official NDK, as recommended.
R9b is the very latest official NDK released last week with Android 4.4 KitKat support http://developer.android.com/tools/sdk/ndk/
Reply
#5
Right, but we use r8e up to now.
Reply
#6
(2013-11-07, 18:47)Koying Wrote: Right, but we use r8e up to now.
Any good reasons not to update to NDK r9b? You can still build for the android-14 toolchain

Many bug-fixes and other improvements between r8e and r9b, should not hurt XBMC?
Reply
#7
(2013-11-08, 14:38)RockerC Wrote:
(2013-11-07, 18:47)Koying Wrote: Right, but we use r8e up to now.
Any good reasons not to update to NDK r9b? You can still build for the android-14 toolchain
See OP. Is that not a good enough reason Wink
We'll certainly update to r9 in due time, just not now.
Reply
#8
Jenkins uses r9
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
lol. Good to know Wink
Reply
#10
r9 and gcc 4.8 iirc Wink
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



Logout Mark Read Team Forum Stats Members Help
Compilation error of 13.0 alpha10.00
This forum uses Lukasz Tkacz MyBB addons.