Android - Error while compiling Kodi for Android

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
karthickbabu Offline
Junior Member
Posts: 2
Joined: Jan 2017
Reputation: 0
Post: #1
I'm following the instructions provided in https://github.com/xbmc/xbmc/blob/master...ME.android

Setup:
Ubuntu 16.04.1 (running on Windows 7 Virtual Box)
Android ARM Toolchain
Latest Android SDK
Android NDK r12b

Code:
./configure --with-tarballs=/home/kb/xbmc-tarballs --host=arm-linux-androideabi --with-sdk-path=/home/kb/Android/Sdk --with-ndk=/home/kb/android-ndk-r12b --with-toolchain=/home/kb/arm-linux-androideabi-4.9-vanilla/android-21 --prefix=/home/kb/xbmc-depends

I could compile all the dependencies successfully and received "Dependencies built successfully." message.

While building Kodi (Step 5 in README.android), I'm receiving the following error:

Code:
[email protected]:~/kodi-android$ make -C tools/depends/target/xbmc/
make: Entering directory '/home/kb/kodi-android/tools/depends/target/xbmc'
cd ../../../../; BOOTSTRAP_FROM_DEPENDS=yes ./bootstrap
/bin/sh: 1: ./bootstrap: not found
Makefile:34: recipe for target '../../../..//libkodi.so' failed
make: *** [../../../..//libkodi.so] Error 127
make: Leaving directory '/home/kb/kodi-android/tools/depends/target/xbmc'
I understand there is no bootstrap file under "/home/kb/kodi-android" folder, I see it only in /home/kb/kodi-android/tools/depends folder. I've performed the instruction more than two times to make sure I did not not skip any step.

Can someone help me in finding what is going wrong?

Thanks in advance.
(This post was last modified: 2017-01-06 03:14 by karthickbabu.)
find quote
wsnipex Offline
Team-Kodi
Posts: 6,384
Joined: Jun 2011
Reputation: 165
Post: #2
we switched to cmake, docs haven't been updated yet. Use:
make -C tools/depends/target/cmakebuildsys instead of make -C tools/depends/target/xbmc/
find quote
karthickbabu Offline
Junior Member
Posts: 2
Joined: Jan 2017
Reputation: 0
Post: #3
Thanks @wsnipex. I ran the command suggested by you and it seems to work. I'm yet to check the apk.

The following is what I got on building using cmakebuildsys:
Code:
[email protected]:~/android/kodi-android$ make -C tools/depends/target/cmakebuildsys/
make: Entering directory '/home/vnadmin/android/kodi-android/tools/depends/target/cmakebuildsys'
mkdir -p /home/vnadmin/android/kodi-android/build
cd /home/vnadmin/android/kodi-android/build; /home/vnadmin/android/kodi-android/xbmc-depends/x86_64-linux-gnu-native/bin/cmake -DCMAKE_TOOLCHAIN_FILE=/home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/share/Toolchain.cmake -DCMAKE_INSTALL_PREFIX=/home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21 -DCMAKE_BUILD_TYPE=Debug -DENABLE_INTERNAL_CROSSGUID=OFF -DENABLE_INTERNAL_FFMPEG=OFF /home/vnadmin/android/kodi-android
-- The CXX compiler identification is GNU 4.9.0
-- The C compiler identification is GNU 4.9.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/vnadmin/android/arm-linux-androideabi-4.9-vanilla/android-21/bin/arm-linux-androideabi-gcc
-- Check for working CXX compiler: /home/vnadmin/android/arm-linux-androideabi-4.9-vanilla/android-21/bin/arm-linux-androideabi-g++
-- Check for working CXX compiler: /home/vnadmin/android/arm-linux-androideabi-4.9-vanilla/android-21/bin/arm-linux-androideabi-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /home/vnadmin/android/arm-linux-androideabi-4.9-vanilla/android-21/bin/arm-linux-androideabi-gcc
-- Check for working C compiler: /home/vnadmin/android/arm-linux-androideabi-4.9-vanilla/android-21/bin/arm-linux-androideabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Source directory: /home/vnadmin/android/kodi-android
-- Build directory: /home/vnadmin/android/kodi-android/build
-- Generator: Single-configuration: Debug (Unix Makefiles)
-- CMake Version: 3.6.2
-- System type: Linux
-- Core system type: android
-- Platform:
-- CPU: armeabi-v7a, ARCH: arm
-- Cross-Compiling: TRUE
-- Execute build artefacts on host: FALSE
-- Depends based build: 1
-- Could not find hardware support for SSE (missing:  _SSE_TRUE _SSE_OK)
-- Could not find hardware support for SSE2 (missing:  _SSE2_TRUE _SSE2_OK)
-- Could not find hardware support for SSE3 (missing:  _SSE3_TRUE _SSE3_OK)
-- Could not find hardware support for SSSE3 (missing:  _SSSE3_TRUE _SSSE3_OK)
-- Could not find hardware support for SSE4.1 (missing:  _SSE41_TRUE _SSE41_OK)
-- Could not find hardware support for SSE4.2 (missing:  _SSE42_TRUE _SSE42_OK)
-- Could not find hardware support for AVX (missing:  _AVX_TRUE _AVX_OK)
-- Could not find hardware support for AVX2 (missing:  _AVX2_TRUE _AVX2_OK)
-- NEON optimization enabled
-- Found Git: /usr/bin/git (found version "2.7.4")
-- Found PkgConfig: /home/vnadmin/android/kodi-android/xbmc-depends/x86_64-linux-gnu-native/bin/pkg-config (found version "0.28")
-- Found EXPAT: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libexpat.a (found version "2.2.0")
-- Found Sqlite3: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libsqlite3.a (found version "3.14.2")
-- Found FreeType: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libfreetype.a (found version "13.2.7")
-- Found PCRE: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libpcrecpp.a (found version "8.36")
-- Found LIBDVD: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/include  
-- Found TinyXML: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libtinyxml.a (found version "2.6.2")
-- Found PYTHON: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/include/python2.7  
-- Found Yajl: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libyajl.a (found suitable version "2.0.1", minimum required is "2.0.0")
-- Found Lzo2: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/liblzo2.a  
-- Found FriBidi: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libfribidi.a (found version "0.19.1")
-- Found TagLib: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libtag.a (found version "1.11.1")
-- Found FFMPEG: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/include (found version "3.1")
-- Found CrossGuid: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libcrossguid.a  
-- Found UUID: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libuuid.a (found version "1.42.13")
-- Found ZLIB: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libz.a (found version "1.2.7")
-- Found ZIP: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libzip.a (found version "1.1.2")
-- Found MicroHttpd: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libmicrohttpd.a  
-- Found MySqlClient: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/mysql/libmysqlclient.a  
-- Found SSH: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libssh.a (found version "0.7.0")
-- Found LibXml2: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libxml2.a;-L/home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib;-lxml2;-lz;-lm (found version "2.7.6")
-- Found XSLT: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libxslt.a (found version "1.1.29")
-- Could NOT find ALSA (missing:  ALSA_LIBRARY ALSA_INCLUDE_DIR)
-- Could NOT find UDEV (missing:  UDEV_LIBRARY UDEV_INCLUDE_DIR)
-- Could NOT find DBus (missing:  DBUS_LIBRARY DBUS_INCLUDE_DIR DBUS_ARCH_INCLUDE_DIR)
-- Could NOT find Avahi (missing:  AVAHI_CLIENT_LIBRARY AVAHI_COMMON_LIBRARY AVAHI_CLIENT_INCLUDE_DIR AVAHI_COMMON_INCLUDE_DIR)
-- Found mDNS: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libmDNSEmbedded.a  
-- Found SmbClient: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libsmbclient.so  
-- Could NOT find CCACHE (missing:  CCACHE_PROGRAM)
-- Could NOT find PulseAudio (missing:  PULSEAUDIO_LIBRARY PULSEAUDIO_MAINLOOP_LIBRARY PULSEAUDIO_INCLUDE_DIR) (Required is at least version "2.0.0")
-- Could NOT find VDPAU (missing:  VDPAU_LIBRARY VDPAU_INCLUDE_DIR)
-- Could NOT find VAAPI (missing:  VAAPI_libva_LIBRARY VAAPI_libva-x11_LIBRARY VAAPI_libva-drm_LIBRARY VAAPI_INCLUDE_DIR) (Required is at least version "0.38.0")
-- Could NOT find Bluetooth (missing:  BLUETOOTH_LIBRARY BLUETOOTH_INCLUDE_DIR)
-- Could NOT find CAP (missing:  CAP_LIBRARY)
-- Could NOT find LIBUSB (missing:  LIBUSB_LIBRARY LIBUSB_INCLUDE_DIR)
-- Found Curl: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libcurl.so (found version "7.51.0")
-- OpenSSL is statically linked into Curl: TRUE
-- Found ASS: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libass.so (found version "0.13.4")
-- Could NOT find CEC (missing:  CEC_LIBRARY CEC_INCLUDE_DIR) (Required is at least version "4.0.0")
-- Found Bluray: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libbluray.so (found version "0.9.3")
-- Found PLIST: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libplist.so (found version "1.6")
-- Found NFS: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libnfs.so (found version "1.10.0")
-- Found OpenSSL: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libssl.a;/home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libcrypto.a (found version "1.0.2j")
-- Found Shairplay: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/lib/libshairplay.so  
-- Could NOT find OpenGl (missing:  OPENGL_gl_LIBRARY OPENGL_glu_LIBRARY OPENGL_INCLUDE_DIR)
-- Found OpenGLES: /home/vnadmin/android/arm-linux-androideabi-4.9-vanilla/android-21/sysroot/usr/lib/libGLESv2.so  
-- Found EGL: /home/vnadmin/android/arm-linux-androideabi-4.9-vanilla/android-21/sysroot/usr/lib/libEGL.so  
-- Could NOT find IMX (missing:  IMX_INCLUDE_DIR FSLVPUWRAP_LIBRARY VPU_LIBRARY G2D_LIBRARY)
-- Found PythonInterp: /home/vnadmin/android/kodi-android/xbmc-depends/arm-linux-androideabi-android-21/bin/python (found version "1.4")
-- Found Threads: TRUE  
-- Found Java: /usr/bin/java (found version "1.8.0.111") found components:  Runtime
-- Found SWIG: /home/vnadmin/android/kodi-android/xbmc-depends/x86_64-linux-gnu-native/bin/swig (found version "3.0.10")
-- #---- CONFIGURATION ----#
-- -- PATH config --
-- Prefix: /home/vnadmin/android/kodi-android/build/install
-- Libdir: /home/vnadmin/android/kodi-android/build/install/lib
-- Bindir: /home/vnadmin/android/kodi-android/build/install/bin
-- Includedir: /home/vnadmin/android/kodi-android/build/install/include
-- Datarootdir: /home/vnadmin/android/kodi-android/build/install/share
-- Datadir: /home/vnadmin/android/kodi-android/build/install/share
-- MICROHTTPD enabled: Yes
-- MYSQLCLIENT enabled: Yes
-- SSH enabled: Yes
-- XSLT enabled: Yes
-- ALSA enabled: No
-- UDEV enabled: No
-- DBUS enabled: No
-- AVAHI enabled: No
-- MDNS enabled: Yes
-- SMBCLIENT enabled: Yes
-- CCACHE enabled: No
-- PULSEAUDIO enabled: No
-- VDPAU enabled: No
-- VAAPI enabled: No
-- BLUETOOTH enabled: No
-- CAP enabled: No
-- LIBUSB enabled: No
-- CEC enabled: No
-- BLURAY enabled: Yes
-- PLIST enabled: Yes
-- NFS enabled: Yes
-- SDL enabled: No
-- OPENGL enabled: No
-- OPENGLES enabled: Yes
-- X enabled: No
-- LIBDRM enabled: No
-- AML enabled: No
-- IMX enabled: No
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vnadmin/android/kodi-android/build
make: Leaving directory '/home/vnadmin/android/kodi-android/tools/depends/target/cmakebuildsys'
[email protected]:~/android/kodi-android$

After this I've run make and make apk from kodi-android/build folder and got this:

Code:
[email protected]:~/android/kodi-android/build$ make apk
Scanning dependencies of target bundle_files
[  0%] Built target bundle_files
[  0%] Built target libcpluff
[  0%] Built target crossguid
[  0%] Built target network_httprequesthandlers_python
[  0%] Built target compileinfo
[  0%] Built target python_binding
[  1%] Built target linuxsupport
[  1%] Built target input_touch
[  1%] Built target input_touch_generic
[  1%] Built target network_linux
[  1%] Built target peripherals_bus_android
[  1%] Built target powermanagement_android
[  1%] Built target storage_android
[  1%] Built target filesystem_posix
[  1%] Built target utils_posix
[  1%] Built target windowing_android
[  2%] Built target windowing_egl
[  2%] Built target platform_posix
[  2%] Built target platform_android_activity
[  3%] Built target platform_android_bionicsupplement
[  8%] Built target platform_android_jni
[  8%] Built target platform_android_loader
[ 10%] Built target cores
[ 12%] Built target audioengine
[ 13%] Built target dllloader
[ 13%] Built target dllexports
[ 13%] Built target exports_utils
[ 13%] Built target externalplayer
[ 13%] Built target paplayer
[ 13%] Built target playercorefactory
[ 13%] Built target retroplayer
[ 13%] Built target events
[ 14%] Built target events_windows
[ 14%] Built target kissfft
[ 20%] Built target upnp
[ 26%] Built target filesystem
[ 27%] Built target videodatabasedirectory
[ 30%] Built target musicdatabasedirectory
[ 30%] Built target games
[ 31%] Built target gameaddons
[ 31%] Built target gameplayback
[ 31%] Built target gamesavestates
[ 32%] Built target games_controller
[ 32%] Built target games_controller_dialogs
[ 32%] Built target games_controller_guicontrols
[ 33%] Built target games_controller_windows
[ 33%] Built target gamedialogs
[ 33%] Built target gameports
[ 34%] Built target gametags
[ 34%] Built target gameswindows
[ 35%] Built target interfaces
[ 36%] Built target interfaces_builtins
[ 36%] Built target generic_interface
[ 37%] Built target info_interface
[ 37%] Built target generate_json_header
[ 38%] Built target jsonrpc_interface
[ 41%] Built target legacy_interface
[ 41%] Built target legacy_interface_wsgi
[ 42%] Built target python_interface
[ 43%] Built target music
[ 43%] Built target music_dialogs
[ 43%] Built target music_infoscanner
[ 44%] Built target music_tags
[ 44%] Built target music_windows
[ 45%] Built target network
[ 45%] Built target network_websockets
[ 45%] Built target peripherals
[ 46%] Built target peripherals_addons
[ 46%] Built target peripherals_bus
[ 46%] Built target peripheral_bus_virtual
[ 47%] Built target peripherals_devices
[ 47%] Built target peripherals_dialogs
[ 47%] Built target profiles
[ 47%] Built target profiles_dialogs
[ 48%] Built target profiles_windows
[ 48%] Built target pvr
[ 48%] Built target pvr_addons
[ 50%] Built target pvr_channels
[ 50%] Built target pvr_dialogs
[ 51%] Built target pvr_recordings
[ 51%] Built target pvr_timers
[ 52%] Built target pvr_windows
[ 53%] Built target settings
[ 53%] Built target settings_dialogs
[ 54%] Built target settings_lib
[ 54%] Built target settings_windows
[ 56%] Built target xbmc
[ 58%] Built target addons
[ 58%] Built target addonsBinaryInterfaces
[ 58%] Built target addonInterface_Addon
[ 58%] Built target addonInterface_AudioDSP
[ 58%] Built target addonInterface_AudioEngine
[ 58%] Built target addonInterface_Codec
[ 58%] Built target addonCallbacks_Game
[ 58%] Built target addonInterface_GUI
[ 60%] Built target addonInterface_InputStream
[ 60%] Built target addonInterface_Peripheral
[ 60%] Built target addonInterface_PVR
[ 60%] Built target commons
[ 60%] Built target dbwrappers
[ 62%] Built target dialogs
[ 62%] Built target epg
[ 67%] Built target guilib
[ 67%] Built target input
[ 68%] Built target input_joystick
[ 68%] Built target input_joystick_dialogs
[ 68%] Built target input_joystick_generic
[ 70%] Built target input_keyboard
[ 70%] Built target input_keyboard_generic
[ 70%] Built target input_mouse
[ 70%] Built target input_mouse_generic
[ 71%] Built target listproviders
[ 71%] Built target media
[ 71%] Built target messaging
[ 71%] Built target messagingHelpers
[ 72%] Built target pictures
[ 73%] Built target platform_common
[ 74%] Built target playlists
[ 74%] Built target powermanagement
[ 74%] Built target programs
[ 74%] Built target rendering
[ 75%] Built target storage
[ 75%] Built target threads
[ 81%] Built target utils
[ 81%] Built target view
[ 81%] Built target windowing
[ 81%] Built target windows
[ 82%] Built target video
[ 83%] Built target video_dialogs
[ 83%] Built target video_jobs
[ 84%] Built target video_sync
[ 84%] Built target video_windows
[ 85%] Built target VideoPlayer
[ 85%] Built target dvdcodecs
[ 85%] Built target dvdaudiocodecs
[ 85%] Built target dvdoverlaycodecs
[ 86%] Built target dvdvideocodecs
[ 87%] Built target dvddemuxers
[ 88%] Built target dvdinputstreams
[ 90%] Built target dvdsubtitles
[ 90%] Built target process
[ 91%] Built target videorenderers
[ 92%] Built target videoshaders
[ 92%] Built target videorenderers_hwdec
[ 92%] Built target network_dacp
[ 93%] Built target network_mdns
[ 95%] Built target unrarxlib
[ 95%] Built target rendering_gl
[ 96%] Built target rendering_gles
[ 96%] Built target network_upnp
[ 97%] Built target network_httprequesthandlers
[ 97%] Built target libkodi
[ 97%] Copying files into build tree
[ 97%] Built target export-files
[ 98%] Built target pack-skins
[ 98%] Built target exif
[ 98%] Built target wrapper
[ 98%] Built target wrapper.def
[100%] Built target wrap_libexif
[100%] Built target wrap_libdvdnav
[100%] Built target wrap_libcpluff
[100%] Built target kodi-libraries
[100%] Built target kodi
Scanning dependencies of target bundle
[100%] Built target bundle
Scanning dependencies of target apk
find: ‘/home/vnadmin/android/kodi-android/build/install/lib/kodi/addons’: No such file or directory
Crunching PNG Files in source dir: xbmc/res
To destination dir: tmp/res
    (skipping file '.gitkeep' due to ANDROID_AAPT_IGNORE pattern '.*')
    (skipping file '.gitkeep' due to ANDROID_AAPT_IGNORE pattern '.*')
    (skipping file '.gitkeep' due to ANDROID_AAPT_IGNORE pattern '.*')
    (skipping file '.gitkeep' due to ANDROID_AAPT_IGNORE pattern '.*')
    (skipping file '.gitkeep' due to ANDROID_AAPT_IGNORE pattern '.*')
    (skipping file '.gitkeep' due to ANDROID_AAPT_IGNORE pattern '.*')
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 warning
Creating package...
Signing...
jar signed.

Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2046-12-30) or after any future revocation date.
/home/vnadmin/android/kodi-android/kodiapp-armeabi-v7a-debug.apk created
[100%] Built target apk
find quote
Harry_chauhan Offline
Junior Member
Posts: 6
Joined: Mar 2017
Reputation: 0
Post: #4
I have tried to compile as suggest on the android using : make -C tools/depends/target/cmakebuildsys
I am having ubuntu 14.04 and x86_64-linux

