Results 1 to 2 of 2

Thread: Mysql plugin on Linux problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2010
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanked 4 Times in 4 Posts

    Default Re: Mysql plugin on Linux problem

    QT Docs say, that you need the sources for MySql
    How to Build the QMYSQL Plugin on Unix and Mac OS X

    You need the MySQL header files and as well as the shared library libmysqlclient.so. Depending on your Linux distribution you may need to install a package which is usually called "mysql-devel".

    Tell qmake where to find the MySQL header files and shared libraries (here it is assumed that MySQL is installed in /usr/local) and run make:

    cd $QTDIR/src/plugins/sqldrivers/mysql
    qmake "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqlclient_r" mysql.pro
    make

    After installing Qt, as described in the Installing Qt on X11 Platforms document, you also need to install the plugin in the standard location:

    cd $QTDIR/src/plugins/sqldrivers/mysql
    make install
    I don't understand, why you build your plugin yourself, on my Ubuntu installation, the mysql-plugin is installed. (You should find it, when you have libqt4-sql-mysql installed)

  2. The following user says thank you to majorwoody for this useful post:

    .:saeed:. (20th January 2011)

Similar Threads

  1. MySql Plugin again!
    By .:saeed:. in forum Newbie
    Replies: 4
    Last Post: 31st January 2011, 21:58
  2. MySql plugin on Mac OS X
    By tma in forum Installation and Deployment
    Replies: 1
    Last Post: 17th December 2010, 15:01
  3. MySql plugin
    By hubipet in forum Installation and Deployment
    Replies: 0
    Last Post: 7th August 2010, 11:23
  4. MySQL plugin
    By ksqt in forum Installation and Deployment
    Replies: 12
    Last Post: 24th September 2009, 13:26
  5. problem with plugin mysql
    By jose.va18 in forum Installation and Deployment
    Replies: 2
    Last Post: 19th September 2007, 12:12

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
  •  
Qt is a trademark of The Qt Company.