[Qt-interest] configuring Qt with MySQL
Ashish Singh
asinghmlists at gmail.com
Thu May 14 15:39:51 CEST 2009
Thanks Tibor, but I use Qt with Visual studio and not MinGW.
Ashish
On Thu, May 14, 2009 at 2:17 AM, Tibor Kiss <tibor at wiesen.at> wrote:
> Maybe you find this useful:
>
> http://wiki.qtcentre.org/index.php?title=Building_the_QMYSQL_plugin_on_Windows_using_MinGW
>
> Tibor
>
> 2009/5/13 Ashish Singh <asinghmlists at gmail.com>:
> > Hi Vincent, My mistake..what I wanted to say was that ' libmysql.dll' is
> in
> > the same location as '..MySQLServer5.1/lib/opt'. Actually both
> > 'libmysql.lib' and 'libmysql.dll' are at the same location.
> >
> > Isn't there a way to have this automatically taken care of instead of
> > copying the 'libmysql.dll' in the executable directory everytime?
> >
> > Thanks,
> > Ashish
> >
> >
> >
> > On Wed, May 13, 2009 at 4:36 PM, Vincent L. Damewood <lists at damewood.us>
> > wrote:
> >>
> >> On Wed, May 13, 2009 at 2:09 PM, Ashish Singh <asinghmlists at gmail.com>
> >> wrote:
> >> > On Wed, May 13, 2009 at 3:27 PM, Vincent L. Damewood <
> lists at damewood.us>
> >> > wrote:
> >> >>
> >> >> On Wed, May 13, 2009 at 11:18 AM, Ashish Singh <
> asinghmlists at gmail.com>
> >> >> wrote:
> >> >> > Hi,
> >> >> >
> >> >> > I have been trying to get Qt to work with MySQL without any luck.
> >> >> > When I
> >> >> > run
> >> >> > a 2 line test code, it comes back with a message saying- "This
> >> >> > application
> >> >> > has failed to start because LIBMYSQL.DLL was not found.
> >> >>
> >> >> Your Qt application can't find the MySQL client library. Try finding
> a
> >> >> file called libmysql.dll in your MySQL installation and copy it to
> the
> >> >> directory your Qt application is in, or in the directory your QtMySQL
> >> >> plugin is in.
> >> >
> >> > Thanks for replying. The 'libmysql.lib' file is actually in my
> >> > '..MySQLServer5.1/lib/opt' folder. I have already given this path to
> Qt
> >> > at
> >> > the time of configuration. Shouldn't that take care of it?
> >>
> >> No. Your program is looking for the file libmysql.dll, not
> >> libmysql.lib. It All this did was give Qt the information needed to
> >> 'talk' to the DLL file. You will still need the DLL, and you will need
> >> it in a place where your application can find it. The safest place is
> >> in the same directory as your executable.
> >>
> >> Have a look at these:
> >> http://msdn.microsoft.com/en-us/library/1ez7dh12.aspx
> >> http://msdn.microsoft.com/en-us/library/f0z8kac4.aspx
> >
> >
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090514/dd84fc84/attachment.html
More information about the Qt-interest-old
mailing list