but I am struggling with the error as:

[email protected]:~/KODI/kodi-android$ sudo make -C tools/depends/target/cmakebuildsys/
[sudo] password for diksha:
make: Entering directory `/home/diksha/KODI/kodi-android/tools/depends/target/cmakebuildsys'
mkdir -p /home/diksha/KODI/kodi-android/build
cd /home/diksha/KODI/kodi-android/build; /home/diksha/KODI/xbmc-depends/x86_64-linux-gnu-native/bin/cmake -DCMAKE_TOOLCHAIN_FILE=/home/diksha/KODI/xbmc-depends/x86_64-linux-gnu-debug/share/Toolchain.cmake -DCMAKE_INSTALL_PREFIX=/home/diksha/KODI/xbmc-depends/x86_64-linux-gnu-debug -DCMAKE_BUILD_TYPE=Debug -DENABLE_INTERNAL_CROSSGUID=OFF -DENABLE_INTERNAL_FFMPEG=OFF /home/diksha/KODI/kodi-android
-- Source directory: /home/diksha/KODI/kodi-android
-- Build directory: /home/diksha/KODI/kodi-android/build
-- Generator: Single-configuration: Debug (Unix Makefiles)
-- CMake Version: 3.6.2
-- System type: Linux
-- Linker: GNU gold
-- Debug Fission enabled
-- Core system type: linux
-- Platform:
-- CPU: x86_64, ARCH: x86_64-linux
-- Cross-Compiling: TRUE
-- Execute build artefacts on host: FALSE
-- Depends based build: 1
-- Checking to see if CXX compiler accepts flag -msse
-- Checking to see if CXX compiler accepts flag -msse - yes
-- Checking to see if CXX compiler accepts flag -msse2
-- Checking to see if CXX compiler accepts flag -msse2 - yes
-- Checking to see if CXX compiler accepts flag -msse3
-- Checking to see if CXX compiler accepts flag -msse3 - yes
-- Checking to see if CXX compiler accepts flag -mssse3
-- Checking to see if CXX compiler accepts flag -mssse3 - yes
-- Checking to see if CXX compiler accepts flag -msse4.1
-- Checking to see if CXX compiler accepts flag -msse4.1 - yes
-- Checking to see if CXX compiler accepts flag -msse4.2
-- Checking to see if CXX compiler accepts flag -msse4.2 - yes
-- Checking to see if CXX compiler accepts flag -mavx
-- Checking to see if CXX compiler accepts flag -mavx - yes
-- Checking to see if CXX compiler accepts flag -mavx2
-- Checking to see if CXX compiler accepts flag -mavx2 - yes
-- Could NOT find Avahi (missing: AVAHI_CLIENT_LIBRARY AVAHI_COMMON_LIBRARY AVAHI_CLIENT_INCLUDE_DIR AVAHI_COMMON_INCLUDE_DIR)
-- Could NOT find Bluetooth (missing: BLUETOOTH_LIBRARY BLUETOOTH_INCLUDE_DIR)
-- Could NOT find CAP (missing: CAP_LIBRARY)
-- Could NOT find CCACHE (missing: CCACHE_PROGRAM)
-- Could NOT find DBus (missing: DBUS_LIBRARY DBUS_INCLUDE_DIR DBUS_ARCH_INCLUDE_DIR)
-- Could NOT find LCMS2 (missing: LCMS2_LIBRARY LCMS2_INCLUDE_DIR)
-- Could NOT find mDNS (missing: MDNS_LIBRARY MDNS_INCLUDE_DIR)
-- Could NOT find PulseAudio (missing: PULSEAUDIO_LIBRARY PULSEAUDIO_MAINLOOP_LIBRARY PULSEAUDIO_INCLUDE_DIR) (Required is at least version "2.0.0")
-- Could NOT find UDEV (missing: UDEV_LIBRARY UDEV_INCLUDE_DIR)
-- Could NOT find VAAPI (missing: VAAPI_libva_LIBRARY VAAPI_libva-x11_LIBRARY VAAPI_libva-drm_LIBRARY VAAPI_INCLUDE_DIR) (Required is at least version "0.38.0")
-- Could NOT find VDPAU (missing: VDPAU_LIBRARY VDPAU_INCLUDE_DIR)
-- Could NOT find OpenGl (missing: OPENGL_gl_LIBRARY OPENGL_glu_LIBRARY OPENGL_INCLUDE_DIR)
CMake Error at /home/diksha/KODI/xbmc-depends/x86_64-linux-gnu-native/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find X (missing: X_LIBRARY X_EXT_LIBRARY X_INCLUDE_DIR) (found
version "1.6.2")
Call Stack (most recent call first):
/home/diksha/KODI/xbmc-depends/x86_64-linux-gnu-native/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindX.cmake:32 (find_package_handle_standard_args)
cmake/scripts/common/Macros.cmake:360 (find_package)
CMakeLists.txt:242 (core_optional_dep)


-- Configuring incomplete, errors occurred!
See also "/home/diksha/KODI/kodi-android/build/CMakeFiles/CMakeOutput.log".
See also "/home/diksha/KODI/kodi-android/build/CMakeFiles/CMakeError.log".
make: *** [all] Error 1
make: Leaving directory `/home/diksha/KODI/kodi-android/tools/depends/target/cmakebuildsys'
find quote
Rechi Offline
Team-Kodi Member
Posts: 336
Joined: Feb 2015
Reputation: 4
Location: Austria
Post: #5
@Harry_chauhan are you trying to compile for android?
It seems you haven't done https://github.com/xbmc/xbmc/blob/master...droid#L201 before executing make -C tools/depends/target/cmakebuildsys

