Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.6.0
-
None
-
523c7e3fd55c853dd424d57f28e225d57439cf89
Description
When building from the convenience qt-everywhere-* tarball, the build will fail with an error like:
/usr/bin/ld: warning: libQt5Qml.so.5, needed by /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so, not found (try using -rpath or -rpath-link) /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QQmlContext::nameForObject(QObject*) const@Qt_5' /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QJSValue::~QJSValue()@Qt_5' /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QtQml::qmlContext(QObject const*)@Qt_5' /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QJSValue::toVariant() const@Qt_5' /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QJSValue::QJSValue(QJSValue::SpecialValue)@Qt_5' /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QJSValue::QJSValue(QJSValue const&)@Qt_5' /builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib/libQt5WebChannel.so: undefined reference to `QtQml::qmlAttachedPropertiesObject(int*, QObject const*, QMetaObject const*, bool)@Qt_5' collect2: error: ld returned 1 exit status
The command-line to the linker was:
g++ -Wl,-O1 -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64 -o chatserver .obj/main.o .obj/chatserver.o .obj/websocketclientwrapper.o .obj/websockettransport.o .obj/moc_chatserver.o .obj/moc_websocketclientwrapper.o .obj/moc_websockettransport.o -L/builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebsockets/lib -lQt5WebSockets -L/builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtbase/lib -lQt5Network -L/builddir/build/BUILD/qt-everywhere-opensource-src-5.6.0/qtwebchannel/lib -lQt5WebChannel -lQt5Core -lpthread
Note that there are no -rpath-link options.
This was discussed in the mailing list.
Attachments
Issue Links
- relates to
-
QTBUG-51621 QtCore 5.6 RC build fails for armv6l
- Closed