[Qt-interest] QT 4.7.1 on Windows + MSVC2010 + MySQL
Constantin Makshin
cmakshin at gmail.com
Sun Nov 21 20:33:41 CET 2010
On Sunday 21 November 2010 22:13:50 newsletters at philippberger.de wrote:
> >> But after configure run through nmake fails with a message about 50
> >> unresolved externals related to mysql. Do I need an additional command
> >> like "-llibmysql"? And this problem is not related to the MinGW problems
> >> (or at least I think so^^).
> > You don't need to specify "-llibmysql" explicitly because it's
> > automatically done by the MySQL driver project file.
> > What looks strange to me is that you extracted MySQL to one directory, but
> > in configuration options specified another directory.
>
> Sorry, this is due to me trying to sum up what I've done on multiple
> computers, of course I used
> -I "E:\QT\mysql-build\include"
> -L "E:\QT\mysql-build\lib\opt"
>
> in this case :). Because nmake (and the linker) complained about the
> unresolved external symbols, I thought that maybe QT was not loading
> libmysql and/or libmysqlclient. Sadly I do now know enough about the
> behaviour of those programs, so I can only guess..
Could you provide the output of nmake (not everything, of course, only errors :) )?
Preferably on pastebin or similar web site because posting ~50 error messages in one e-mail message is a bit too much. :)
P.S.:
I successfully built MySQL plugin a long time ago, sometime in Qt 4.5 era or a bit earlier. But then I compiled MySQL instead of using binary packages (they link against static version of C[++] runtime library and their pre-built libmysql.dll is too big IMHO).
And I don't think Qt developers completely broke it since then. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101121/93640692/attachment.bin
More information about the Qt-interest-old
mailing list