| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 4 | |
Having some experience with qt on linux, I decided to try it out on
windows, since that is the only platform I have at my disposal right now.
The problem is incompatibility with mysql 5.0 libraries at run time. I have
tried all sorts of fixes compiles etc... Is qt opensource a lesser version
or something. I figured this would be an important part of QT, does anyone
have an idea what the problem is?
Thanks, Andy
--
[ signature omitted ]
Dnia wtorek, 21 sierpnia 2007, Andrew Jackson napisaÅ: > Having some experience with qt on linux, I decided to try it out on > windows, since that is the only platform I have at my disposal right now. > The problem is incompatibility with mysql 5.0 libraries at run time. I have > tried all sorts of fixes compiles etc... Is qt opensource a lesser version > or something. I figured this would be an important part of QT, does anyone > have an idea what the problem is? I use following batch to build mysql plugin under windows (edit paths in it and just run): --- build-mysql-plugin.bat -- @echo off REM REM 1. Make sure mingw have all needed tools (reimp and dlltool) REM 2. Remember to have libmysql.dll in your PATH REM set QTDIR=d:\qt set MYSQL_PATH=C:\Progra~1\MySQL\MySQLs~1.0 d: cd %QTDIR%\src\plugins\sqldrivers\mysql reimp -d %MYSQL_PATH%\lib\opt\libmysql.lib dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a qmake -o Makefile "INCLUDEPATH+=%MYSQL_PATH%\include" "LIBS+=-L. -lmysql" mysql.pro mingw32-make -- end of file -- Regards, -- [ signature omitted ]
Attachment:
signature.asc
Description: This is a digitally signed message part.
Hi, Andrew. I'm using the opensource version of Qt4 on Windows together with MySQL without problems. The issue you are experiencing is not due to Qt as such, but rather to the MinGW environment. MinGW uses the GNU toolchain which has a different object and link library format to MSVC, and the MySQL libraries are distributed as MSVC link libraries. The solution is to run the reimp tool available from MinGW on the libmysql.lib library distributed by MySQL. Hope this helps. -- [ signature omitted ]
You can also read this http://www.mingw.org/MinGWiki/index.php/MSVC-MinGW-DLL Francisco González 2007/8/21, Erik Haugen Bakke <erik_hb_mlist@xxxxxxxxxxxx>: > > Hi, Andrew. > > I'm using the opensource version of Qt4 on Windows together with MySQL > without problems. > > The issue you are experiencing is not due to Qt as such, but rather to the > MinGW environment. MinGW uses the GNU toolchain which has a different > object and link library format to MSVC, and the MySQL libraries are > distributed as MSVC link libraries. > > The solution is to run the reimp tool available from MinGW on the > libmysql.lib library distributed by MySQL. > > Hope this helps. > > -- > Erik H. Bakke > > ----- Original Message ---- > From: Andrew Jackson <jacksoan@xxxxxxxxxxx> > To: qt-interest@xxxxxxxxxxxxx > Sent: Tuesday, 21 August, 2007 10:59:26 AM > Subject: qt opensource 4.3.1 /w mingw --> mysql? > > Having some experience with qt on linux, I decided to try it out on > windows, since that is the only platform I have at my disposal right now. > The problem is incompatibility with mysql 5.0 libraries at run time. I > have > tried all sorts of fixes compiles etc... Is qt opensource a lesser version > or something. I figured this would be an important part of QT, does anyone > have an idea what the problem is? > Thanks, Andy > > > -- > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with > "unsubscribe" in the subject or the body. > List archive and information: http://lists.trolltech.com/qt-interest/ > > > > > > > > ____________________________________________________________________________________ > Sick of deleting your inbox? Yahoo!7 Mail has free unlimited storage. > http://au.docs.yahoo.com/mail/unlimitedstorage.html > > > -- > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with > "unsubscribe" in the subject or the body. > List archive and information: http://lists.trolltech.com/qt-interest/ > >