Created attachment 411598 [details] Kodi-15.1 config log Cross-compiling Kodi-15.1 for ARM fails during the configure phase with the following error: checking consistency of all components of python development environment... no configure: error: in `/portage/tmp/portage/media-tv/kodi-15.1/work/xbmc-15.1-Isengard': configure: error: Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable. Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" ============================================================================ ERROR! You probably have to install the development version of the Python package for your distribution. The exact name of this package varies among them. ============================================================================ See `config.log' for more details From viewing `config.log` it appears to me that the tests involved do link to files from the host system (x86) instead of the target system (ARM): configure:22786: armv7a-hardfloat-linux-gnueabi-gcc -o conftest -DNDEBUG=1 -O2 -pipe -fomit-frame-pointer -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/python2.7 -Wl,-O1 -Wl,--as-needed conftest.c -L/usr/lib64 -lpython2.7 -Xlinker -export-dynamic -lpthread -ldl -lutil -lm >&5 cc1: warning: include location "/usr/include/python2.7" is unsafe for cross-compilation [-Wpoison-system-directories] In file included from /usr/include/python2.7/Python.h:8:0, from conftest.c:107: /usr/include/python2.7/pyconfig.h:1034:0: warning: "SIZEOF_SIZE_T" redefined [enabled by default] #define SIZEOF_SIZE_T 8 ^ conftest.c:94:0: note: this is the location of the previous definition #define SIZEOF_SIZE_T 4 ^ In file included from /usr/include/python2.7/Python.h:58:0, from conftest.c:107: /usr/include/python2.7/pyport.h:886:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." I am attaching the config.log in question.
Created attachment 411600 [details] kodi-15.1 build environment
I know Kodi for ARM is but a piece of cake but I am willing to cooperate and devote my time on this. So any suggestion is warmly welcome :-) .
Created attachment 413746 [details, diff] kodi-15.1.ebuild cross compile patch try this patch against kodi-15.1.ebuild
Created attachment 442682 [details, diff] Cross compile support for kodi-16.{0,1} I successfully cross-comiled kodi-16.1 with this patch for armv6j-hardfloat-linux-gnueabi (raspberry pi). I also had to use the raspberry pi related changes from #471200. This is only the cross-compile part. It could be applied to kodi independently from rpi.
Created attachment 442684 [details, diff] Taking into account texturepacker use flag
Created attachment 442686 [details, diff] Cross compile support for kodi-16.{0,1} Taking into account texturepacker use flag (Description <-> Comment)
Also filed a pull request: https://github.com/gentoo/gentoo/pull/2392
Fixed: https://github.com/gentoo/gentoo/commit/13f6601b599d575f4f43e9620e1b174f9c10b757