Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Unsolved static QT5 and CMake 3.x

    General and Desktop
    2
    3
    741
    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.
    • Soeren
      Soeren last edited by

      Hi everybody
      I am developing Qt5 apps within VS2013 and for creating the project files I am using cmake 3.x. As long as using the non static version of Qt5 everyting works very well. The usage of the build in macros results in correct vcproj files.
      But using the static Qt5 (runtime+Qt) ends up in a mess. Links errors...

      Created project files with qmake for the same project contain a lot more (third party) dependencys.

      Thus is there a way to get static Qt and cmake to run fine?

      All I found was this:
      https://cmake.org/pipermail/cmake/2015-March/060069.html

      That means extend the cmake files by myself.

      Best regards
      SirAnn

      1 Reply Last reply Reply Quote 0
      • Charby
        Charby last edited by

        You can have look to this video of Mike Krus from Kdab explaining a bit of the QMake "magic" from time 0:27 to 0:30. Basically QMake is generating for you the cpp files (the one names "...._import.cpp" this is what you will have to do by yourself with CMake.

        1 Reply Last reply Reply Quote 0
        • Soeren
          Soeren last edited by Soeren

          sure this is the correct video link?

          Ok, but how to add alle the extra preprocessor defines and further 3rd party libraries? Is there anyone out there who has a working CMakeLists.txt file for a VC2013 project that links statically to static Qt with static runtime?

          Really no one?

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