Results 1 to 2 of 2

Thread: CentOS 6: QMYSQL driver not loaded, available driver: (none)

  1. #1
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default CentOS 6: QMYSQL driver not loaded, available driver: (none)

    Hi, I know this question has been asked before, but after reading the threads, my situation was not the same. So, I ask the same question:

    I have a Qt5.2.1 application using MySQL database on CentOS 6. I called it DEV machine. I tried to deploy to the other machine (called it as APP machine) with only qt-3.3 installed. I had an old application running on APP with QMYSQL3. It is running fine. But when my new applications installed in APP machine, I included every library I need, the new program gives me the errors:
    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: (blank)
    This is my files structure:
    /home/myapp/myapplib
    /home/myapp/myappexec
    /home/myapp/myappexec.sh
    I used ldd to find out all the libraries the "myappexec" needed and installed under myapplib directory
    the myappexec.sh is written as:
    #!/bin/sh
    export LD_LIBRARY_PATH=/home/myapp/myapplib
    export QT_QPA_PLATFORM_PLUGIN_PATH=/home/myapp/myapplib/plugins/platforms
    ./myappexec

    I have all libqsqlite.so libqsqlmysql.so libqsqlodbc.so libqsqlpsql.so and libQt5Sql.so installed into APP under myapplib. I read something about libmysqlclient_r.so.16, but I could not find it in my DEV, so that I could not install in APP machine.

    PS, I had another program "mytest" using the same Qt5.2.1 without using any database, and installed in APP machine that also runs fine.
    the .sh is about the same:
    #!/bin/sh
    export LD_LIBRARY_PATH=/home/myapp/myapplib
    export QT_QPA_PLATFORM_PLUGIN_PATH=/home/myapp/myapplib/plugins/platforms
    ./mytest

    Can anyone help me out?

    Thanks.
    Last edited by mp33919; 17th October 2016 at 23:10.

  2. #2
    Join Date
    Jul 2006
    Posts
    42
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: CentOS 6: QMYSQL driver not loaded, available driver: (none)

    After I posted the previous question, I checked the version of both DEV and APP machines. They both have the same version of MySQL: Server Version 5.1.73.
    So, maybe, just maybe: how to tell "myappexec" to somewhere to load the QMYSQL driver. Can this be added into the .sh file?

Similar Threads

  1. Replies: 4
    Last Post: 25th November 2017, 18:12
  2. QMYSQL driver not loaded
    By shadowCODE in forum Installation and Deployment
    Replies: 3
    Last Post: 21st December 2014, 20:21
  3. QMYSQL driver not loaded
    By robotics in forum Qt Programming
    Replies: 3
    Last Post: 26th July 2011, 13:43
  4. Help with QMYSQL driver for QT 4.4.0: driver not loaded
    By khikho in forum Installation and Deployment
    Replies: 4
    Last Post: 1st April 2011, 16:00
  5. QMYSQL driver not loaded
    By sepehr in forum Qt Programming
    Replies: 12
    Last Post: 11th January 2009, 21: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.