If I'm wrong with my assumption tell what you have done so far.
find quote
Harry_chauhan Offline
Junior Member
Posts: 6
Joined: Mar 2017
Reputation: 0
Post: #6
@Rechi,
I have followed the steps accordingly in the ReadMe file. but I am not sure if I have been wrong in mid way. I have configured the dependiencies acc to the guide and got the "Dependencies built successfully." message and after that I have tried to execute the make. but now I am struggling with this error. If I have done something wrong with the configurations, then would it be possible to built the dependencies?
find quote
Harry_chauhan Offline
Junior Member
Posts: 6
Joined: Mar 2017
Reputation: 0
Post: #7
for more details I am using x86_64 machine with ubuntu 14.04 and I am trying to make a build from the feature_win64 branch

I am using the android-ndk-r12b and inside that I am creating my toolchain with the
./make-standalone-toolchain.sh --ndk-dir=../../ \
--install-dir=/home/diksha/Android/android-ndk-r12b/myToolChain/android-21 --platform=android-21 \
--toolchain=x86-4.9 --arch=x86

then cloned the Kodi to my workspace and checkout to feature_win64 branch
then I use the commands as:
cd $HOME/kodi-android/tools/depends
$ ./bootstrap

./configure
--with-toolchain=/home/diksha/Android/android-ndk-r12b/myToolChain/android-21
--prefix=/home/diksha/KODI/xbmc-depends
--host=x86_64
--with-tarballs=/home/diksha/KODI/xbmc-depends/tarballs
--with-sdk-path=/home/diksha/Android/Sdk
--with-ndk=/home/diksha/Android/android-ndk-r12b

