Kodi Community Forum

Full Version: Compilation error of 13.0 alpha10.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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
Or use the official NDK, as recommended...
BTW, we use the android-14 toolchain.
(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/
Right, but we use r8e up to now.
(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?
(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.
Jenkins uses r9
lol. Good to know Wink
r9 and gcc 4.8 iirc Wink