Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Build Qt debug and release builds
Qt 6.12 LTS is out! See what's new in the release blog

Build Qt debug and release builds

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

    Hi,

    I'm building Qt from source, but somehow I'm always ending up with the debug dll/lib's (Qt*d.lib).
    Here's what I'm doing:
    @
    $qtbase> configure -debug -nomake examples -nomake tests -opensource -prefix C:\Qt\5.2.1\selfbuilt_msvc2013_64
    $qtbase> nmake
    $qtbase> nmake install
    $qtbase> nmake confclean
    $qtbase> configure -release -nomake examples -nomake tests -opensource -prefix C:\Qt\5.2.1\selfbuilt_msvc2013_64
    $qtbase> nmake
    $qtbase> nmake install
    @
    The second nmake install just also copies the debug libraries.
    I also tried
    @$qtbase> nmake release@
    but it didn't change anything.

    What am I doing wrong? Any help appreciated.

    Thanks,

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Since you want to build both set of libraries why not just use the debug_and_release configuration option ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Elador
        wrote on last edited by
        #3

        Hi, thanks for the welcome! :-)

        I assume you mean "-debug-and-release".

        I just tried that:

        @qtbase> configure -debug-and-release -nomake examples -nomake tests -opensource -prefix C:\Qt\5.2.1\selfbuilt_msvc2013_64
        nmake install@

        and it flawlessly installed both. Nice.

        Btw, it's kind of difficult to find those options, http://qt-project.org/doc/qt-4.8/configure-options.html is out-of-date (Qt 4.8, and also the descriptions are not so good imho) and http://qt-project.org/doc/qt-5/configure-options.html is far from listing all options.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Yes, sorry, I've always make that mistake.

          The configuration options for 4.8 are actual for 4.8. There's been a lot of internal changes for Qt 5. But indeed, the configuration options documentation for Qt 5 is a bit light.

          What you can do is open a new documentation bug on "the bug report system":http://bugreports.qt-project.org

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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
          • Unsolved