I have got the "Dependencies built successfully." message but after that when I tried to build Kodi I got the above errors.
Please guide me through the correct way.
find quote
Rechi Offline
Team-Kodi Member
Posts: 336
Joined: Feb 2015
Reputation: 4
Location: Austria
Post: #8
(2017-03-21 17:14)Harry_chauhan Wrote:  for more details I am using x86_64 machine with ubuntu 14.04 and I am trying to make a build from the feature_win64 branch
Why do you want to use feature_win64 branch for compiling android? This branch is basically master and some changes needed for Windows x64.

(2017-03-21 17:14)Harry_chauhan Wrote:  ./configure
--with-toolchain=/home/diksha/Android/android-ndk-r12b/myToolChain/android-21
--prefix=/home/diksha/KODI/xbmc-depends
--host=x86_64
--with-tarballs=/home/diksha/KODI/xbmc-depends/tarballs
--with-sdk-path=/home/diksha/Android/Sdk
--with-ndk=/home/diksha/Android/android-ndk-r12b

The name of the host parameter is a bit misleading, because host is defining for which target you will build. For android there are three different values, arm-linux-androideabi, aarch64-linux-android or i686-linux-android. The fist one is most likely the one you want. So just execute the configure command again with the corrected host name.
PHP Code:
./configure 
--with-toolchain=/home/diksha/Android/android-ndk-r12b/myToolChain/android-21 
--prefix=/home/diksha/KODI/xbmc-depends 
--host=arm-linux-androideabi
--with-tarballs=/home/diksha/KODI/xbmc-depends/tarballs
--with-sdk-path=/home/diksha/Android/Sdk
--with-ndk=/home/diksha/Android/android-ndk-r12b 

