Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-88680

Installing a debug_and_release Qt with cmake . --install does not install "debug" DLLs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • None
    • 6.0.0 Beta2
    • Build System: CMake

      "$qt_src_base_folder\configure.bat" -cmake -debug-and-release -opensource -confirm-license -opengl desktop -no-dbus -no-icu -no-fontconfig -nomake examples -nomake tests -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtlocation -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwebview -skip qtscript -mp -optimize-size -shared -prefix $prefix_folder -openssl-linked -DOPENSSL_ROOT_DIR="$openssl_base_folder" -DCMAKE_INCLUDE_PATH="$mysql_include_folder" -DCMAKE_LIBRARY_PATH="$mysql_lib_folder"# -openssl-linked -I $openssl_include_folder -L $openssl_libs_folder OPENSSL_LIBS="-lUser32 -lAdvapi32 -lGdi32 -llibcrypto -llibssl" -I $mysql_include_folder -L $mysql_lib_folder MYSQL_LIBS="-llibmariadb"# Compile.
      
      cmake --build .
      
      cmake --install .
      

      Lattest command "cmake --install ." does not install BOTH debug and release libs/bin files. It only installs RELEASE libs/bins. Notice that this is "debug-and-release" build type and both debug and release binaries do get compiled but only release binaries are copied during "install" step to output folder.

      Compile folder:

      Output install folder:

      Interestingly, "prl" files were copied both debug and release:

        1. image-2020-11-20-10-55-02-314.png
          152 kB
          Martin Rotter
        2. image-2020-11-20-10-55-29-082.png
          148 kB
          Martin Rotter
        3. image-2020-11-20-10-57-26-040.png
          137 kB
          Martin Rotter
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtbuildsystem Qt Build System Team
            skunkos Martin Rotter
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes