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. Couldn't build drivers for mysql QT 6.7.0
Forum Updated to NodeBB v4.3 + New Features

Couldn't build drivers for mysql QT 6.7.0

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 423 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.
  • D Offline
    D Offline
    DeadSo0ul
    wrote on last edited by
    #1

    Hello ,
    I have been using Qt 6.6.2 for quite a while now and I had no problems with building the mysql drivers to it. However when I upgraded Qt to 6.7.0 I got stuck when trying to build the mysql driver.
    I get lots of warnings that my qt version is incompatible

    CMake Warning at /opt/homebrew/lib/cmake/Qt6/Qt6ConfigVersion.cmake:53 (message):
      Version 6.7.0 of package Qt6 was requested but an incompatible version was
      found: 6.6.2.  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:21 (find_package)
    

    And ended with an error saying

    CMake Error at CMakeLists.txt:21 (find_package):
      Could not find a configuration file for package "Qt6" that is compatible
      with requested version "6.7.0".
    
      The following configuration files were considered but not accepted:
    
        /opt/homebrew/lib/cmake/Qt6/Qt6Config.cmake, version: 6.6.2
        /opt/homebrew/opt/qt6/lib/cmake/Qt6/Qt6Config.cmake, version: 6.6.2
    
    

    I tried to update qt using homebrew but it appears that there is no such version as 6.7.0

    boyan@boyans-air sqldrivers % brew upgrade qt
    Warning: qt 6.6.2_2 already installed
    

    Any help would be appreciated

    Christian EhrlicherC 1 Reply Last reply
    0
    • D DeadSo0ul

      Hello ,
      I have been using Qt 6.6.2 for quite a while now and I had no problems with building the mysql drivers to it. However when I upgraded Qt to 6.7.0 I got stuck when trying to build the mysql driver.
      I get lots of warnings that my qt version is incompatible

      CMake Warning at /opt/homebrew/lib/cmake/Qt6/Qt6ConfigVersion.cmake:53 (message):
        Version 6.7.0 of package Qt6 was requested but an incompatible version was
        found: 6.6.2.  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:21 (find_package)
      

      And ended with an error saying

      CMake Error at CMakeLists.txt:21 (find_package):
        Could not find a configuration file for package "Qt6" that is compatible
        with requested version "6.7.0".
      
        The following configuration files were considered but not accepted:
      
          /opt/homebrew/lib/cmake/Qt6/Qt6Config.cmake, version: 6.6.2
          /opt/homebrew/opt/qt6/lib/cmake/Qt6/Qt6Config.cmake, version: 6.6.2
      
      

      I tried to update qt using homebrew but it appears that there is no such version as 6.7.0

      boyan@boyans-air sqldrivers % brew upgrade qt
      Warning: qt 6.6.2_2 already installed
      

      Any help would be appreciated

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Use the correct qt-cmake from qt 6.7 so the correct scripts are picked up.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      D 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        Use the correct qt-cmake from qt 6.7 so the correct scripts are picked up.

        D Offline
        D Offline
        DeadSo0ul
        wrote on last edited by
        #3

        @Christian-Ehrlicher
        I appreciate your help, but I must admit I'm a bit confused. Are you saying that since homebrew doesn't have the new version yet I should download it manually? Where can I get the correct qt-cmake? I searched the official qt site but I don't think I found it.

        Christian EhrlicherC 1 Reply Last reply
        0
        • D DeadSo0ul

          @Christian-Ehrlicher
          I appreciate your help, but I must admit I'm a bit confused. Are you saying that since homebrew doesn't have the new version yet I should download it manually? Where can I get the correct qt-cmake? I searched the official qt site but I don't think I found it.

          Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          The error message tells you exactly what's wrong - you're trying to compile an app/plugin/whatsever which needs Qt6.7.0 but it can only find Qt6.6.2 - so make sure to use Qt6.7.0 instead or a find an old version which requires Qt6.6.2.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          D 1 Reply Last reply
          1
          • Christian EhrlicherC Christian Ehrlicher

            The error message tells you exactly what's wrong - you're trying to compile an app/plugin/whatsever which needs Qt6.7.0 but it can only find Qt6.6.2 - so make sure to use Qt6.7.0 instead or a find an old version which requires Qt6.6.2.

            D Offline
            D Offline
            DeadSo0ul
            wrote on last edited by
            #5

            @Christian-Ehrlicher Thanks for the assistance. I managed to build and install it. Found the dylib and manually pasted it into ../macos/plugins/sqldrivers and in the build directory of my program but my program says that it still can not find the driver. I will provide some screenshots. If you notice anything wrong please let me know.
            Sorry for the link but they are too large apparently https://imgur.com/a/qPy7eko

            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