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. Static library build error...
Forum Updated to NodeBB v4.3 + New Features

Static library build error...

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 2 Posters 1.1k Views
  • 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.
  • DaryongD Offline
    DaryongD Offline
    Daryong
    wrote on last edited by Daryong
    #1

    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 to qt_static_plugin_QConnmanEnginePlugin()'
    xmlpatterns_plugin_import.cpp:(.text+0x28): undefined reference to qt_static_plugin_QGenericEnginePlugin()' xmlpatterns_plugin_import.cpp:(.text+0x4b): undefined reference to qt_static_plugin_QNetworkManagerEnginePlugin()'
    collect2: ld returned 1 exit status

    Thanks...

    Everton FonsecaE 1 Reply Last reply
    0
    • DaryongD Offline
      DaryongD Offline
      Daryong
      wrote on last edited by
      #4

      Hi.

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

      Thanks much...

      1 Reply Last reply
      0
      • DaryongD Daryong

        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 to qt_static_plugin_QConnmanEnginePlugin()'
        xmlpatterns_plugin_import.cpp:(.text+0x28): undefined reference to qt_static_plugin_QGenericEnginePlugin()' xmlpatterns_plugin_import.cpp:(.text+0x4b): undefined reference to qt_static_plugin_QNetworkManagerEnginePlugin()'
        collect2: ld returned 1 exit status

        Thanks...

        Everton FonsecaE Offline
        Everton FonsecaE Offline
        Everton Fonseca
        wrote on last edited by
        #2

        @Daryong which System OS you are using? http://wiki.qt.io/Building_Qt_5_from_Git

        1 Reply Last reply
        0
        • DaryongD Offline
          DaryongD Offline
          Daryong
          wrote on last edited by
          #3

          Hi.

          Os : CentOS 6.8

          Thanks...

          1 Reply Last reply
          0
          • DaryongD Offline
            DaryongD Offline
            Daryong
            wrote on last edited by
            #4

            Hi.

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

            Thanks much...

            1 Reply Last reply
            0

            • Login

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