qmake not running
-
I want to create the libs for MySql following Qt Documentation->How to Build the QMYSQL Plugin on Windows. But when I try to use qmake I get the help page only.
D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\sqldrivers>qmake -v QMake version 3.1 Using Qt version 6.2.1 in D:/Tools/Qt/6.2.1/mingw81_64/lib D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\sqldrivers>qmake -- MYSQL_INCDIR="C:/Program Files/MariaDB 10.6/include/mysql" MYSQL_LIBDIR="C:/Program Files/MariaDB 10.6/lib" Usage: qmake [mode] [options] [files] QMake has two modes, one mode for generating project files based on some heuristics, and the other for generating makefiles. Normally you shouldn't need to specify a mode, as makefile generation is the default mode for qmake, but you may use this to test qmake on an existing project Mode: -project Put qmake into project file generation mode In this mode qmake interprets [files] as files to ...Can anybody give me a hint what I'm doing wrong?
-
I want to create the libs for MySql following Qt Documentation->How to Build the QMYSQL Plugin on Windows. But when I try to use qmake I get the help page only.
D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\sqldrivers>qmake -v QMake version 3.1 Using Qt version 6.2.1 in D:/Tools/Qt/6.2.1/mingw81_64/lib D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\sqldrivers>qmake -- MYSQL_INCDIR="C:/Program Files/MariaDB 10.6/include/mysql" MYSQL_LIBDIR="C:/Program Files/MariaDB 10.6/lib" Usage: qmake [mode] [options] [files] QMake has two modes, one mode for generating project files based on some heuristics, and the other for generating makefiles. Normally you shouldn't need to specify a mode, as makefile generation is the default mode for qmake, but you may use this to test qmake on an existing project Mode: -project Put qmake into project file generation mode In this mode qmake interprets [files] as files to ...Can anybody give me a hint what I'm doing wrong?
@Executer said in qmake not running:
D:\Tools\QT\6.2.1\Src\qtbase\src\plugins\sqldrivers
Is there a *.pro file in this folder? Also, Qt6 switched to CMake, probably you have to use CMake. Is there a CMakeLists.txt file in that folder?
Also, you should use absolute path to qmake in case you have more than one Qt version installed to make sure you call qmake from Qt version you want to use. -
There is no *.pro but CMakeLists.txt in this folder. The Makefile indicates, that qmake has been used sucessfully.
Also using an absolute path for qmake makes no difference.@Executer said in qmake not running:
Also using an absolute path for qmake makes no difference.
That's clear, I only suggested that to make sure you use Qt version you want to use.
Since you're building for Qt6 you should follow this documentation: https://doc.qt.io/qt-6/sql-driver.html#qmysql