I'm trying to build linphone as a package for LibreELEC (Odroid C2), following Adding a Package - LibreELEC , so I can use my smartphone as wireless speakers for my beamer in the bedroom.
Source: Smartphone As WiFi Headphone (for Kodi): 7 Steps
Linphone and it's dependencies can be found at Belledonne Communications · GitHub
1 dependency (belr) fails with this error:
Code
CLEAN belr
* Removing /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/belr-master ...
UNPACK belr
BUILD belr (target)
Executing (target): cmake -DCMAKE_TOOLCHAIN_FILE=/home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/etc/cmake-aarch64-libreelec-linux-gnueabi.conf -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=MinSizeRel /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/belr-master
-- The C compiler identification is GNU 6.2.0
-- The CXX compiler identification is GNU 6.2.0
-- Check for working C compiler: /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/bin/aarch64-libreelec-linux-gnueabi-gcc
-- Check for working C compiler: /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/bin/aarch64-libreelec-linux-gnueabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/bin/aarch64-libreelec-linux-gnueabi-g++
-- Check for working CXX compiler: /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/bin/aarch64-libreelec-linux-gnueabi-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting install rpath to
-- Looking for include file libudev.h
-- Looking for include file libudev.h - found
-- Found Git: /usr/bin/git (found suitable version "2.7.4", minimum required is "1.7.1")
fatal: ambiguous argument '0.1.3..HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
-- Package file name is belr-0.1.3-0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/belr-master/.aarch64-libreelec-linux-gnueabi
Executing (target): make
Scanning dependencies of target belr-static
Scanning dependencies of target belr
[ 14%] Building CXX object src/CMakeFiles/belr-static.dir/abnf.cpp.o
[ 14%] Building CXX object src/CMakeFiles/belr.dir/belr.cpp.o
[ 21%] Building CXX object src/CMakeFiles/belr.dir/abnf.cpp.o
[ 28%] Building CXX object src/CMakeFiles/belr-static.dir/belr.cpp.o
[ 35%] Building CXX object src/CMakeFiles/belr-static.dir/grammarbuilder.cpp.o
[ 42%] Building CXX object src/CMakeFiles/belr-static.dir/parser.cpp.o
In file included from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/bits/stl_algo.h:59:0,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/algorithm:62,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/belr-master/include/belr/parser.h:22,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/belr-master/src/belr.cpp:19:
/home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
compilation terminated.
make[2]: *** [src/CMakeFiles/belr.dir/build.make:87: src/CMakeFiles/belr.dir/belr.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 50%] Linking CXX static library libbelr.a
In file included from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/ext/string_conversions.h:41:0,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/bits/basic_string.h:5402,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/string:52,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/stdexcept:39,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/array:39,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/tuple:39,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/bits/stl_map.h:63,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/map:61,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/belr-master/include/belr/belr.h:23,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/belr-master/include/belr/abnf.h:22,
from /home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/belr-master/src/abnf.cpp:19:
/home/builder/LibreELEC.tv/build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
compilation terminated.
make[2]: *** [src/CMakeFiles/belr.dir/build.make:63: src/CMakeFiles/belr.dir/abnf.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:143: src/CMakeFiles/belr.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 50%] Built target belr-static
make: *** [Makefile:150: all] Error 2
Display More
How can I fix this? The file is present in multiple locations:
Code
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/cpio-2.12/.x86_64-linux-gnu/gnu/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/m4-1.4.17/.x86_64-linux-gnu/lib/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/glibc-2.24/stdlib/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/glibc-2.24/stdlib/bits/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/glibc-2.24/include/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/glibc-2.24/include/bits/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gettext-0.19.8.1/.x86_64-linux-gnu/libgettextpo/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gettext-0.19.8.1/.x86_64-linux-gnu/gnulib-lib/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gcc-linaro-aarch64-elf-4.9-2016.02/aarch64-elf/include/c++/4.9.4/tr1/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gcc-linaro-aarch64-elf-4.9-2016.02/aarch64-elf/libc/usr/include/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gcc-linaro-aarch64-elf-4.9-2016.02/aarch64-elf/libc/usr/include/machine/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gcc-linaro-arm-eabi-4.9-2016.02/arm-eabi/include/c++/4.9.4/tr1/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gcc-linaro-arm-eabi-4.9-2016.02/arm-eabi/libc/usr/include/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gcc-linaro-arm-eabi-4.9-2016.02/arm-eabi/libc/usr/include/machine/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/u-boot-6e4e886/include/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/sed-4.2.2/.x86_64-linux-gnu/lib/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/linux-f6f2e4c/arch/powerpc/boot/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/parted-3.2/.aarch64-libreelec-linux-gnueabi/lib/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/parted-3.2/.x86_64-linux-gnu/lib/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/include/c++/6.2.0/tr1/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/sysroot/usr/include/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/aarch64-libreelec-linux-gnueabi/sysroot/usr/include/bits/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/lib/gcc-linaro-arm-eabi/arm-eabi/include/c++/4.9.4/tr1/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/lib/gcc-linaro-arm-eabi/arm-eabi/libc/usr/include/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/lib/gcc-linaro-arm-eabi/arm-eabi/libc/usr/include/machine/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/lib/gcc-linaro-aarch64-elf/aarch64-elf/include/c++/4.9.4/tr1/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/lib/gcc-linaro-aarch64-elf/aarch64-elf/libc/usr/include/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/toolchain/lib/gcc-linaro-aarch64-elf/aarch64-elf/libc/usr/include/machine/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gcc-6.2.0/fixincludes/tests/base/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gcc-6.2.0/fixincludes/tests/base/ansi/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gcc-6.2.0/.x86_64-linux-gnu/aarch64-libreelec-linux-gnueabi/libstdc++-v3/include/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gcc-6.2.0/.x86_64-linux-gnu/aarch64-libreelec-linux-gnueabi/libstdc++-v3/include/tr1/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gcc-6.2.0/libstdc++-v3/include/c_compatibility/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gcc-6.2.0/libstdc++-v3/include/tr1/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/bison-3.0.4/.x86_64-linux-gnu/lib/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gdb-7.11.1/.aarch64-libreelec-linux-gnueabi/gdb/build-gnulib/import/stdlib.h
./build.LibreELEC-Odroid_C2.aarch64-8.2-devel/gdb-7.11.1/.aarch64-libreelec-linux-gnueabi/gdb/gdbserver/build-gnulib-gdbserver/import/stdlib.h
Display More