[MYSQL-Qt] Create plugin MYSQL for Qt on MAC
-
Thanks, I was able to get the plugin built. I opened up a separate topic here:
Just sorting out now that the build of the plugin succeeded (which was due to a prompt issue on my side selecting the standard VS prompt vs the 64bit prompt) how to get my test project to use it. I've got that discussion going on within the above linked topic.
-
I am unable to run the following command:
make sub-mysqlWhy is this?
-
@emiliano23 said in [MYSQL-Qt] Create plugin MYSQL for Qt on MAC:
Why is this?
Please provide more information.
What happens if you try to execute this command? -
Hi @emiliano23,
Did you install mysql on your Mac?
If installed, please check correct install path and make sure you run these command in correct directory ($QTDIR/Src/qtbase/src/plugins/sqldrivers) -
Make sure to remove the old config.cache file and qmake actually is running the config checks: https://forum.qt.io/topic/106905/what-is-current-2019-recommended-process-complete-for-building-a-mysql-driver-for-use-with-qt-on-windows/5
-
@overmatch A maybe silly question but did you call make install at the end ?
What do you get if you start the application with the QT_DEBUG_PLUGINS environment variable set to 1 ?
-
@Quang-Phu said in [MYSQL-Qt] Create plugin MYSQL for Qt on MAC:
/usr/local/mysql/lib/
Brilliant, I have been beating my head against the wall on this for a week or so before finding your post. Worked like a charm...thank you so much for taking the time to share.
-
@Quang-Phu said in [MYSQL-Qt] Create plugin MYSQL for Qt on MAC:
make sub-mysql
i stopped on. this he says me :
macbook@MacBook-Pro-uzivatela-Macbook sqldrivers % make sub-mysql
make: *** No rule to make target `sub-mysql'. Stop.
macbook@MacBook-Pro-uzivatela-Macbook sqldrivers %me sqldrivers folder:
-
Thanks a lot. I fixed my problem in 1hour due to this topic.
-
Hey guys, who are strugling with same problem on Mac M1. Follow steps that are descripted here: https://forum.qt.io/topic/136231/mysql-plugin-on-m1-mac/11