Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Need help converting Qt5 configure command to Qt6
Forum Updated to NodeBB v4.3 + New Features

Need help converting Qt5 configure command to Qt6

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 380 Views 2 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.
  • T Offline
    T Offline
    Taytoo
    wrote on last edited by
    #1

    Switching project currently using 5.15.13 to 6.5 and my existing command isn't working. My current configuration uses system-libjpeg, custom openssl, all using static-runtime.

    ..\5.15.13_src\configure -commercial -static -static-runtime -debug-and-release -prefix C:\Qt\Static\5.15.13 -platform win32-msvc2022 -qt-zlib -qt-pcre -qt-libpng -system-libjpeg -qt-freetype -opengl desktop -sql-odbc -sql-sqlite -make libs -nomake tools -nomake examples -nomake tests -skip qtcoap -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua -skip qtserialport -skip qtlocation -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtspeech -openssl-linked OPENSSL_LIBS="-llibssl -llibcrypto -lws2_32 -lAdvapi32 -lCrypt32 -lUser32" -I C:\Dev\vcpkg\installed\x86-windows-static\include -I C:\Dev\vcpkg\installed\x86-windows-static\include\openssl -L C:\Dev\vcpkg\installed\x86-windows-static\lib
    

    This is what i've come up with, note this time I want to include system/custom ICU library path as well, all custom libraries are installed in c:\dev\vcpkg\installed\x86-windows-static path:

    ..\6.5.0_src\configure -prefix C:\Qt\Static\6.5.0_x86 -DQT_NO_EXCEPTIONS=1 -debug-and-release -force-debug-info -platform win32-msvc -commercial -static -static-runtime -icu -qt-zlib -qt-pcre -qt-libpng -system-libjpeg -qt-freetype -opengl desktop -sql-odbc -sql-sqlite -make libs -nomake tools -nomake examples -nomake tests -openssl-linked -skip qtcoap -skip qtdatavis3d -skip qtdoc -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua -skip qtserialport -skip qtpositioning -skip qtlocation -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquick3dphysics -skip qtspeech -- -D OPENSSL_ROOT_DIR=C:\Dev\vcpkg\installed\x86-windows-static -D OPENSSL_USE_STATIC_LIBS=ON -D OPENSSL_MSVC_STATIC_RT=ON -D CMAKE_PREFIX_PATH=C:\Dev\vcpkg\installed\x86-windows-static
    

    With Qt6 -I include parameter doesn't work so I've specified installation location of all libraries as CMAKE_PREFIX_PATH. Would CMake correctly identity the bin, lib, include and debug subfolders?
    For custom ICU library (also located in folder same folder as openssl) do I just need to specify -icu flag?

    I ran the configure command I came up with and noticed following in output:

    Overriding option 'libpng' with 'qt' (was: 'undefined')
    opt: libjpeg val: system
    Overriding option 'libjpeg' with 'system' (was: 'undefined')
    opt: freetype val: qt
    Overriding option 'freetype' with 'qt' (was: 'undefined')
    CMake Warning at C:/Qt/Static/6.5.0_src/qtbase/cmake/QtProcessConfigureArgs.cmake:295 (message):
      '-nomake tools' is not implemented yet.
    Call Stack (most recent call first):
      C:/Qt/Static/6.5.0_src/qtbase/cmake/QtProcessConfigureArgs.cmake:821 (qtConfAddWarning)
      C:/Qt/Static/6.5.0_src/qtbase/cmake/QtProcessConfigureArgs.cmake:880 (check_qt_build_parts)
    
    
    CMake Warning at C:/Qt/Static/6.5.0_src/qtbase/cmake/QtProcessConfigureArgs.cmake:295 (message):
      '-make libs' is not implemented yet.
    
    SGaistS 1 Reply Last reply
    0
    • T Taytoo

      Switching project currently using 5.15.13 to 6.5 and my existing command isn't working. My current configuration uses system-libjpeg, custom openssl, all using static-runtime.

      ..\5.15.13_src\configure -commercial -static -static-runtime -debug-and-release -prefix C:\Qt\Static\5.15.13 -platform win32-msvc2022 -qt-zlib -qt-pcre -qt-libpng -system-libjpeg -qt-freetype -opengl desktop -sql-odbc -sql-sqlite -make libs -nomake tools -nomake examples -nomake tests -skip qtcoap -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua -skip qtserialport -skip qtlocation -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtspeech -openssl-linked OPENSSL_LIBS="-llibssl -llibcrypto -lws2_32 -lAdvapi32 -lCrypt32 -lUser32" -I C:\Dev\vcpkg\installed\x86-windows-static\include -I C:\Dev\vcpkg\installed\x86-windows-static\include\openssl -L C:\Dev\vcpkg\installed\x86-windows-static\lib
      

      This is what i've come up with, note this time I want to include system/custom ICU library path as well, all custom libraries are installed in c:\dev\vcpkg\installed\x86-windows-static path:

      ..\6.5.0_src\configure -prefix C:\Qt\Static\6.5.0_x86 -DQT_NO_EXCEPTIONS=1 -debug-and-release -force-debug-info -platform win32-msvc -commercial -static -static-runtime -icu -qt-zlib -qt-pcre -qt-libpng -system-libjpeg -qt-freetype -opengl desktop -sql-odbc -sql-sqlite -make libs -nomake tools -nomake examples -nomake tests -openssl-linked -skip qtcoap -skip qtdatavis3d -skip qtdoc -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua -skip qtserialport -skip qtpositioning -skip qtlocation -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquick3dphysics -skip qtspeech -- -D OPENSSL_ROOT_DIR=C:\Dev\vcpkg\installed\x86-windows-static -D OPENSSL_USE_STATIC_LIBS=ON -D OPENSSL_MSVC_STATIC_RT=ON -D CMAKE_PREFIX_PATH=C:\Dev\vcpkg\installed\x86-windows-static
      

      With Qt6 -I include parameter doesn't work so I've specified installation location of all libraries as CMAKE_PREFIX_PATH. Would CMake correctly identity the bin, lib, include and debug subfolders?
      For custom ICU library (also located in folder same folder as openssl) do I just need to specify -icu flag?

      I ran the configure command I came up with and noticed following in output:

      Overriding option 'libpng' with 'qt' (was: 'undefined')
      opt: libjpeg val: system
      Overriding option 'libjpeg' with 'system' (was: 'undefined')
      opt: freetype val: qt
      Overriding option 'freetype' with 'qt' (was: 'undefined')
      CMake Warning at C:/Qt/Static/6.5.0_src/qtbase/cmake/QtProcessConfigureArgs.cmake:295 (message):
        '-nomake tools' is not implemented yet.
      Call Stack (most recent call first):
        C:/Qt/Static/6.5.0_src/qtbase/cmake/QtProcessConfigureArgs.cmake:821 (qtConfAddWarning)
        C:/Qt/Static/6.5.0_src/qtbase/cmake/QtProcessConfigureArgs.cmake:880 (check_qt_build_parts)
      
      
      CMake Warning at C:/Qt/Static/6.5.0_src/qtbase/cmake/QtProcessConfigureArgs.cmake:295 (message):
        '-make libs' is not implemented yet.
      
      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Seeing that you are using Qt 5.15.13, you have a commercial license and I would recommend contacting the Qt Company to help you with the migration.

      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
      2

      • Login

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