After that rerun make in tools/depends. Than go to /home/diksha/KODI/kodi-android remove the build directory and execute make -C tools/depends/target/cmakebuildsys.
Now you should be able to compile kodi for andorid by executing make in the build directory.
find quote
Harry_chauhan Offline
Junior Member
Posts: 6
Joined: Mar 2017
Reputation: 0
Post: #9
This does not seems to be working : Now I am getting following errors:
[email protected]:~/KODI/kodi-android$ make -C tools/depends/target/cmakebuildsys/
make: Entering directory `/home/diksha/KODI/kodi-android/tools/depends/target/cmakebuildsys'
mkdir -p /home/diksha/KODI/kodi-android/build
cd /home/diksha/KODI/kodi-android/build; /home/diksha/KODI/xbmc-depends/x86_64-linux-gnu-native/bin/cmake -DCMAKE_TOOLCHAIN_FILE=/home/diksha/KODI/xbmc-depends/arm-linux-androideabi-android-21-debug/share/Toolchain.cmake -DCMAKE_INSTALL_PREFIX=/home/diksha/KODI/xbmc-depends/arm-linux-androideabi-android-21-debug -DCMAKE_BUILD_TYPE=Debug -DENABLE_INTERNAL_CROSSGUID=OFF -DENABLE_INTERNAL_FFMPEG=OFF /home/diksha/KODI/kodi-android
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- broken
CMake Error at /home/diksha/KODI/xbmc-depends/x86_64-linux-gnu-native/share/cmake-3.6/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler "/usr/bin/g++" is not able to compile a simple test
program.

It fails with the following output:

Change Dir: /home/diksha/KODI/kodi-android/build/CMakeFiles/CMakeTmp



Run Build Command:"/usr/bin/make" "cmTC_dd50e/fast"

make[1]: Entering directory
`/home/diksha/KODI/kodi-android/build/CMakeFiles/CMakeTmp'

