Results 1 to 20 of 21

Thread: connecting to MySQL through it's API

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2006
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    12

    Red face Re: connecting to MySQL through it's API

    In the case that the configure -qt-sql-mysql works
    what would be the diference?.. I'm now compilling with make after the configure...
    after comnpilling my app in the case it works.. how should I pack my app to work on other windows whithout the Qt 4.1.2 installed?
    Battle Programmer Ph1L
    Philip_Anselmo
    Greetings From Osorno - Chile

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: connecting to MySQL through it's API

    Quote Originally Posted by Philip_Anselmo
    In the case that the configure -qt-sql-mysql works
    what would be the diference?..
    You won't have a separate DLL with the plugin. If it won't work, at least you will know why.

    Quote Originally Posted by Philip_Anselmo
    how should I pack my app to work on other windows whithout the Qt 4.1.2 installed?
    The same way, only without the qsqlmysql.dll file.

  3. The following user says thank you to jacek for this useful post:

    Philip_Anselmo (24th May 2006)

  4. #3
    Join Date
    Apr 2006
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    12

    Angry Re: connecting to MySQL through it's API

    I just get errors... the same that i got with the plugin
    Battle Programmer Ph1L
    Philip_Anselmo
    Greetings From Osorno - Chile

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: connecting to MySQL through it's API

    Quote Originally Posted by Philip_Anselmo
    I just get errors... the same that i got with the plugin
    What commands did you issue? Could you post the exact error message?

  6. #5
    Join Date
    Apr 2006
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    12

    Unhappy Re: connecting to MySQL through it's API

    I just did exactly this:

    Qt Code:
    1. configure -qt-sql-mysql -I d:\mysql\include -L d:\mysql\lib\opt -l libmysql
    To copy to clipboard, switch view to plain text mode 

    and there were some errors that now I can't remember.. so I guess isn't of too much help unless I type the command on a wrong way

    but the includes from mysql and the libs are there where i told the configure to look for...
    the libmysql.lib libmysql.a and libmysql.dll
    the libmysql.a was made acording to the manual on other posts..
    I posted the lines I used to make it on qtforum and them has been referenced to a lot of people who used them and get the plugins to work and once I used them too and it worked but not now
    Battle Programmer Ph1L
    Philip_Anselmo
    Greetings From Osorno - Chile

  7. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: connecting to MySQL through it's API

    Unfortunately we can't help without knowing what the errors are

  8. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: connecting to MySQL through it's API

    Quote Originally Posted by Philip_Anselmo
    I just did exactly this:[...]
    IMO it should be:
    Qt Code:
    1. configure -qt-sql-mysql -Id:\mysql\include -Ld:\mysql\lib\opt
    To copy to clipboard, switch view to plain text mode 

  9. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: connecting to MySQL through it's API

    Quote Originally Posted by jacek
    IMO it should be:
    Qt Code:
    1. configure -qt-sql-mysql -Id:\mysql\include -Ld:\mysql\lib\opt
    To copy to clipboard, switch view to plain text mode 
    AFAIK both are ok.

Similar Threads

  1. Replies: 1
    Last Post: 21st March 2006, 13:54
  2. mySql Result Datatype issues!!!
    By bera82 in forum Qt Programming
    Replies: 2
    Last Post: 21st March 2006, 11:26
  3. issues compiling Qt4.1 with mysql
    By patcito in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2006, 23:41
  4. Error connecting to MySQL
    By probine in forum Qt Programming
    Replies: 20
    Last Post: 24th February 2006, 00:13
  5. Qt 4.1 OS on Windows & mysql
    By neeko in forum Installation and Deployment
    Replies: 10
    Last Post: 31st January 2006, 21:22

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.