build driver MYSQL for Qt

Share
Embed
  • Published on Mar 27, 2013
  • build driver MYSQL for Qt
    download mysql dev.mysql.com/downloads/mirror.php?id=411874
    do not forget to install Qt source

Comments • 26

  • Joao Victor
    Joao Victor 2 years ago

    QT creator "C: \ Qt \ Qt5.8.0 \ 5.8 \ mingw53_32 \ plugins \ sqldrivers" does not correspond to QML, C ++, README files. Has only ".dll" of the drivers we have.

  • Ярослав Комаров

    Не получаеться (

    • redspider2484
      redspider2484  9 months ago

      @Maxim Karyakin версія Qt? версія MySQL? OS?

    • Maxim Karyakin
      Maxim Karyakin 9 months ago

      @redspider2484 qt4.8.2, MySQL 5.3.30 64, win8 64, mingw 64/. Пробовал все кроме оси делать 32 битным - та же самая шляпа. В одной теме парень написал, что поправил переменные окружения и все ок, я вроде тоже все аккуртано. Где-то несостыковка.

    • redspider2484
      redspider2484  9 months ago

      @Maxim Karyakin яка версія Qt, яка версія MySQL, яка OS ?

    • Maxim Karyakin
      Maxim Karyakin 9 months ago

      @redspider2484 release\moc_qsql_mysql.cpp:11:2: error: #error "The header file 'qsql_mysql.cpp' doesn't include ."
      release\moc_qsql_mysql.cpp:19: error: expected constructor, destructor, or type conversion before 'static'
      release\moc_qsql_mysql.cpp:42: error: 'QMYSQLResultPrivate' has not been declared
      release\moc_qsql_mysql.cpp:42: error: variable or field 'qt_static_metacall' declared void
      release\moc_qsql_mysql.cpp:42: error: 'QObject' was not declared in this scope
      release\moc_qsql_mysql.cpp:42: error: '_o' was not declared in this scope
      release\moc_qsql_mysql.cpp:42: error: 'QMetaObject' has not been declared
      release\moc_qsql_mysql.cpp:42: error: expected primary-expression before 'int'
      release\moc_qsql_mysql.cpp:42: error: expected primary-expression before 'void'
      Не подскажешь, в чем причина? в про-файле добавил QtCore c QObject и QMetaОbject, пару ошибок исчезло

    • redspider2484
      redspider2484  9 months ago

      @Maxim Karyakin з чим конкретно помогти?

  • Santhosh.S San
    Santhosh.S San 4 years ago

    Can you please provide me the procedure for building drivers in qt android,
    I am getting error as drivers not loaded. please do the needfull

  • Jeroen DR
    Jeroen DR 4 years ago

    How do you use the mysqld for embedded?
    I just want a database to come with the app.

    • Jeroen DR
      Jeroen DR 4 years ago

      @redspider2484
      Why? Easyer to use as embedded db? I'm used to mysql as its very common on the servers around me.

    • redspider2484
      redspider2484  4 years ago

      @Jonas De Wilde why do not you want to use? SQLite

  • Magzhan Abdibayev
    Magzhan Abdibayev 5 years ago

    Спасибо, мужик, выручил)

  • Muhammad Sabry
    Muhammad Sabry 5 years ago

    Would you please make a video for building MySQL Driver for Android under windows
    Thanks

  • redspider2484
    redspider2484  6 years ago

    Are you sure you entered the correct path?
    Give more information

  • omar zridi
    omar zridi 6 years ago

    error :
    c:\MySQL\MySQLServer55\lib\libmysql.dll:-1: erreur : file not recognized: File format not recognized
    help me please !

  • redspider2484
    redspider2484  6 years ago

    This error occurs when compiling a driver?
    check the path to the mysql

  • Pawel Surowka
    Pawel Surowka 6 years ago

    I get this error:
    error: LNK1104: cannot open file 'mysql.lib'
    Any idea why ? The actual file name is: libmysql.dll

  • Andy Litovsky
    Andy Litovsky 6 years ago

    thank u, dude ur awesome