Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Qt Creator build problem

    Installation and Deployment
    2
    4
    2930
    Loading More Posts
    • 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.
    • A
      aabaz last edited by

      Hi,
      I am trying to set up a working installation of the qt framework in the following way :

      • building qt 4.7.2 statically from source: worked
      • building qwt 6rc5 library statically from source: worked
      • building qt creator 2.1.0 from source: linking problem

      To build qt creator i followed the instructions and ran qmake and make, but the make command failed with the following errors when building qt4projectmanager:

      /usr/local/qt-4.7.2-static/lib/libQtGui.a(qfiledialog.o):(.data.rel.local+0x0): multiple definition of `qt_file_dialog_filter_reg_exp'
      .obj/release-shared/addlibrarywizard.o:(.data.rel.local+0x0): first defined here

      /usr/local/qt-4.7.2-static/lib/libQtGui.a(qfiledialog.o): In function qt_clean_filter_list(QString const&)': qfiledialog.cpp:(.text+0x5060): multiple definition of qt_clean_filter_list(QString const&)'
      .obj/release-shared/addlibrarywizard.o:addlibrarywizard.cpp:(.text+0x1940): first defined here

      collect2: ld returned 1 exit status

      Any help would be greatly appreciated.

      PS: The system is Debian Squeeze.

      1 Reply Last reply Reply Quote 0
      • G
        giesbert last edited by

        looks like qtCreator defines some functions that are also defined in Qt itself.
        Perhaps building Creator with static Qt is not possible. Especially as QtCreator works with oplugins (only). All plug-ins are dlls. It's not a good idea to link dlls statically to static libs and also binaries to the same.

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply Reply Quote 0
        • A
          aabaz last edited by

          Ok, I did not know that.

          So you imply that I should have a shared versions of qt as well, at least for the time needed for creator to compile.

          Thank you for your help, i will try that.

          1 Reply Last reply Reply Quote 0
          • G
            giesbert last edited by

            I you compile creator on your own, it should be compiled with a dll version of Qt, yes.

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post