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

Qt 6 configure issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.0.0
    • Build System: CMake
    • None
    • OS: Windows 10 build 19042.685
      CPU: AMD FX-8350
      RAM: 32 GB
      SSD: Samsung 860 PRO 2TB
    • Windows

    Description

      Hello!

      I have some issues with MySQL/OpenSSL libs when compiling Qt 6 on Windows.
      Cmake parameters:

      cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=OFF -DQT_BUILD_EXAMPLES=OFF -DINPUT_static_runtime=ON -DFEATURE_ltcg=OFF -DBUILD_qtwebengine=OFF -DINPUT_sql_mysql=ON -DMySQL_INCLUDE_DIR="C:\MySQL\mysql-8.0.22-winx64\debug\include" -DMySQL_LIBRARY="C:\MySQL\mysql-8.0.22-winx64\debug\lib\mysqlclientMTd.lib" -DINPUT_openssl=linked -DOPENSSL_USE_STATIC_LIBS=ON -DOPENSSL_ROOTDIR="C:\OpenSSL\openssl-1.1.1i\static\x64\debug" -DOPENSSL_CRYPTO_LIBRARY="C:\OpenSSL\openssl-1.1.1i\static\x64\debug\lib\libcryptoMTd.lib" -DCMAKE_INSTALL_PREFIX="C:\QtStatic\6.0.0\msvc2019_64" -G Ninja C:\QtBuild\qt-everywhere-src-6.0.0

      It can not find MySQL libraries by cmake, I have tried mysql-5.7.32-winx64 and mysql-8.0.22-winx64. Also, it finds the wrong OpenSSL library: 

      -- Found OpenSSL: C:/Strawberry/c/lib/libcrypto.a (found version "1.1.0h")

      libcrypto.a it is a static lib for MinGW, but I use VS 2019 compiler, should be - libcryptoMTd.lib. I have found out that it reads the PATH and it have found this wrong library in Strawberry Perl directory.

      I have attached the cmake output file: cmd_output.log

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            cobra91151 Ruslan Sydorvych
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes