Kodi Community Forum
Android Compilation error of 13.0 alpha10.0 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: Android Development (https://forum.kodi.tv/forumdisplay.php?fid=184)
+---- Thread: Android Compilation error of 13.0 alpha10.0 (/showthread.php?tid=177292)



Compilation error of 13.0 alpha10.0 - vikash.gec - 2013-11-05

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


RE: Compilation error of 13.0 alpha10.0 - vikash.gec - 2013-11-05

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


RE: Compilation error of 13.0 alpha10.0 - Koying - 2013-11-06

Or use the official NDK, as recommended...
BTW, we use the android-14 toolchain.


RE: Compilation error of 13.0 alpha10.0 - RockerC - 2013-11-07

(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/


RE: Compilation error of 13.0 alpha10.0 - Koying - 2013-11-07

Right, but we use r8e up to now.


RE: Compilation error of 13.0 alpha10.0 - RockerC - 2013-11-08

(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?


RE: Compilation error of 13.0 alpha10.0 - Koying - 2013-11-08

(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.


Compilation error of 13.0 alpha10.0 - Memphiz - 2013-11-08

Jenkins uses r9


RE: Compilation error of 13.0 alpha10.0 - Koying - 2013-11-08

lol. Good to know Wink


RE: Compilation error of 13.0 alpha10.0 - Memphiz - 2013-11-11

r9 and gcc 4.8 iirc Wink