Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMYSQL Plugin Build Error
Qt 6.11 is out! See what's new in the release blog

QMYSQL Plugin Build Error

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 574 Views
  • 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.
  • H Offline
    H Offline
    HappyAct
    wrote on last edited by
    #1

    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)

    1 Reply Last reply
    0
    • hskoglundH hskoglund

      Hi, just guessing but maybe you downloaded the 32-bit version of the MySQL Installer (instead of the 64-bit)?

      H Offline
      H Offline
      HappyAct
      wrote on last edited by
      #3

      @hskoglund I

      I had checked that already. Different silly oversight as I had neglected to initialize my command prompt for x64.

      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #2

        Hi, just guessing but maybe you downloaded the 32-bit version of the MySQL Installer (instead of the 64-bit)?

        H 1 Reply Last reply
        0
        • hskoglundH hskoglund

          Hi, just guessing but maybe you downloaded the 32-bit version of the MySQL Installer (instead of the 64-bit)?

          H Offline
          H Offline
          HappyAct
          wrote on last edited by
          #3

          @hskoglund I

          I had checked that already. Different silly oversight as I had neglected to initialize my command prompt for x64.

          1 Reply Last reply
          0

          • Login

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