/usr/bin/make -f CMakeFiles/cmTC_dd50e.dir/build.make
CMakeFiles/cmTC_dd50e.dir/build

make[2]: Entering directory
`/home/diksha/KODI/kodi-android/build/CMakeFiles/CMakeTmp'

Building CXX object CMakeFiles/cmTC_dd50e.dir/testCXXCompiler.cxx.o

/usr/bin/g++ -std=gnu++11 -DANDROID -fexceptions -fPIC -DPIC -march=armv7-a
-mtune=cortex-a9 -mfloat-abi=softfp -mfpu=neon -frtti -g -D_DEBUG
-I/home/diksha/KODI/xbmc-depends/arm-linux-androideabi-android-21-debug/include/android-21
-isystem
/home/diksha/KODI/xbmc-depends/arm-linux-androideabi-android-21-debug/include
-o CMakeFiles/cmTC_dd50e.dir/testCXXCompiler.cxx.o -c
/home/diksha/KODI/kodi-android/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx


g++: error: unrecognized command line option ‘-mfloat-abi=softfp’

g++: error: unrecognized command line option ‘-mfpu=neon’

make[2]: *** [CMakeFiles/cmTC_dd50e.dir/testCXXCompiler.cxx.o] Error 1

make[2]: Leaving directory
`/home/diksha/KODI/kodi-android/build/CMakeFiles/CMakeTmp'

