Linux Problem Compiling Kodi For Android In Linux
#1
I am running Ubuntu version 14.04 (Trusty Tahr) 64-bit. When I run ./configure in terminal, the output is:

Command:
./bootstrap

./configure --with-toolchain=$HOME/user/opt/android-toolchain/android-17 --prefix=$HOME/user/opt/xbmc-depends --with-tarballs=$HOME/user/opt/xbmc-depends/xbmc-tarballs --host=arm-linux-androideabi --with-sdk-path=$HOME/user/opt/android-sdk-linux --with-ndk=$HOME/user/opt/android-ndk-r10e

Output:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-androideabi
checking for arm-linux-androideabi-g++... no
checking for arm-linux-androideabi-c++... no
checking for arm-linux-androideabi-gpp... no
checking for arm-linux-androideabi-aCC... no
checking for arm-linux-androideabi-CC... no
checking for arm-linux-androideabi-cxx... no
checking for arm-linux-androideabi-cc++... no
checking for arm-linux-androideabi-cl.exe... no
checking for arm-linux-androideabi-FCC... no
checking for arm-linux-androideabi-KCC... no
checking for arm-linux-androideabi-RCC... no
checking for arm-linux-androideabi-xlC_r... no
checking for arm-linux-androideabi-xlC... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=gnu++11... yes
checking for unzip... yes
checking for zip... yes
checking for curl... /usr/bin/curl
checking for tar... /bin/tar
checking for arm-linux-androideabi-ranlib... /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-ranlib
checking for arm-linux-androideabi-ld... /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-ld
checking for arm-linux-androideabi-ar... /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-ar
checking for arm-linux-androideabi-readelf... /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-readelf
checking for arm-linux-androideabi-strip... /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-strip
checking for arm-linux-androideabi-as... /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-as
checking for arm-linux-androideabi-nm... /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-nm
checking for arm-linux-androideabi-objdump... /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-objdump
checking for arm-linux-androideabi-gcc... /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-gcc
checking for arm-linux-androideabi-g++... /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-g++
checking for arm-linux-androideabi-gcc... /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-gcc
checking whether we are using the GNU C compiler... yes
checking whether /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-gcc accepts -g... yes
checking for /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... /home/user/user/opt/android-toolchain/android-17/bin/arm-linux-androideabi-gcc -E
checking for ranlib... /usr/bin/ranlib
checking for ld... /usr/bin/ld
checking for ar... /usr/bin/ar
checking for readelf... /usr/bin/readelf
checking for strip... /usr/bin/strip
checking for as... /usr/bin/as
checking for nm... /usr/bin/nm
checking for objdump... /usr/bin/objdump
checking for gcc... /usr/bin/gcc
checking for g++... /usr/bin/g++
checking for main in -lz... yes
checking for library containing iconv_open... no
configure: WARNING: "No iconv support in toolchain. Will build libiconv."
configure: WARNING: "No localeconv support in toolchain. Using replacement."
checking for main in -lcrystax... no
checking for aapt... /home/user/user/opt/android-sdk-linux/build-tools/20.0.0/aapt
checking for dx... /home/user/user/opt/android-sdk-linux/build-tools/20.0.0/dx
checking for zipalign... /home/user/user/opt/android-sdk-linux/build-tools/20.0.0/zipalign


configure: creating ./config.status
config.status: creating target/config.site
config.status: creating native/config.site.native
config.status: creating Makefile.include
config.status: creating target/Toolchain.cmake
config.status: creating target/config-binaddons.site
config.status: creating target/Toolchain_binaddons.cmake
toolchain: /home/user/user/opt/android-toolchain/android-17
cpu: armeabi-v7a
host: arm-linux-androideabi
sdk-platform: android-17
'target/android-libc-replacements/locale.h' -> '/home/user/user/opt/xbmc-depends/arm-linux-androideabi-android-17/include/locale.h'
'target/config.site' -> '/home/user/user/opt/xbmc-depends/arm-linux-androideabi-android-17/share/config.site'
'target/Toolchain.cmake' -> '/home/user/user/opt/xbmc-depends/arm-linux-androideabi-android-17/share/Toolchain.cmake'
'native/config.site.native' -> '/home/user/user/opt/xbmc-depends/x86_64-linux-gnu-native/share/config.site'

