Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT 5 - building Mysql Plugin: can't find "mysql.h"
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 4.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jufa
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Marco_105
      wrote on last edited by
      #2

      Your directory file is wrong...

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved