Results 1 to 2 of 2

Thread: error building qt mysql driver

  1. #1
    Join Date
    Oct 2012
    Location
    Ghana
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default error building qt mysql driver

    I'm trying to build the qt mysql driver plugin. i already have mysql(xampp) installed. The .pro file is in
    C:\myTools\Qt\QtSDK\QtSources\4.8.1\src\plugins\sq ldrivers\mysql
    . This is a copy of my .pro file

    Qt Code:
    1. TARGET = qsqlmysql
    2. SOURCES = main.cpp
    3. include(../../../sql/drivers/mysql/qsql_mysql.pri)
    4. INCLUDEPATH += C:/myTools/xampp/mysql/include
    5. LIBS+=C:/myTools/xampp/mysql/lib/libmysql.lib
    6. include(../qsqldriverbase.pri)
    To copy to clipboard, switch view to plain text mode 
    However i still get the error
    cannot find -llibmysql
    error: collect2: ld returned 1 exit status
    I cross-checked my library and includepath and they were intact. I need help please.

  2. #2
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: error building qt mysql driver


Similar Threads

  1. Building a static mysql driver
    By ThE_-_BliZZarD in forum Installation and Deployment
    Replies: 3
    Last Post: 15th October 2010, 12:56
  2. [QT 4.6] Error build driver mysql
    By vinny gracindo in forum Installation and Deployment
    Replies: 1
    Last Post: 26th February 2010, 02:02
  3. Error Loading MySql Driver in 4.3.4
    By perrigo in forum Qt Programming
    Replies: 5
    Last Post: 26th March 2008, 15:38
  4. mysql driver and nmake error
    By Ghost in forum Installation and Deployment
    Replies: 13
    Last Post: 13th March 2008, 15:23
  5. nmake problems while building mysql driver
    By MarkoSan in forum Installation and Deployment
    Replies: 27
    Last Post: 25th May 2007, 13:57

Tags for this Thread

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.