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 Link statements
Forum Updated to NodeBB v4.3 + New Features

Qt Creator Link statements

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 2.6k Views 1 Watching
  • 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.
  • H Offline
    H Offline
    Hartley Mays
    wrote on 12 Sept 2011, 23:04 last edited by
    #1

    Hello!

    I'm new to QT in general and specifically to Qt Creator, so I hope this isn't an obvious question about CMAKE and generated link statements.

    To make a long story short, I'm trying to use Qt Creator as the IDE for an open source project (Rescore) that's an offshoot of Musescore, a music notation editor project hosted on Sourceforge which uses Qt. The original developer of Rescore abandoned it and I've been unable to contact him.

    I've been able to build Musescore from Qt Creator using its CMakeList, but the Rescore build fails. The reason it fails appears to be a slight difference in the generated link statement for the musescore DLL. The Musescore version that works includes this argument:

    -L C:/qtsdk/desktop/qt/4.7.3/mingw/lib

    The Recore link has only:

    -L /lib

    and gets hundreds of link errors due to unresolved imp_ symbols from the Qt libs.

    I've used Winmerge to identify all the differences in the two project folders. There are some slight differences in two of the cmakelist statements but none I can see that seem to relate to this difference in the link. The complete compiles of all the rescore source works properly.

    So my question is what might explain this difference? Where should I look in the project files?

    Regards,
    Hartley Mays
    Cincinnati, Ohio USA

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on 13 Sept 2011, 07:04 last edited by
      #2

      Welcome to the forum.

      There is one obvious, major difference between the lib pathes you are providing above. The upper one is for windows, while the second one is for linux.

      I guess you are using a windows OS and the second lib statement has to fail then. Presumably the project you have downloaded has been developed on a linux OS.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hartley Mays
        wrote on 13 Sept 2011, 13:36 last edited by
        #3

        Koahnig,

        Thanks for the quick reply.

        I know that Rescore runs on Windows 7. I don't know if it's possible to build the Windows executable on Linux and then ship it to Windows. I'm working only in the Windows 7 environment. There's a command proc from a Musescore developer which successfully builds both Musescore and Rescore on Windows. It must use the CMakeList files internally because the same version of the proc builds both and there are different source files for them.

        I don't know how the orginal developer of Rescore built his project; the readme doesn't discuss that.

        What/where/how in a CMakeList file (or elsewhere?) is the -L option handled, and what would it look at to determine whether to generate the full path or the /lib?

        Later,
        Hartley

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on 13 Sept 2011, 13:58 last edited by
          #4

          Hartley,

          as stated above the first -L seem to give the path to the Qt libs for mingw. The witchcraft for that guess is really minimal ;)
          The consequence would be then that the other statement simply assumes the libs on your default drive.
          I am not an expert on CMake. Looking at the documentation did not really help for -L.

          So I am of no help for you. Sorry.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0

          1/4

          12 Sept 2011, 23:04

          • Login

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