Results 1 to 20 of 21

Thread: Mysql drivers install problems

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Posts
    58
    Thanks
    3
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Mysql drivers install problems

    cd $QTDIR/src/plugins/sqldrivers/mysql
    This would be in my case cd /usr/local/Trolltech/Qt*/src/plugins/sqldrivers/mysql/
    But this directory doesn't exist, but I found the /usr/local/Trolltech/Qt*/plugins/sqldrivers/
    directory and I did the sudo mkdir mysql, now I have the directory.

    qmake -o Makefile "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqlclient_r" mysql.pro
    This would be in my case sudo qmake -o Makefile "INCLUDEPATH+=/usr/local/mysql*/include" "LIBS+=-L/usr/local/mysql*/lib -lmysqlclient_r" mysql.pro
    But than I get the message : "Cannot find file: mysql.pro."

    So I ran the sudo qmake -project command to get a mysql.pro file.
    Afterwards I ran the sudo qmake -o Makefile.... command, with succes.
    And than the make command, but I get the message "make: Nothing to be done for `first'."

    So I'm really messing up something but what?
    Last edited by cyberboy; 1st February 2008 at 10:30. Reason: typos

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Mysql drivers install problems

    As Jacek already pointed out, you need the sources. You can't just make an empty dir and pretend they're there...
    J-P Nurmi

  3. #3
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Mysql drivers install problems

    Use the Seprate source for it as JPN suggested.
    And then,
    qmake -o Makefile "INCLUDEPATH+=/usr/include/mysql" "LIBS+=-L/usr/lib/mysql -lmysqlclient_r" mysql.pro
    I had compiled with this. Because the corresponding header and .so files are in my system in that location. So, Try with this. I hope it's help.
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

Similar Threads

  1. QMake make install problems
    By cookiem in forum Qt Programming
    Replies: 12
    Last Post: 4th December 2008, 15:34
  2. Mac OS X install problems
    By rickbsgu in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2006, 06:31
  3. Issues regarding QMySql drivers and mysql database
    By bera82 in forum Qt Programming
    Replies: 2
    Last Post: 10th August 2006, 17:50
  4. Problems building mysql plugin for Qt 4.1.2 on windows XP
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2006, 15:38

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.