Unsolved Qt 5.9 Static Build in Linux
-
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