Static library build error...

  • hi

    There is no error when build a dynamic library. but error occurs when build a static library.
    It seems to be due to the plugin. Can I skip without building a plugin?

    ./configure -prefix /opt/qt -static -no-compile-examples -qt-xcb
    gmake install

    g++ -Wl,--gc-sections -Wl,-O1 -Wl,--enable-new-dtags -o ../../bin/xmlpatterns .obj/main.o .obj/qapplicationargument.o .obj/qapplicationargumentparser.o .obj/xmlpatterns_plugin_import.o -L/opt/download/qt/qt-everywhere-opensource-src-5.5.1/qtxmlpatterns/lib -lQt5XmlPatterns -L/opt/download/qt/qt-everywhere-opensource-src-5.5.1/qtbase/lib -L/opt/download/qt/qt-everywhere-opensource-src-5.5.1/qtbase/plugins/bearer -lqconnmanbearer -lqgenericbearer -lqnmbearer -lQt5Network -lQt5DBus -lQt5Core -lz -lqtpcre -lm -ldl -pthread -lgthread-2.0 -lrt -lglib-2.0 -lpthread
    .obj/xmlpatterns_plugin_import.o: In function global constructors keyed to xmlpatterns_plugin_import.cpp': xmlpatterns_plugin_import.cpp:(.text+0x5): undefined reference toqt_static_plugin_QConnmanEnginePlugin()'
    xmlpatterns_plugin_import.cpp:(.text+0x28): undefined reference to qt_static_plugin_QGenericEnginePlugin()' xmlpatterns_plugin_import.cpp:(.text+0x4b): undefined reference toqt_static_plugin_QNetworkManagerEnginePlugin()'
    collect2: ld returned 1 exit status


  • @Daryong which System OS you are using?

  • Hi.

    Os : CentOS 6.8


  • Hi.

    No error was found when installing and building another version of g ++.

    Thanks much...

Log in to reply

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