Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. MsSQL QT 5.0.0 MSVC 2010

MsSQL QT 5.0.0 MSVC 2010

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 1.5k 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.
  • A Offline
    A Offline
    Aldo Raine
    wrote on last edited by
    #1

    Hello and good Evening,

    I have problems with compiling problems MsSQL inside.

    I already compiled MySQL and put them into "C:\Qt\Qt5.0.0\5.0.0\msvc2010\plugins\sqldrivers".

    Now i try to compile a program with following content.

    main.cpp
    @#include "dayz.h"
    #include <QApplication>
    #include <QtSql/QMYSQLDriver>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    DayZ w;
    w.show();
    QSqlDatabase db;

    return a.exec&#40;&#41;;
    

    }
    @

    .pro

    @#-------------------------------------------------

    Project created by QtCreator 2013-01-12T22:26:52

    #-------------------------------------------------

    QT += core gui sql

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = DayZ_Tool
    TEMPLATE = app

    SOURCES += main.cpp
    dayz.cpp

    QTPLUGIN += qsqlmysql

    CONFIG += qsqlmysql

    HEADERS += dayz.h

    FORMS += dayz.ui
    @

    When compiling I get following error:
    c:\qt\qt5.0.0\5.0.0\msvc2010\include\qtsql\qsql_mysql.h:
    52: Fehler:C1083: Datei (Include) kann nicht ge”ffnet werden: "mysql.h": No such file or directory

    Why the software wants to launce mysql.h?? I already compiled the mysql.dll datas

    MfG
    Patrick

    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