Couldn't build drivers for mysql QT 6.7.0
-
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 incompatibleCMake 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
-
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 incompatibleCMake 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
Use the correct qt-cmake from qt 6.7 so the correct scripts are picked up.
-
Use the correct qt-cmake from qt 6.7 so the correct scripts are picked up.
@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-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.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.
-
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.
@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