QMYSQL plugin on MacOS Catalina
-
@alexcru said in QMYSQL plugin on MacOS Catalina:
I would be very grateful if you help me.
Please read again your post and think about how we should help we with the provided information you gave us.
-
Hi and welcome to devnet,
Which version of Qt are you trying to build the driver for ?
Where does that qmake come from ? Since you do not use the full path, it's starting to get suspicious.
Which source is it ?
Where did you download it ? -
I'm trying to build it for Ot 6.1.0, i download it from the official website. i followed the steps from https://doc.qt.io/qt-5/sql-driver.html#qmysql
-
We still don't know what qmake you're calling. And what's the content of the sqldrivers directory?
-
I'm trying to build it for Ot 6.1.0, i download it from the official website. i followed the steps from https://doc.qt.io/qt-5/sql-driver.html#qmysql
@alexcru said in QMYSQL plugin on MacOS Catalina:
I'm trying to build it for Ot 6.1.0, i download it from the official website. i followed the steps from https://doc.qt.io/qt-5/sql-driver.html#qmysql
Why are you following the Qt 5 documentation to build the Qt 6 driver ?
-
Ok so i read this:https://doc-snapshots.qt.io/qt6-dev/sql-driver.html#qmysql
but what should I put in <qt_installation_path>? -
So a tried I typed this code:
qt-cmake -G"Ninja" /Users/alex/Qt/6.1.0/Src/qtbase/src/plugins/sqldrivers -DCMAKE_INSTALL_PREFIX=/Users/alex/Qt/6.1.0/Src/qtbase/src/plugins/sqldrivers/mysql -DMySQL_INCLUDE_DIR="/usr/local/mysql/include" -DMySQL_LIBRARY="/usr/local/mysql-8.0.25-macos11-x86_64/lib/libmysqlclient.dylib"but i get this message:

-
Install ninja
-
You have "configuring error" just above. You might want to take a look at that first.
-
That one at least is wrong: @alexcru said in QMYSQL plugin on MacOS Catalina:
CMAKE_INSTALL_PREFIX
You do not want to install in the sources.
-
Which version of cmake do you have ?
-
What was it ?






