tranter / raspberry-pi-qt-builds

Qt builds for the Raspberry Pi platform
88 stars 28 forks source link

incompatible libstdc++ error from 'rcc' with initial beta 0.2 release on current raspbian 'jessie' #1

Open NielsMayer opened 6 years ago

NielsMayer commented 6 years ago

I installed https://github.com/tranter/raspberry-pi-qt-builds/releases/download/v0.2-beta/Qt5.10.1-RaspberryPi3-bin-full.tgz and was able to successfully compile a Qt app up to the point where 'rcc' was invoked:

/usr/local/Qt-5.11.0/bin/rcc -name qml qml.qrc -o qrc_qml.cpp
/usr/local/Qt-5.11.0/bin/rcc: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/Qt-5.11.0/bin/rcc)
Makefile:743: recipe for target 'qrc_qml.cpp' failed

Note that installed libstdc++ only goes up to CXXABI_1.3.8:

$ strings  /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 | grep CXXABI
CXXABI_1.3
CXXABI_1.3.1
CXXABI_1.3.2
CXXABI_1.3.3
CXXABI_1.3.4
CXXABI_1.3.5
CXXABI_1.3.6
CXXABI_1.3.7
CXXABI_1.3.8
CXXABI_TM_1
CXXABI_ARM_1.3.3

An up-to-date 'libstdc++6' Raspbian Jessie package is installed:

$ apt-file search /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
libstdc++6: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
libstdc++6: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.20
tranter commented 6 years ago

The software was built on a Raspian system based on the "stretch" release. It won't run on the older "jessie" release. The newer release has been out since August 2017. You'll either need to update your system or build Qt yourself from source. Is either approach an option for you?