Posts: 7,658
Joined: Jun 2011
Reputation:
288
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/
Posts: 6
Joined: Mar 2017
Reputation:
0
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:
diksha@diksha-ubuntu:~/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'
Posts: 6
Joined: Mar 2017
Reputation:
0
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.
Posts: 6
Joined: Mar 2017
Reputation:
0
This does not seems to be working : Now I am getting following errors:
diksha@diksha-ubuntu:~/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'
Posts: 6
Joined: Mar 2017
Reputation:
0
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
Posts: 785
Joined: Feb 2015
Reputation:
38
Rechi
Team-Kodi Member
Posts: 785
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.
Posts: 6
Joined: Mar 2017
Reputation:
0
@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