Results 1 to 7 of 7

Thread: Qmysql

  1. #1
    Join Date
    Jun 2007
    Posts
    18
    Thanks
    2

    Default Qmysql

    Dear QT'ians:

    I have a question which seems to be a "burning" question as I realize in my search for its solution. It has been posted but the solutions have not been found - or atleast they are not working out for me. I tried http://www.pikopong.com/blog/2010/04...k-for-windows/
    and http://www.lemon-factory.com/2010/04...in-on-windows/
    but during either of the cases I get the output shown in the attached snapshot.

    Would appreciate any help.

    ps: the entries for reimp appear twice because in the first case I did not have that mingw tool. I downloaded and then ran it and hence it has successfully executed during my second attempt. This is an explanation for the two entries.
    Attached Images Attached Images
    Last edited by arjoshi; 1st April 2011 at 15:25.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qmysql

    Why go to some external links when its all in the documentation?
    http://doc.qt.nokia.com/latest/sql-driver.html
    Make sure you follow the instructions there.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Jun 2007
    Posts
    18
    Thanks
    2

    Default Re: Qmysql

    Thanks. It worked but it just produced the debug versions. I need the release versions as well. I think in the documentation you provided me the link to, seems to have an incomplete command line. See the section
    "How to Build the QMYSQL Plugin on Windows" I can't see the command after mysql.pr
    Can you help me with the complete command so that I can have the release version as well?
    Last edited by arjoshi; 1st April 2011 at 15:56.

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qmysql

    I am not sure I follow.
    Can you post what you see?(copy&paste)
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  5. #5
    Join Date
    Jun 2007
    Posts
    18
    Thanks
    2

    Default Re: Qmysql

    This is all I see in the command supplied in the documentation:

    qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server <version>\lib\opt\libmysql.lib" mysql.pro

    I got success on running this but, it produced only debug version not the release.

  6. #6
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qmysql

    try
    make all
    or
    make release
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  7. #7
    Join Date
    Jun 2007
    Posts
    18
    Thanks
    2

    Default Re: Qmysql

    it worked !! Thanks very much.

Similar Threads

  1. Qmysql
    By babygal in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2010, 07:14
  2. QMYSQL Problem?
    By baray98 in forum Qt Programming
    Replies: 0
    Last Post: 6th October 2009, 01:13
  3. QMYSQL driver
    By pcaeiro in forum Qt Programming
    Replies: 2
    Last Post: 3rd September 2009, 14:35
  4. I want to use QMYSQL
    By gt.beta2 in forum Qt Programming
    Replies: 15
    Last Post: 15th April 2009, 16:08
  5. QMYSQL driver
    By Fastman in forum Installation and Deployment
    Replies: 2
    Last Post: 26th October 2007, 08:14

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.