![]() |
Error when trying to compile kodi source code - 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: Error when trying to compile kodi source code (/showthread.php?tid=235515) |
Error when trying to compile kodi source code - terry13 - 2015-08-16 Hi! I'm trying to compile the default kodi source without any modification following the guide: https://github.com/xbmc/xbmc/blob/master/docs/README.android The problem is that I get an error after ./bootstrap (in point 5.1. Building dependencies) when trying to configure with the command found in the README file which is(I'm using android-ndk-r10e) : Code: ./configure --with-tarballs=/opt/xbmc-tarballs --host=arm-linux-androideabi --with-sdk-path=/opt/android-sdk-linux --with-ndk=/opt/android-ndk-r10e --with-toolchain=/opt/arm-linux-androideabi-4.8-vanilla/android-17 --prefix=/opt/xbmc-depends and finally I get the following error message: Code: checking for library containing iconv_open... none required Any help with that? I probably made other mistakes because this is the first time I try to compile it. So any comment will be really appreciated! ![]() PS: I'm using a virtualbox with ubuntu 12.04.5 32 bits Thank you all!! ![]() ![]() ![]() RE: Error when trying to compile kodi source code - terry13 - 2015-08-16 I would really appreciate any help you could can give me regarding this issue RE: Error when trying to compile kodi source code - wsnipex - 2015-08-17 the error says it all: ls: cannot access /opt/android-sdk-linux/build-tools: No such file or directory RE: Error when trying to compile kodi source code - terry13 - 2015-08-17 (2015-08-17, 10:20)wsnipex Wrote: the error says it all: Thanks for the answer wsnipex! ![]() Now I'm stocked at: Code: # cd $HOME/kodi-android with the error: Code: make: Entering directory `/home/vm/kodi-android/tools/depends/target/xbmc' I know the error message may be very descriptive but if you could help me a little bit it will be amazing! RE: Error when trying to compile kodi source code - Memphiz - 2015-08-17 are you sure you made it correctly through step 5.1? RE: Error when trying to compile kodi source code - terry13 - 2015-08-17 (2015-08-17, 14:14)Memphiz Wrote: are you sure you made it correctly through step 5.1? Hi Memphiz! I'm not sure but thats what i did, first I executed bootstrap at cd $HOME/kodi-android/tools/depends wich I think is correct. but the second part after reading the README file I figured out that it shoud be the android command: Android (the pathes are examples and have to match those of docs/READM.android): arm: Code: ./configure --with-tarballs=/opt/xbmc-tarballs --host=arm-linux-androideabi --with-sdk-path=/opt/android-sdk-linux --with-ndk=/opt/android-ndk-r10d --with-toolchain=/opt/arm-linux-androideabi-4.8-vanilla/android-17 --prefix=/opt/xbmc-depends I edited the ndk path to /opt/android-ndk-r10e which I downloaded (I don't think the problem is there) So.. I'm completly not sure about that being right haha ![]() ![]() ![]() Thank you for your help! Error when trying to compile kodi source code - Memphiz - 2015-08-18 nope sry RE: Error when trying to compile kodi source code - terry13 - 2015-08-18 (2015-08-18, 00:12)Memphiz Wrote: nope sry So that's the correct way to do that? Thanks anyway ![]() RE: Error when trying to compile kodi source code - leox - 2015-08-18 Hi, FYI, here is what I did to build the dependencies of kodi-15.1 Android for ARM on my Linux Mint 17 (Ubuntu based) machine: $> cd /local/luc/XBMC_Android/kodi-android/tools/depends/ $> ./bootstrap $> ./configure --prefix=/local/luc/XBMC_Android/xbmc-deps/ --with-toolchain=/local/luc/XBMC_Android/android-17/ --with-sdk-path=/local/luc/XBMC_Android/android-sdk-linux/ --with-ndk=/local/luc/XBMC_Android/android-ndk-r10e/ --with-tarballs=/local/luc/XBMC_Android/tarballs/ $> make I am using latest SDK (android-sdk_r24.3.3-linux.tgz) and latest NDK (android-ndk-r10e-linux-x86_64.bin). By the way, at the end of this build (after 45 minutes) while compiling libssh, I have issues of compatibility between NDK *.h files and ISO C rules, something like : /local/luc/XBMC_Android/android-17/sysroot/usr/include/stdint.h:173:0: error: "__INT64_C" redefined #define __INT64_C© c ## LL ^ /local/luc/XBMC_Android/android-17/sysroot/usr/include/linux/compiler.h:25:31: error: ISO C does not permit named variadic macros [-Wvariadic-macros] #define __builtin_warning(x, y...) (1) ^ /local/luc/XBMC_Android/android-17/sysroot/usr/include/stdlib.h:89:23: warning: declaration of ‘abs’ shadows a built-in function [-Wshadow] static __inline__ int abs(int __n) { ^ /local/luc/XBMC_Android/android-17/sysroot/usr/include/linux/ipv6.h:61:18: error: ISO C forbids zero-size array ‘addr’ [-Wpedantic] struct in6_addr addr[0]; ^ /local/luc/XBMC_Android/android-17/sysroot/usr/include/linux/ipv6.h:82:2: error: type of bit-field ‘priority’ is a GCC extension [-Wpedantic] __u8 priority:4, ^ /local/luc/XBMC_Android/android-17/sysroot/usr/include/linux/ipv6.h:83:2: error: type of bit-field ‘version’ is a GCC extension [-Wpedantic] version:4; ^ Hope that could help. RE: Error when trying to compile kodi source code - leox - 2015-08-22 Do not pay attention to my previous errors. I forgot to add the option: --host=arm-linux-androideabi in order to cross compile with the NDK. RE: Error when trying to compile kodi source code - terry13 - 2015-08-24 (2015-08-22, 01:19)leox Wrote: Do not pay attention to my previous errors. thank you for your answers! ![]() It seems that you just did what I did, it finally worked? Do you know what could be wrong in mine? Thanks leox! RE: Error when trying to compile kodi source code - mithunkundu1983 - 2016-06-15 I am also facing the same issue. Any update on the issue? only following Readme.android is enough ?? I have done all the stapes. Looks like some problem with autoconfig. RE: Error when trying to compile kodi source code - jennifer_jiang - 2016-07-08 (2016-06-15, 11:36)mithunkundu1983 Wrote: I am also facing the same issue. Any update on the issue? I also have some errors when I do the step of "make".Do you have compiled the kodi successfully? |