[MYSQL-Qt] Create plugin MYSQL for Qt on MAC
-
Hi @James-Hankins,
I haven't tried on Windows yet. but I think you can take a look with this post
https://forum.qt.io/topic/96506/qtdriver-not-load
May it help. -
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?
-
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? -
@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?@jsulm
After running with success
qmake -- MYSQL_PREFIX=/usr/local/mysql
I execute the command
make sub-mysqlAnd the output is
make: *** No rule to make target `sub-mysql'. Stop. -
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
-
i tried, and almost every step is absolutely like yours, but at last step, i still get "drivers not loaded"
@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.
-
Could anyone tell me where/how to add the environment variable"DYLD_LIBRARY_PATH"??
I am using qt5.14.2 and I couldn’t figure out how to add it -
@Imon hi and welcome to devnet,
If using Qt Creator, go to the Run part of the Project panel.
-
@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:
-
@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.
-
i tried, and almost every step is absolutely like yours, but at last step, i still get "drivers not loaded"
@overmatch have you solve this problem ,i have the same problem
-
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