Results 1 to 4 of 4

Thread: QMYSQL plugin win64 7 tutorial

  1. #1
    Join Date
    Dec 2010
    Posts
    13
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QMYSQL plugin win64 7 tutorial

    ./tmp\obj\debug_shared\qsql_mysql.o:C:\Qt\qt\src\sql/drivers/mysql/qsql_mysql.cp
    p:1507: undefined reference to `mysql_real_escape_string@16'
    collect2: ld returned 1 exit status
    mingw32-make[2]: *** [..\..\lib\QtSqld4.dll] Error 1
    mingw32-make[2]: Leaving directory `C:/Qt/qt/src/sql'
    mingw32-make[1]: *** [debug-all] Error 2
    mingw32-make[1]: Leaving directory `C:/Qt/qt/src/sql'
    mingw32-make: *** [sub-sql-make_default-ordered] Error 2

    That it the error that I get when I run mingw32-make.

    I have followed not less than 5 tutorials on installing the QMYSQL plugin. Is there another way to go around this since the tutorials do not work for my os.

    Thanx in advance.

  2. #2
    Join Date
    Dec 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QMYSQL plugin win64 7 tutorial

    Hi,

    I have written a tutorial, in French, which I plan to translate. Until then, you may follow the instructions as they are quite obvious, even untranslated, at:
    http://www.developpez.net/forums/d10...windows-mingw/

    This is also under Win7 64-bit, using MinGW.
    Hope this helps.

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QMYSQL plugin win64 7 tutorial

    This looks like a typical Mysql libraries are not in the library search path problem. That is, the -L option to configure or LIBS value in your qmake call is incorrect; see http://doc.qt.nokia.com/4.7/sql-driver.html#qmysql

    If you want assistance then you need to tell us what you have actually done.

  4. #4
    Join Date
    Dec 2010
    Posts
    13
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QMYSQL plugin win64 7 tutorial

    Thanx everyone. I gave up on setting the QMYQSL driver in win64 7. I am going to use my win32 which works.

    Thanx for the replies.

Similar Threads

  1. Replies: 2
    Last Post: 19th January 2011, 19:02
  2. Qmysql
    By babygal in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2010, 07:14
  3. QMYSQL Plugin does not compile
    By mmaayeh in forum Qt Tools
    Replies: 1
    Last Post: 24th April 2009, 07:43
  4. I want to use QMYSQL
    By gt.beta2 in forum Qt Programming
    Replies: 15
    Last Post: 15th April 2009, 16:08
  5. Replies: 2
    Last Post: 26th June 2008, 04:46

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.