Important: Please read the Qt Code of Conduct -

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 file.

    This is my file:

    @TARGET = qsqlmysql

    QT +=sql

    SOURCES = main.cpp
    OTHER_FILES += mysql.json
    INCLUDEPATH += "c:/mysql/include"
    LIBS += "c:/mysql/lib/libmysql.lib"


    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