QT 5 - building Mysql Plugin: can't find "mysql.h"



  • Hello there!

    I'm trying to build the mysql plugin for QT 5 in my windows 8 machine.

    My mysql installation is in c:\mysql.

    I'm trying to build it with qt creator, opening the mysql.pro file.

    This is my mysql.pro file:

    @TARGET = qsqlmysql

    QT +=sql

    SOURCES = main.cpp
    OTHER_FILES += mysql.json
    INCLUDEPATH += "c:/mysql/include"
    LIBS += "c:/mysql/lib/libmysql.lib"
    include(../../../sql/drivers/mysql/qsql_mysql.pri)

    PLUGIN_CLASS_NAME = QMYSQLDriverPlugin
    include(../qsqldriverbase.pri)
    @

    The error that I get when I try to build it is this:

    @c:\qt\qt5.0.0\5.0.0\src\qtbase\src\sql\drivers\mysql\qsql_mysql.h:52: error: C1083: Cannot open include file: 'mysql/include/mysql.h': No such file or directory@

    What is what I'm doing wrong?



  • Your directory file is wrong...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.