Make -j20 stops at this:
( cd '/home/user/user/opt/xbmc-depends/x86_64-linux-gnu-native/lib' && /usr/bin/ranlib libbreakpad_client.a )
make[4]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native/google-breakpad-native/x86_64-linux-native'
make[3]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native/google-breakpad-native/x86_64-linux-native'
cp -Rf x86_64-linux-native/src/common/android/include/* /home/user/user/opt/xbmc-depends/x86_64-linux-gnu-native/include/breakpad/
mkdir -p /home/user/user/opt/xbmc-depends/x86_64-linux-gnu-native/include/breakpad/client/linux/dump_writer_common
cp -f x86_64-linux-native/src/client/linux/dump_writer_common/*.h /home/user/user/opt/xbmc-depends/x86_64-linux-gnu-native/include/breakpad/client/linux/dump_writer_common/
touch .installed-x86_64-linux-native
make[2]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native/google-breakpad-native'
make[1]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native'
make: *** [native/.installed-x86_64-linux-native] Error 2


And stops other times at this:
make[2]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native/yasm-native'
make -C cmake-native
make[2]: Entering directory `/home/user/user/opt/kodi-android/tools/depends/native/cmake-native'
make -C x86_64-linux-native
make[3]: Entering directory `/home/user/user/opt/kodi-android/tools/depends/native/cmake-native/x86_64-linux-native'
Makefile:1: ../../Makefile.include: No such file or directory
make[3]: *** No rule to make target `../../Makefile.include'. Stop.
make[3]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native/cmake-native/x86_64-linux-native'
make[2]: *** [x86_64-linux-native/bin/cmake] Error 2
make[2]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native/cmake-native'
make[1]: *** [cmake-native] Error 2
make[1]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native'
make: *** [native/.installed-x86_64-linux-native] Error 2
user@ubuntu-PC:~/user/opt/kodi-android/tools/depends$


I know this this is ALOT to ask for help with but any assistance would be greatly appreciated. If anyone knows how to fix the make -j20 Error 2, please let me know.ConfusedConfused
Thanks, Zuuchq
Reply
#2
you need to hunt back to the 'Error 1', that is the real error.
MrMC Forums : http://forum.mrmc.tv
Reply
#3
There isn't one...
Full Output:
user@ubuntu-PC:~/user/opt/kodi-android/tools/depends$ make -j20
make -C native
make[1]: Entering directory `/home/user/user/opt/kodi-android/tools/depends/native'
make -C m4-native
make -C gettext-native
make -C pkg-config-native
make -C yasm-native
make[2]: Entering directory `/home/user/user/opt/kodi-android/tools/depends/native/m4-native'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native/m4-native'
make[2]: Entering directory `/home/user/user/opt/kodi-android/tools/depends/native/gettext-native'
make -C cmake-native
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native/gettext-native'
make[2]: Entering directory `/home/user/user/opt/kodi-android/tools/depends/native/yasm-native'
make -C x86_64-linux-native
make -C gas-preprocessor-native
make[2]: Entering directory `/home/user/user/opt/kodi-android/tools/depends/native/pkg-config-native'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native/pkg-config-native'
make -C zlib-native
make[2]: Entering directory `/home/user/user/opt/kodi-android/tools/depends/native/cmake-native'
make -C x86_64-linux-native
make -C pcre-native
make[3]: Entering directory `/home/user/user/opt/kodi-android/tools/depends/native/cmake-native/x86_64-linux-native'
make[3]: *** No targets specified and no makefile found. Stop.
make[3]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native/cmake-native/x86_64-linux-native'
make[2]: *** [x86_64-linux-native/bin/cmake] Error 2
make[2]: Leaving directory `/home/user/user/opt/kodi-android/tools/depends/native/cmake-native'
make[1]: *** [cmake-native] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Entering directory `/home/user/user/opt/kodi-android/tools/depends/native/zlib-native'

It just goes straight to Error 2.
Reply
#4
Avoid the - j20 to debug build issues, or its hard for anyone to find out the issue where the output has multiple threads mixed.
Reply
#5
(2016-01-05, 08:53)Koying Wrote: Avoid the - j20 to debug build issues, or its hard for anyone to find out the issue where the output has multiple threads mixed.

So just do a regular 'make'? And remove the -j20?
Update: No "Error 1" in output.
Reply
#6
(2016-01-05, 18:01)Zuuchq Wrote:
(2016-01-05, 08:53)Koying Wrote: Avoid the - j20 to debug build issues, or its hard for anyone to find out the issue where the output has multiple threads mixed.

So just do a regular 'make'? And remove the -j20?
Update: No "Error 1" in output.

I also ran in errors when using NDK r10e. With r10d works fine for me.
Reply
#7
(2016-01-05, 04:48)MrMC Wrote: you need to hunt back to the 'Error 1', that is the real error.

(2016-01-05, 08:53)Koying Wrote: Avoid the - j20 to debug build issues, or its hard for anyone to find out the issue where the output has multiple threads mixed.

I've managed to get passed that by deleting the linux-gnu-native folder. now I am stuck with this:

@ubuntu-PC:~/user/opt/kodi-android$ make
autoreconf -vif .
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:544: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
make: *** [Makefile.include] Error 1
Reply
#8
make -C tools/depends/target/xbmc
Reply
#9
(2016-01-08, 19:44)Koying Wrote: make -C tools/depends/target/xbmc

Now this?:

/bin/bash: @AR@: command not found
make[1]: *** [exports.a] Error 127
make: *** [xbmc/cores/DllLoader/exports/exports.a] Error 2
user@ubuntu-PC:~/user/opt/kodi-android$
Reply

Logout Mark Read Team Forum Stats Members Help
Problem Compiling Kodi For Android In Linux1