Error in Building dependecies
#1
I am new to compile the kodi.I use ndk version r10e and sdk r24. When I follow the README to compile kodi in step 5.1 Building dependencies,
1:mkdir ~/opt
unzip android-ndk-r10e-linux-x86_64.zip -d ~/opt
tar xvf android-sdk_r24.4.1-linux.tgz -C ~/opt
2: cd ~opt/android-sdk-linux/tools
./android update sdk -u -t platform,platform-tool
./android update sdk --all -u -t build-tools-20.0.0
3:cd ~/opt
mkdir mytoolchain
cd ~/opt/android-ndk-r10e
ls platforms
cd build/tools
sudo sh make-standalone-toolchain.sh --verbose --toolchain=arm-linux-androideabi-4.8 --install-dir=/home/jennifer_jiang/opt/mytoolchain/android-17 --ndk-dir=/home/jennifer_jiang/opt/android-ndk-r10e --platform=android-17 --system=linux-x86_64
4: mkdir ~/.android
 keytool -genkey -keystore ~/.android/debug.keystore -v -alias androiddebugkey -dname "CN=Android Debug,O=Android,C=US" -keypass android -storepass android -keyalg RSA -keysize 2048 -validity 10000
5: mkdir ~/build-xbmc
 cd ~/build-xbmc
 git clone git://github.com/xbmc/xbmc.git xbmc-android
6: cd ~/build-xbmc/xbmc-android/tools/depends
 ./bootstrap
 ./configure --with-toolchain=/home/jennifer_jiang/opt/mytoolchain/android-17 --with-tarballs=/home/jennifer_jiang/build-xbmc/xbmc-tarballs_3 --with-ndk=/home/jennifer_jiang/opt/android-ndk-r10e --with-sdk-path=/home/jennifer_jiang/opt/android-sdk-linux --host=arm-linux-androideabi --with-sdk=android-17 --prefix=/home/jennifer_jiang/build-xbmc/xbmc-depends
7:make

Then I got the error:
make -C native
make[1]: 正在进入目录 `/home/jennifer_jiang/build-xbmc/xbmc-android/tools/depends/native'
make -C m4-native
make[2]: 正在进入目录 `/home/jennifer_jiang/build-xbmc/xbmc-android/tools/depends/native/m4-native'
cd x86_64-linux-native; ./configure --prefix=/home/jennifer_jiang/build-xbmc/xbmc-depends/x86_64-linux-gnu-native
configure: error: cannot find sources (src/m4.h) in . or ..
make[2]: *** [x86_64-linux-native/src/m4] 错误 1
make[2]:正在离开目录 `/home/jennifer_jiang/build-xbmc/xbmc-android/tools/depends/native/m4-native'
make[1]: *** [m4-native] 错误 2
make[1]:正在离开目录 `/home/jennifer_jiang/build-xbmc/xbmc-android/tools/depends/native'
make: *** [native/.installed-x86_64-linux-native] 错误 2


I have spent a week on it. But I do not solve it. Please help me. Thank you ![/quote][/code][/php]
Reply
#2
When I do following code:
make -C target/fontconfig
error:
./configure: line 14500: syntax error near unexpected token `FREETYPE,'
./configure: line 14500: `PKG_CHECK_MODULES(FREETYPE, freetype2)'
make: *** [arm-linux-androideabi-android-17] 错误 2
make:离开目录“/home/jennifer_jiang/build-xbmc/xbmc-android/tools/depends/target/fontconfig”

Please tell what is the "configure". Thank you.
Reply
#3
I have solved this error.
go to http://mirros.kodi.tv/build-deps/sources download the newest files.
cd native
make
then
cd target
make
when anyone is down,
make -C <> distclean
make -C <>
make
sometimes may need to delete the bad file in xbmc-tarballs.
Reply

Logout Mark Read Team Forum Stats Members Help
Error in Building dependecies0