QMYSQL driver not loaded windows QT 6

I am using QT version 6.8.1 and i installed sources too. Also i am using MySQL Server 8.0 and installed MySQL Connector C 6.1 and copied libmysql.dll file to C:Qt6.8.1mingw_64bin still the error the same.So, I followed a video on youtube to build the driver using cmd first setting PATH then using this command: call C:Qt6.8.1mingw_64binqt-cmake.bat -G “MinGW Makefiles” . -DMySQL_INCLUDE_DIR=”C:Program FilesMySQLMySQL Server 8.0include” -DMySQL_LIBRARY=”C:Program FilesMySQLMySQL Server 8.0liblibmysql.lib” -DCMAKE_INSTALL_PREFIX=”C:Qt6.8.1mingw_64″ -DCMAKE_C_COMPILER=”gcc.exe” -DCMAKE_CXX_COMPILER=”g++.exe” But this results some warning and errors.

the result: — The CXX compiler identification is GNU 6.3.0
— The C compiler identification is GNU 6.3.0
— The ASM compiler identification is GNU
— Found assembler: C:/MinGW/bin/gcc.exe
— Detecting CXX compiler ABI info
— Detecting CXX compiler ABI info – done
— Check for working CXX compiler: C:/MinGW/bin/g++.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:/MinGW/bin/gcc.exe – skipped
— Detecting C compile features
— Detecting C compile features – done
CMake Warning at C:/Qt/6.8.1/mingw_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message):
Version 6.8.1 of package Qt6 was requested but an incompatible version was
found: 6.8.1 (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:21 (find_package)

CMake Warning at C:/Qt/6.8.1/mingw_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message):
Version 6.8.1 of package Qt6 was requested but an incompatible version was
found: 6.8.1 (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:21 (find_package)

CMake Warning at C:/Qt/6.8.1/mingw_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message):
Version 6.8.1 of package Qt6 was requested but an incompatible version was
found: 6.8.1 (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:21 (find_package)

CMake Warning at C:/Qt/6.8.1/mingw_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message):
Version 6.8.1 of package Qt6 was requested but an incompatible version was
found: 6.8.1 (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:21 (find_package)

CMake Warning at C:/Qt/6.8.1/mingw_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message):
Version 6.8.1 of package Qt6 was requested but an incompatible version was
found: 6.8.1 (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:21 (find_package)

CMake Warning at C:/Qt/6.8.1/mingw_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message):
Version 6.8.1 of package Qt6 was requested but an incompatible version was
found: 6.8.1 (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:21 (find_package)

CMake Warning at C:/Qt/6.8.1/mingw_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message):
Version 6.8.1 of package Qt6 was requested but an incompatible version was
found: 6.8.1 (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:21 (find_package)

CMake Warning at C:/Qt/6.8.1/mingw_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message):
Version 6.8.1 of package Qt6 was requested but an incompatible version was
found: 6.8.1 (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:21 (find_package)

CMake Warning at C:/Qt/6.8.1/mingw_64/lib/cmake/Qt6/Qt6ConfigVersion.cmake:56 (message):
Version 6.8.1 of package Qt6 was requested but an incompatible version was
found: 6.8.1 (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:21 (find_package)

CMake Error at CMakeLists.txt:21 (find_package):
Could not find a configuration file for package “Qt6” that is compatible
with requested version “6.8.1”.

The following configuration files were considered but not accepted:

C:/Qt/6.8.1/mingw_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.8.1 (64bit)

New contributor

Mostafa Emad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

1

Qt and plugin must be built with the same compiler, Qt 6.8.1 itself cannot be built with Mingw-w64 6.3.0, you need at least Mingw-w64 11+. Binaries produced with different major version of Mingw-w64 is not binary compatible.

If you installed Qt binaries using official installer you probably need Mingw-w64 13.1 to build a plugin.
See supported platforms

Operating System Architecture Compiler Notes
Windows 10 (1809 or later) x86_64 MSVC 2022, MSVC 2019, Mingw-w64 13.1
Windows 11 x86_64 MSVC 2022, MSVC 2019, Mingw-w64 13.1
Windows on ARM ARM64 MSVC 2019/2022

You can identify compiler version using strings util

set PATH=C:Program FilesGitusrbin;C:MinGWbin
strings C:Qt6.8.1mingw_64binQt6Core.dll | grep -i mingw

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật