Thanks Fuzzard! That worked perfectly.
jepsizofye - great idea I've now done this.
Now my build looks like this:
cd tools/depends
./bootstrap
./configure --prefix=/home/developer/opt/xbmc-deps --host=arm-linux-gnueabi --with-rendersystem=gles --enable-debug=no --with-target-cflags='-march=armv7-a -mfloat-abi=softfp -mfpu=neon' \
--with-target-cxxflags='-static-libstdc++'
make -j16
make -C tools/depends/target/cmakebuildsys BUILD_DIR=/home/developer/kodi-build CMAKE_EXTRA_ARGUMENTS="-DENABLE_CEC=OFF"
cd /home/developer/kodi-build
make -j16
But I had these errors running kodi.bin on my target device. Adding -static-libstdc++ seemed to have fixed the first three errors except the last one:
Quote:/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found
/usr/lib/libstdc++.so.6: version `CXXABI_1.3.13' not found
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /media/developer/lib/libwayland-client++.so.0)
But this issue still remains. Why wasn't libwayland-client++.so.0 built with or works with --with-target-cxxflags='-static-libstdc++'
Quote:./kodi.bin: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /media/developer/lib/libwayland-client++.so.0)
Looking at libwayland-client being built:
Quote:[ 80%] Building CXX object CMakeFiles/wayland-client++.dir/src/wayland-client.cpp.o
/home/developer/toolchain/arm-linux-gnueabi_sdk-buildroot/bin/arm-linux-gnueabi-g++ -Dwayland_client___EXPORTS -I/home/developer/kodi/tools/depends/target/waylandpp/arm-linux-gnueabi-release/include -I/home/developer/kodi/tools/depends/target/waylandpp/arm-linux-gnueabi-release/build -fPIC -DPIC -DNDEBUG=1 -Os -static-libstdc++ -std=c++17 -isystem /home/developer/opt/xbmc-deps/arm-linux-gnueabi-release/include -fPIC -I/home/developer/opt/xbmc-deps/arm-linux-gnueabi-release/include -std=gnu++11 -MD -MT CMakeFiles/wayland-client++.dir/src/wayland-client.cpp.o -MF CMakeFiles/wayland-client++.dir/src/wayland-client.cpp.o.d -o CMakeFiles/wayland-client++.dir/src/wayland-client.cpp.o -c /home/developer/kodi/tools/depends/target/waylandpp/arm-linux-gnueabi-release/src/wayland-client.cpp
[ 95%] Linking CXX shared library libwayland-client++.so
/home/developer/opt/xbmc-deps/x86_64-linux-gnu-native/bin/cmake -E cmake_link_script CMakeFiles/wayland-client++.dir/link.txt --verbose=1
/home/developer/toolchain/arm-linux-gnueabi_sdk-buildroot/bin/arm-linux-gnueabi-g++ -fPIC -fPIC -DPIC -DNDEBUG=1 -Os -static-libstdc++ -std=c++17 -isystem /home/developer/opt/xbmc-deps/arm-linux-gnueabi-release/include -Wl,--no-undefined -L/home/developer/opt/xbmc-deps/arm-linux-gnueabi-release/lib -Wl,-rpath-link=/home/developer/opt/xbmc-deps/arm-linux-gnueabi-release/lib -shared -Wl,-soname,libwayland-client++.so.0 -o libwayland-client++.so.0.2.8 CMakeFiles/wayland-client++.dir/src/wayland-client.cpp.o CMakeFiles/wayland-client++.dir/src/wayland-util.cpp.o CMakeFiles/wayland-client++.dir/wayland-client-protocol.cpp.o /home/developer/opt/xbmc-deps/arm-linux-gnueabi-release/lib/libwayland-client.so
/home/developer/opt/xbmc-deps/x86_64-linux-gnu-native/bin/cmake -E cmake_symlink_library libwayland-client++.so.0.2.8 libwayland-client++.so.0 libwayland-client++.so
It has -static-libstdc++ so why isn't it working?
UPDATE: never mind.. a rebuild fixed it. Maybe some old stale files?