Qt 5.6 Linux compile fails



  • My linux build of 5.6 is failing. I believe I've installed all dependencies, my compile string is a mod of my successful compile of 5.4.2.

    The tail-end of the compile:

    qt-everywhere-opensource-src-5.6.0/qtdeclarative/lib/libQt5Qml.a(qqmldebugconnector.o):qqmldebugconnector.cpp:function
    _GLOBAL__sub_I_qqmldebugconnector.cpp: error: undefined reference to
    'qt_static_plugin_QQmlInspectorServiceFactory()'
    collect2: error: ld returned 1 exit status
    make[3]: *** [../../bin/qml] Error 1
    make[3]: Leaving directory
    /home/jedevnull/qt-everywhere-opensource-src-5.6.0/qtdeclarative/tools/qml' make[2]: *** [sub-qml-make_first] Error 2 make[2]: Leaving directory/home/jedevnull/qt-everywhere-opensource-src-5.6.0/qtdeclarative/tools'
    make[1]: *** [sub-tools-make_first] Error 2
    make[1]: Leaving directory
    `/home/jedevnull/qt-everywhere-opensource-src-5.6.0/qtdeclarative'
    make: *** [module-qtdeclarative-make_first] Error 2

    My configure command:

    ./configure -no-opengl -no-fontconfig -release -fontconfig -qt-libpng -qt-zlib -qt-freetype -static -prefix /home/jdevnull/Qt/5.6/static -confirm-license -opensource -nomake examples -no-xcb-xlib -qt-xcb -no-dbus -nomake tests -skip qtquickcontrols -skip qtquickcontrols2 -qt-xkbcommon

    Thanks for any help!



  • The build error appears to be in the "in-process QML debugging support"... probably as a side-affect of you using "-skip qtquickcontrols -skip qtquickcontrols2".

    I had a quick go with your configure command, and reproduced the same issue. I then added "-no-qml-debug" to then end of the the configure command, and the problem went away (note, I needed a clean source tree between re-configuring).

    So, assuming you don't care about QML debugging (you are skipping some Qt Quick modules after all), then simply adding "-no-qml-debug" will probably resolve the build issue (works for me).

    Cheers,

    pc.



  • Thatt did the trick, thanks!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.