Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
cmake not creating makefile.txt
I am using a MacBook M1, I have installed Qt 6.2.0 and MySql 8.
I am following the Qt doc on building the MySql plugin driver.
qt-cmake -G"Ninja" <qt_installation_path>/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=<qt_installation_path>/<platform> -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql/lib/libmysqlclient.<so|dylib>"
The config step above appears to have succeeded with no errors reported, but the Cmakefile.txt was not created. I'm hoping others have had this problem and can help me solve this.
but the Cmakefile.txt was not created
I guess you mean Makefile?
You have -G"Ninja" that means you will use ninja to build, you should have build.ninja file in your build folder. So, call ninja to build.
@jsulm Oh, I see.
So the Qt doc is wrong.
@Vince2480 Can you post the link to that docu? Does it say you need to call make? If so a bug report should be filed.
VRonin last edited by VRonin
Doc is correct, it tells you to call
qt-cmake --build .which will call ninja
And no, @VRonin qt-cmake --build . on my install results in this error:
CMake Error: Unknown argument --build