Android Got a error 'C compiler works... no' when Kodi build for android
#1
I'm trying to build apk for android-14 in Ubuntu 64bit system and for x86 architecture. I follow README.android in the Kodi doc. I'm stuck in step 5.2 that is Building kodi . When i run 'make -C tools/depends/target/xbmc' i got following error

checking whether the C compiler works... no
configure: error: in `/home/../Downloads/xbmc-kodi-android':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [../../../..//libkodi.so] Error 77

and this the full output that i got...

make: Entering directory `/home/../Downloads/xbmc-kodi-android/tools/depends/target/xbmc'
cd ../../../../; BOOTSTRAP_FROM_DEPENDS=yes ./bootstrap
make[1]: Entering directory `/home/nuwan600/Downloads/xbmc-kodi-android'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/nuwan600/Downloads/xbmc-kodi-android'
make[1]: Entering directory `/home/nuwan600/Downloads/xbmc-kodi-android'
Warning: No doxygen installed. The Api will not have any docstrings.
mkdir -p xbmc/interfaces/python/generated/doxygenxml
make[1]: Leaving directory `/home/nuwan600/Downloads/xbmc-kodi-android'
cd ../../../../; echo cp -f /opt/xbmc-depends/x86_64-linux-gnu-native/share/automake-1.11/config.sub /opt/xbmc-depends/x86_64-linux-gnu-native/share/automake-1.11/config.guess build-aux/ ; ./configure --prefix=/opt/xbmc-depends/arm-linux-androideabi-android-14 --enable-codec=libstagefright,amcodec
cp -f /opt/xbmc-depends/x86_64-linux-gnu-native/share/automake-1.11/config.sub /opt/xbmc-depends/x86_64-linux-gnu-native/share/automake-1.11/config.guess build-aux/
configure: loading site script /opt/xbmc-depends/arm-linux-androideabi-android-14/share/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for strip... /usr/bin/strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-androideabi
checking for git... yes
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... no
configure: error: in `/home/nuwan600/Downloads/xbmc-kodi-android':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [../../../..//libkodi.so] Error 77

how can i fix this error ?
Reply
#2
If GGC exists but can't create executables then it probably is a permission problem. Also, you're trying to build XBMC itself so I'm assuming you already successfully compiled all dependencies (which should mean your GCC works).

Can you check the owner and permissions for the targer directory? (/home/nuwan600/Downloads/xbmc-kodi-android)
Should be owned by your user and not root.

Perhaps you did something with sudo that you shouldn't have.
Reply
#3
Smile 
thanks i managed to build it without any error.
Reply
#4
So cool when you search on Google and you find someone having the same problem as you and you see "Thanks everybody I solve the problem" without giving the solution or any explanation. Like you ask others to help you, but you don't need to help others :-)
Reply

Logout Mark Read Team Forum Stats Members Help
Got a error 'C compiler works... no' when Kodi build for android0