make[1]: *** [cmTC_dd50e/fast] Error 2

make[1]: Leaving directory
`/home/diksha/KODI/kodi-android/build/CMakeFiles/CMakeTmp'





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
See also "/home/diksha/KODI/kodi-android/build/CMakeFiles/CMakeOutput.log".
See also "/home/diksha/KODI/kodi-android/build/CMakeFiles/CMakeError.log".
make: *** [all] Error 1
make: Leaving directory `/home/diksha/KODI/kodi-android/tools/depends/target/cmakebuildsys'
find quote
Rechi Offline
Team-Kodi Member
Posts: 336
Joined: Feb 2015
Reputation: 4
Location: Austria
Post: #10
Please post the output of the configure command, you can run it again to get and the content of /home/diksha/KODI/xbmc-depends/arm-linux-androideabi-android-21-debug/share/Toolchain.cmake.
Use http://pastebin.com or something similar for posting these.
find quote
Harry_chauhan Offline
Junior Member
Posts: 6
Joined: Mar 2017
Reputation: 0
Post: #11
checking build system type... x86_64-pc-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 ccache... no
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... no
checking for ranlib... /usr/bin/ranlib
configure: WARNING: using cross tools not prefixed with host triplet
checking for arm-linux-androideabi-ld... no
checking for ld... /usr/bin/ld
checking for arm-linux-androideabi-ar... no
checking for ar... /usr/bin/ar
checking for arm-linux-androideabi-readelf... no
checking for readelf... /usr/bin/readelf
checking for arm-linux-androideabi-strip... no
checking for strip... /usr/bin/strip
checking for arm-linux-androideabi-as... no
checking for as... /usr/bin/as
checking for arm-linux-androideabi-nm... no
checking for nm... /usr/bin/nm
checking for arm-linux-androideabi-objdump... no
checking for objdump... /usr/bin/objdump
checking for arm-linux-androideabi-gcc... no
checking for gcc... /usr/bin/gcc
checking for arm-linux-androideabi-g++... no
checking for g++... /usr/bin/g++
checking how to run the C preprocessor... /usr/bin/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 library containing iconv_open... none required
checking for main in -lcrystax... no
checking for aapt... /home/diksha/Android/Sdk/build-tools/25.0.1/aapt
checking for dx... /home/diksha/Android/Sdk/build-tools/25.0.1/dx
checking for zipalign... /home/diksha/Android/Sdk/build-tools/25.0.1/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
ccache: no
toolchain: /home/diksha/Android/android-ndk-r12b/myToolChain/android-21
cpu: armeabi-v7a
host: arm-linux-androideabi
sdk-platform: android-21
build-tools: /home/diksha/Android/Sdk/tools:/home/diksha/Android/Sdk/platform-tools:/home/diksha/Android/Sdk/build-tools/25.0.1
use simulator:
'target/config.site' -> '/home/diksha/KODI/xbmc-depends/arm-linux-androideabi-android-21-debug/share/config.site'
'target/config-binaddons.site' -> '/home/diksha/KODI/xbmc-depends/x86_64-linux-gnu-native/share/config-binaddons.site'
'target/Toolchain.cmake' -> '/home/diksha/KODI/xbmc-depends/arm-linux-androideabi-android-21-debug/share/Toolchain.cmake'
'target/Toolchain_binaddons.cmake' -> '/home/diksha/KODI/xbmc-depends/arm-linux-androideabi-android-21-debug/share/Toolchain_binaddons.cmake'
'native/config.site.native' -> '/home/diksha/KODI/xbmc-depends/x86_64-linux-gnu-native/share/config.site'


