Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 5.9 Static Build in Linux
Forum Updated to NodeBB v4.3 + New Features

Qt 5.9 Static Build in Linux

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 954 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ellend
    wrote on last edited by
    #1

    I am trying to do a static build of Qt 5.9.2 in Ubuntu, but the process fails during make with the error "undefined reference to qt_static_plugin_QConnmanEnginePlugin()". I am currently using the following command to configure:

    ./configure -static -prefix /path/to/Qt -nomake examples -nomake tests

    I'm not sure if there are other flags I am missing or if there is a step missing in this tutorial: (I tried to configure without any flags and that didn't work either)

    http://doc.qt.io/qt-5/linux-deployment.html

    the error messages are below:
    .obj/xmlpatternsvalidator_plugin_import.o:xmlpatternsvalidator_plugin_import.cpp:function _GLOBAL__sub_I_xmlpatternsvalidator_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QConnmanEnginePlugin()'
    .obj/xmlpatternsvalidator_plugin_import.o:xmlpatternsvalidator_plugin_import.cpp:function _GLOBAL__sub_I_xmlpatternsvalidator_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QGenericEnginePlugin()'
    .obj/xmlpatternsvalidator_plugin_import.o:xmlpatternsvalidator_plugin_import.cpp:function _GLOBAL__sub_I_xmlpatternsvalidator_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QNetworkManagerEnginePlugin()'
    collect2: error: ld returned 1 exit status
    Makefile:72: recipe for target '../../bin/xmlpatternsvalidator' failed
    make[3]: *** [../../bin/xmlpatternsvalidator] Error 1
    make[3]: Leaving directory '/home/ellen/Documents/qt-everywhere-opensource-src-5.9.2/qtxmlpatterns/tools/xmlpatternsvalidator'
    Makefile:70: recipe for target 'sub-xmlpatternsvalidator-make_first' failed
    make[2]: *** [sub-xmlpatternsvalidator-make_first] Error 2
    make[2]: *** Waiting for unfinished jobs....
    g++ -Wl,--gc-sections -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -o ../../bin/xmlpatterns .obj/main.o .obj/qapplicationargument.o .obj/qapplicationargumentparser.o .obj/xmlpatterns_plugin_import.o -L/home/ellen/Documents/qt-everywhere-opensource-src-5.9.2/qtbase/plugins/bearer -lqconnmanbearer -L/home/ellen/Documents/qt-everywhere-opensource-src-5.9.2/qtbase/lib -lqgenericbearer -lqnmbearer -lQt5DBus -L/home/ellen/Documents/qt-everywhere-opensource-src-5.9.2/qtxmlpatterns/lib -lQt5XmlPatterns -lQt5Network -lssl -lcrypto -lQt5Core -lm -licui18n -licuuc -licudata -lqtpcre2 -ldl -lgthread-2.0 -lglib-2.0 -lpthread
    .obj/xmlpatterns_plugin_import.o:xmlpatterns_plugin_import.cpp:function _GLOBAL__sub_I_xmlpatterns_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QConnmanEnginePlugin()'
    .obj/xmlpatterns_plugin_import.o:xmlpatterns_plugin_import.cpp:function _GLOBAL__sub_I_xmlpatterns_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QGenericEnginePlugin()'
    .obj/xmlpatterns_plugin_import.o:xmlpatterns_plugin_import.cpp:function _GLOBAL__sub_I_xmlpatterns_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_QNetworkManagerEnginePlugin()'
    collect2: error: ld returned 1 exit status
    Makefile:80: recipe for target '../../bin/xmlpatterns' failed
    make[3]: *** [../../bin/xmlpatterns] Error 1
    make[3]: Leaving directory '/home/ellen/Documents/qt-everywhere-opensource-src-5.9.2/qtxmlpatterns/tools/xmlpatterns'
    Makefile:45: recipe for target 'sub-xmlpatterns-make_first' failed
    make[2]: *** [sub-xmlpatterns-make_first] Error 2
    make[2]: Leaving directory '/home/ellen/Documents/qt-everywhere-opensource-src-5.9.2/qtxmlpatterns/tools'
    Makefile:72: recipe for target 'sub-tools-make_first' failed
    make[1]: *** [sub-tools-make_first] Error 2
    make[1]: Leaving directory '/home/ellen/Documents/qt-everywhere-opensource-src-5.9.2/qtxmlpatterns'
    Makefile:282: recipe for target 'module-qtxmlpatterns-make_first' failed
    make: *** [module-qtxmlpatterns-make_first] Error 2

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved