Results 1 to 1 of 1

Thread: QMYSQL available but not loaded ?

  1. #1
    Join Date
    Dec 2009
    Posts
    65
    Thanks
    10
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: QMYSQL available but not loaded ?

    First to say, maybe i am too much ahead using qt5 rc1 (it just got out)... anyway here is the problem
    Short version:
    application gives me folowing error when connecting to database

    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3

    How can this be?

    Long version:
    Development machine is ubuntu 12.04 x64, After a lot of trouble i managed to compile mysql driver and to connect to mysql database: it works fine
    Deployment machine is lubuntu 12.04 x64, since there is no repostiory support yet for qt5 i copied some of files and folders from development machine
    (platforms, sqldrivers) into the folder with application, set LD_LIBRARY_PATH variable, The application starts but with the worning, and there is no connection to mysql database.

    Can someone help me troubleshoot this strange situation, or to point to steps how to properly deploy qt application on linux manualy?

    //-----------------------------------

    I managed to solve my problem
    http://www.qtcentre.org/wiki/index.p...t_Applications
    Here is a nice explanation here how linking works on this forum (i wish i saw this before i mysqlf (with google help) came with solution with LD_LIBRARY PATH
    /*i mistyped myself but i typed mysql so many times theese days that i decidet to leave mysqlf */
    The tool that saved the day was ldd
    i just executed ldd on libsqlmysql.so driver and there were some dependencies missing

    I also got another simmilar error
    Failed to load platform plugin "xcb". Available platforms are:
    linuxfb
    minimal
    xcb

    that had same dependancy problems
    ldd on libxcb.so found them

    can i say thanks to mysqlf?
    Last edited by davidovv; 11th December 2012 at 19:34.

Similar Threads

  1. QMYSQL driver not loaded
    By stef1570 in forum Qt Programming
    Replies: 1
    Last Post: 12th December 2011, 05:59
  2. QMYSQL driver not loaded
    By robotics in forum Qt Programming
    Replies: 3
    Last Post: 26th July 2011, 12:43
  3. QMYSQL driver not loaded
    By cydside in forum Qt Programming
    Replies: 4
    Last Post: 31st March 2010, 02:18
  4. QMYSQL driver not loaded
    By akhila in forum Newbie
    Replies: 1
    Last Post: 22nd February 2010, 18:24
  5. QMYSQL driver not loaded
    By sepehr in forum Qt Programming
    Replies: 12
    Last Post: 11th January 2009, 20:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.