Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Create solution for QT5.1.1 instead of nmake build
Forum Updated to NodeBB v4.3 + New Features

Create solution for QT5.1.1 instead of nmake build

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.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.
  • N Offline
    N Offline
    nvchrisn
    wrote on last edited by
    #1

    Is there a way to get the configure script to create a solution file instead of outputting nmake build scripts?

    I am having problems loading the windowsd.dll and I can't find where to set compile options and such. Plus nmake is single-threaded without incredibuild or something like that.

    In any case, I would much rather work from a .sln rather than from makefiles.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Do you mean compiling Qt itself, or compiling you application(s)?

      You can use multicore compilation using -mp in Qt's configure, or by passing DEFINES+=/MP to qmake.

      It is possible to generate .sln files with qmake, too, AFAIK. See this page: "link":http://stackoverflow.com/questions/2339832/how-to-generate-sln-vcproj-using-qmake.

      (Z(:^

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nvchrisn
        wrote on last edited by
        #3

        Compiling QT itself. Thanks for the mp tip, that does make a massive difference. But I am specifically trying to debug why a QT dll won't load so I wanted to see how QT setup the project and solution (and I wanted to make recompilation easier/faster).

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Right, then I don't think creating Visual Studio projects for Qt itself is possible (you can try using cmake files, though, I think MSVS supports that). It's probably not really supported, but since qmake is able to generate vcproj files, I think that with a bit of tweaking you could force configure to pass that switch to qmake, and then you will get vcproj files for all Qt modules.

          PS. To speed up Qt compilation, apart from -mp, you can pass those flags: -fast -optimised-qmake -skip webkit -nomake tests -nomake demos -no-libmng -no-libtiff. See configure -help for even more goodies :)

          (Z(:^

          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