Kodi Community Forum

Full Version: Noob question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Can anybody help me please with my compiling source for android. I am using this guide https://github.com/xbmc/xbmc/blob/master...ME.android.

I went through steps up to 5. But i don't know what to do next. I am using Ubuntu "Xenial Xerus" (16.04). for toolchains i ran:

./make-standalone-toolchain.sh --ndk-dir=../../ --install-dir=/opt/x86-linux-4.9-vanilla/android-21 --platform=android-21 --toolchain=x86-4.9 --arch=x86

Can somebody help me what to run in ./configure. I want to make apk file and run it on my android phone. I tried with :

./configure --with-tarballs=/opt/xbmc-tarballs --host=i686-linux-android --with-sdk-path=/opt/android-sdk_r24.4.1-linux --with-ndk=/opt/android-ndk-r12b --with-toolchain=/opt/x86-linux-4.9-vanilla/android-21 --prefix=/opt/xbmc-depends
and got following output:
toolchain: /opt/x86-linux-4.9-vanilla/android-21
cpu: i686
host: i686-linux-android
sdk-platform: android-17
build-tools: /opt/android-sdk_r24.4.1-linux/tools:/opt/android-sdk_r24.4.1-linux/platform-tools:/opt/android-sdk_r24.4.1-linux/build-tools/24.0.0-preview
use simulator:
`target/config.site' -> `/opt/xbmc-depends/i686-linux-android-android-17/share/config.site'
`target/Toolchain.cmake' -> `/opt/xbmc-depends/i686-linux-android-android-17/share/Toolchain.cmake'
`native/config.site.native' -> `/opt/xbmc-depends/x86_64-linux-gnu-native/share/config.site'

What do i run next. Instructions are unclear. It says make -j <jobs>. What are jobs?
i tried running just make and got:
CMake Error at CMakeLists.txt:283 (message):
CMAKE_USE_SYSTEM_CURL is ON but a curl is not found!
Call Stack (most recent call first):
CMakeLists.txt:533 (CMAKE_BUILD_UTILITIES)


-- Configuring incomplete, errors occurred!
See also "/root/kodi-android/tools/depends/native/cmake-native/x86_64-linux-native/CMakeFiles/CMakeOutput.log".
See also "/root/kodi-android/tools/depends/native/cmake-native/x86_64-linux-native/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
make[2]: *** [x86_64-linux-native] Error 11
make[2]: Leaving directory `/root/kodi-android/tools/depends/native/cmake-native'
make[1]: *** [cmake-native] Error 2
make[1]: Leaving directory `/root/kodi-android/tools/depends/native'
make: *** [native/.installed-x86_64-linux-native] Error 2

I am not sure what is happening. Can someone help?
For your first question about jobs - it's the number of tasks (jobs) to run simultaneously. Parallel activity will speed up compilation on faster/mult-core systems, although I believe make will default to a reasonable number anyway.

For your second, you're clearly missing dependencies. Your specific problem is in the following thread, although there may be more:

http://forum.kodi.tv/showthread.php?tid=232921
Thank you for your fast response. I will try to install curl package.

Is my configure command ok? what should i put in --host?
Hello,
Now i am getting this:
./config.status: line 1102: /opt/arm-linux-androideabi-4.9-vanilla/android-21/bin/awk: cannot execute binary file: Exec format error
config.status: error: could not create config.make
Makefile:28: recipe for target 'i686-linux-android-android-21' failed
make[2]: *** [i686-linux-android-android-21] Error 1
make[2]: Leaving directory '/home/bogdan/kodi-android/tools/depends/target/nettle'
Makefile:115: recipe for target 'nettle' failed
make[1]: *** [nettle] Error 2
make[1]: Leaving directory '/home/bogdan/kodi-android/tools/depends/target'
Makefile:11: recipe for target 'target/.installed-i686-linux-android-android-21' failed
make: *** [target/.installed-i686-linux-android-android-21] Error 2

I am running this on 32 bit machine. Can that be a problem?
I can't help specifically with compiling for Android, I'm afraid - while I've done a lot of compiling over the years, I've not done any cross-compilation. I'll need to site back and leave it to someone more knowledgeable.