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 Creator build problem
QtWS25 Last Chance

Qt Creator build problem

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 3.2k 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.
  • A Offline
    A Offline
    aabaz
    wrote on last edited by
    #1

    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
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      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
      0
      • A Offline
        A Offline
        aabaz
        wrote on last edited by
        #3

        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
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          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
          0

          • Login

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