PDA

View Full Version : MySQL Error



P4ulo
25th January 2010, 14:11
Hi guys,

I'm trying build the QMYSQL plugin fallowing this tuto: http://www.jiggerjuice.net/software/qt-sql-drivers.html

But at this step has error:



The error is this:

http://img638.imageshack.us/img638/2092/semttulofs.jpg

Help-me please *-*

faldzip
25th January 2010, 14:24
C:\Qt\2010.01\bin\sqldrivers\mysql is not the correct path. This path is a bin directory for QtCreator files and has nothing to do with Qt Libraries your are using for your applications. Especially bin directory is not the right place to search sources to compile as its name stands from "binary" so already compiled stuff.
C:\Qt\2010.01\qt <- your Qt dir
C:\Qt\2010.01\qt\src\plugins\sqldrivers\mysql <- your MySQL plugin sources ("src" stands for "sources")

vishwajeet.dusane
25th January 2010, 14:30
Hi

looking at the steps:


mysql.pro file should be present in <UR_QT_DIR>/src/plugins/sqldrivers/mysql/

just add this path in your existing path and that should work.

P4ulo
25th January 2010, 15:52
Hi..
now this is the error:

http://img31.imageshack.us/img31/7320/semttulouu.png

Help-me please *-*
thanks

schnitzel
10th February 2010, 21:45
if you are still having this problem... you need to open the Qt Command Prompt which sets up your environment variables needed for building. The 'regular' cmd prompt won't work as is.

ecanela
10th February 2010, 23:50
if you are still having this problem... you need to open the Qt Command Prompt which sets up your environment variables needed for building. The 'regular' cmd prompt won't work as is.

or set the PATH manually for QT, gcc and others tool needed for Qt compilation