#------- configuration -------#
build type: debug
toolchain: /home/diksha/Android/android-ndk-r12b/myToolChain/android-21
cpu: armeabi-v7a
host: arm-linux-androideabi
cflags: -DANDROID -fexceptions -fPIC -DPIC -march=armv7-a -mtune=cortex-a9 -mfloat-abi=softfp -mfpu=neon -g -D_DEBUG
cxxflags: -std=gnu++11 -DANDROID -fexceptions -fPIC -DPIC -march=armv7-a -mtune=cortex-a9 -mfloat-abi=softfp -mfpu=neon -frtti -g -D_DEBUG
ldflags: -L/home/diksha/KODI/xbmc-depends/arm-linux-androideabi-android-21-debug/lib/android-21
prefix: /home/diksha/KODI/xbmc-depends
depends: /home/diksha/KODI/xbmc-depends/arm-linux-androideabi-android-21-debug
sdk-platform: android-21
build-tools: /home/diksha/Android/Sdk/tools:/home/diksha/Android/Sdk/platform-tools:/home/diksha/Android/Sdk/build-tools/25.0.1
find quote
Rechi Offline
Team-Kodi Member
Posts: 336
Joined: Feb 2015
Reputation: 4
Location: Austria
Post: #12
It seems like your toolchain path (specified with --with-toolchain=) is wrong. In the directory must be a bin directory which contains the flowing programs:
arm-linux-androideabi-ar arm-linux-androideabi-as arm-linux-androideabi-g++ arm-linux-androideabi-gcc arm-linux-androideabi-ld arm-linux-androideabi-nm arm-linux-androideabi-objdump arm-linux-androideabi-ranlib arm-linux-androideabi-readelf arm-linux-androideabi-strip.

You must reconfigure with the correct path and build the dependencies again.

I don't know if other paths are also wrong, but you will see it when you still get errors.
find quote
Harry_chauhan Offline
Junior Member
Posts: 6
Joined: Mar 2017
Reputation: 0
Post: #13
@Rechi: thanks for the help I tried to correct my configurations and worked for me. but now I am getting the following error after executing make in my build dir:

[ 38%] Built target info_interface
[ 38%] Generating ServiceDescription.h
/bin/sh: 1: //home/diksha/xbmc-depends/x86_64-linux-gnu-native/bin/JsonSchemaBuilder: not found
make[2]: *** [build/ServiceDescription.h] Error 127
make[1]: *** [build/interfaces/json-rpc/schema/CMakeFiles/generate_json_header.dir/all] Error 2
make: *** [all] Error 2
find quote