Results 1 to 10 of 10

Thread: building mysql plugin

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: building mysql plugin

    Quote Originally Posted by qlands View Post
    Is the version in qtsdk-2010.05 newer than the one in /usr/lib/qt4?
    Don't know, how can I check that?

    Try by removing the Makefile and opening the .pro file in QTCreator that comes with the qtsdk-2010.05. If you build it in QT creator, it might use the qtsdk libraries and not /usr/lib/qt4
    I renamed the makefile and loaded mysql.pro into creator. I get 'no such file' on mysql.h in qsql_mysql.h:

    Try to also include the mysql required paths and libraries in the .pro file.
    I tried adding some paths to the pro file and run qmake again, no luck.

    I found out, the docs tell you to 'qmake "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqlclient_r" mysql.pro' but /usr/local/include is empty on my ubuntu box. And /usr/local/lib contains only a python file.
    So maybe all I need to figure out is a better qmake line?

    @unit, echo $QTDIR produces an ampty line, strange because I ran the installer from the nokia site.

    Can anyone direct me to documentation what these environment variables should be?
    Help appreciated.
    Last edited by JeanC; 7th March 2011 at 15:24.

Similar Threads

  1. Qt 4.7.0 Mac (dmg file) mysql plugin building
    By MarkoSan in forum Newbie
    Replies: 1
    Last Post: 16th December 2010, 22:04
  2. building a plugin for MySql
    By pcaeiro in forum Installation and Deployment
    Replies: 2
    Last Post: 5th August 2009, 11:07
  3. building plugin for mysql?
    By triperzonak in forum Installation and Deployment
    Replies: 1
    Last Post: 25th June 2008, 08:57
  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
  5. Building of MySQL plugin fails
    By janca in forum Installation and Deployment
    Replies: 2
    Last Post: 21st January 2006, 08:23

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.