arthur38
27th August 2017, 14:20
Hello,
I try to compile the driver mysql but I've a problem with where QT wants to write some files.
I'm working on : QT 5.9 under macOS
The steps I did :
- Download mysql connector and unpack it,
- Open with Qt Creator the project /Users/utilisateur/Qt/5.9/Src/qtbase/src/plugins/sqldrivers/mysql/mysql.pro
- Edit the file mysql.pro to add these lines :
INCLUDEPATH+=/Users/utilisateur/mysql-connector-c-6.1.10-macos10.12-x86_64/include
LIBS+=-L/Users/utilisateur/mysql-connector-c-6.1.10-macos10.12-x86_64/lib -lmysqlclient
Compile the project
Results :
Info: creating stash file /Users/utilisateur/Qt/5.9/Src/qtbase/src/plugins/sqldrivers/.qmake.stash
Cannot read /qtsqldrivers-config.pri: No such file or directory
/Users/utilisateur/Qt/5.9/clang_64/mkspecs/features/qt_plugin.prf:59: Cannot write file /mkspecs/modules-inst/qt_plugin_qsqlmysql.pri: Cannot create parent directory
It tries to create a file /mkspecs/modules-inst/qt_plugin_qsqlmysql.pri but it cannot because it can't create anything in the directory "/".
I think something is missing in the configuration like a variable to set a good folder.
Does anyone have an idea ?
Thank you for your help and enjoy your day !
I try to compile the driver mysql but I've a problem with where QT wants to write some files.
I'm working on : QT 5.9 under macOS
The steps I did :
- Download mysql connector and unpack it,
- Open with Qt Creator the project /Users/utilisateur/Qt/5.9/Src/qtbase/src/plugins/sqldrivers/mysql/mysql.pro
- Edit the file mysql.pro to add these lines :
INCLUDEPATH+=/Users/utilisateur/mysql-connector-c-6.1.10-macos10.12-x86_64/include
LIBS+=-L/Users/utilisateur/mysql-connector-c-6.1.10-macos10.12-x86_64/lib -lmysqlclient
Compile the project
Results :
Info: creating stash file /Users/utilisateur/Qt/5.9/Src/qtbase/src/plugins/sqldrivers/.qmake.stash
Cannot read /qtsqldrivers-config.pri: No such file or directory
/Users/utilisateur/Qt/5.9/clang_64/mkspecs/features/qt_plugin.prf:59: Cannot write file /mkspecs/modules-inst/qt_plugin_qsqlmysql.pri: Cannot create parent directory
It tries to create a file /mkspecs/modules-inst/qt_plugin_qsqlmysql.pri but it cannot because it can't create anything in the directory "/".
I think something is missing in the configuration like a variable to set a good folder.
Does anyone have an idea ?
Thank you for your help and enjoy your day !