Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Debug DLLs are not installed

Debug DLLs are not installed

Scheduled Pinned Locked Moved Solved Qt 6
3 Posts 1 Posters 963 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.
  • D Offline
    D Offline
    Dmitriano
    wrote on last edited by Dmitriano
    #1

    I built QT 6.2RC1 for Windows with the following configuration:

    configure.bat -prefix %MY_INSTALL_PATH% -DQT_NO_EXCEPTIONS=1 -debug-and-release -force-debug-info -platform win32-msvc -opensource -confirm-license ^
    -opengl es2 -I "C:\Program Files\OpenSSL\include" -L "C:\Program Files\OpenSSL\lib"
    
    cmake --build . --parallel
    

    Both release and debug DLLs were built, but when I did

    cmake --install .
    

    only release DLLs where copied to my installation directory. What did I do wrong?

    And Debug build of my app links release DLLs.

    As a workaround I built separate release and debug versions of QT 6.2:

    configure.bat -prefix %MY_INSTALL_PATH% -DQT_NO_EXCEPTIONS=1 -release -force-debug-info -platform win32-msvc -opensource -confirm-license
    
    configure.bat -prefix %MY_INSTALL_PATH% -DQT_NO_EXCEPTIONS=1 -debug -platform win32-msvc -opensource -confirm-license
    

    See my blog post for more information on the build steps.

    D 1 Reply Last reply
    0
    • D Dmitriano

      I built QT 6.2RC1 for Windows with the following configuration:

      configure.bat -prefix %MY_INSTALL_PATH% -DQT_NO_EXCEPTIONS=1 -debug-and-release -force-debug-info -platform win32-msvc -opensource -confirm-license ^
      -opengl es2 -I "C:\Program Files\OpenSSL\include" -L "C:\Program Files\OpenSSL\lib"
      
      cmake --build . --parallel
      

      Both release and debug DLLs were built, but when I did

      cmake --install .
      

      only release DLLs where copied to my installation directory. What did I do wrong?

      And Debug build of my app links release DLLs.

      As a workaround I built separate release and debug versions of QT 6.2:

      configure.bat -prefix %MY_INSTALL_PATH% -DQT_NO_EXCEPTIONS=1 -release -force-debug-info -platform win32-msvc -opensource -confirm-license
      
      configure.bat -prefix %MY_INSTALL_PATH% -DQT_NO_EXCEPTIONS=1 -debug -platform win32-msvc -opensource -confirm-license
      

      See my blog post for more information on the build steps.

      D Offline
      D Offline
      Dmitriano
      wrote on last edited by
      #2

      @Dmitriano It is because you use

      cmake --install .
      

      but not

      ninja install
      
      D 1 Reply Last reply
      2
      • D Dmitriano

        @Dmitriano It is because you use

        cmake --install .
        

        but not

        ninja install
        
        D Offline
        D Offline
        Dmitriano
        wrote on last edited by
        #3

        @Dmitriano Thank you very much! I am so grateful for your help!

        1 Reply Last reply
        1
        • A AndyE referenced this topic on

        • Login

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