QMYSQL Plugin Build Error
-
I am trying to build the QMYSQL plugin after a fresh install of Qt 6.3.2. The error message I'm getting says I am targeting the wrong package version, but I can't figure out the underlying issue other than I may be requesting 32-bit when I want 64-bit. Here is an excerpt of the error message:
C:\Qt\6.3.2\msvc2019_64\bin>qt-cmake -G Ninja C:\Qt\6.3.2\Src\qtbase\src\plugins\sqldrivers -DMySQL_INCLUDE_DIR="C:\Program Files\MySQL\MySQL Server 8.0\include" -DMySQL_LIBRARY="C:\Program Files\MySQL\MySQL Server 8.0\lib\libmysql.lib" -DCMAKE_INSTALL_PREFIX="C:\Qt\6.3.2\msvc2019_64"
-- The CXX compiler identification is MSVC 19.33.31630.0
-- The C compiler identification is MSVC 19.33.31630.0
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/Hostx86/x86/cl.exe
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/Hostx86/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Warning at C:/Qt/6.3.2/msvc2019_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:51 (message):
Version 6.3.2 of package Qt6 was requested but an incompatible version was
found: 6.3.2 (64bit). You can pass -DQT_NO_PACKAGE_VERSION_CHECK=TRUE to
disable the version check and force the incompatible version to be used.
There is no guarantee the build will succeed. Use at your own risk. You
can silence this warning by passing
-DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE
Call Stack (most recent call first):
CMakeLists.txt:13 (find_package) -
Hi, just guessing but maybe you downloaded the 32-bit version of the MySQL Installer (instead of the 64-bit)?
I had checked that already. Different silly oversight as I had neglected to initialize my command prompt for x64.
-
Hi, just guessing but maybe you downloaded the 32-bit version of the MySQL Installer (instead of the 64-bit)?
I had checked that already. Different silly oversight as I had neglected to initialize my command prompt for x64.