[Qt-interest] [Qt-creator] Help me using mysql with qt-creator
Efrain Lopez
tecnomaya at cabsagt.com
Mon Aug 3 00:57:43 CEST 2009
Perhaps if you tell the error message you get when following these
instructions, you can get more help
How to Build the QMYSQL Plugin on Windows
You need to get the MySQL installation files. Run SETUP.EXE and choose
"Custom Install". Install the "Libs & Include Files" Module. Build the
plugin as follows (here it is assumed that MySQL is installed in C:
\MySQL):
cd %QTDIR%\src\plugins\sqldrivers\mysql
qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server
<version>\lib\opt\libmysql.lib" mysql.pro
nmake
If you are not using a Microsoft compiler, replace nmake with make in
the line above.
El 2/08/2009, a las 04:26 p.m., Aditya Sharma escribió:
> I did what exactly said in different documentations, but it doesn't
> seem to work. I posted here because, I 've been trying for three
> days without success. Please help me through. The instruction
> written here, http://doc.trolltech.com/4.5/sql-driver.html#qmysql
> didn't work when i tried to run nmake, or make command. I did follow
> through what it was written in http://christopher.rasch-olsen.no/2009/04/14/qt-45-and-mysql-plugin-with-mingw-on-windows-xp/
> as well, but It didn't solve my problem.
>
> Please help.
>
> On Mon, Aug 3, 2009 at 12:40 AM, GreyGeek <GreyGeek at earthlink.net>
> wrote:
> Qt expects to see db drivers in a subdirectory called "sqldrivers"
> under the one containing the executable.
>
> This means that if your installation of Qt hasn't compiled the mysql
> driver you will have to. Instructions are in the documentation.
>
> If they are already compiled they will be under Qt\plugins
> \sqldrivers. The dll's of the driver you need can be copied from
> there to the subdir mentioned above.
>
>
>
>
>
>
> Aditya Sharma wrote:
>>
>> i m learning qt. I am beginner programmer who knows C++. But as
>> given in tutorials I tried to run programs using mysql database. I
>> have wamp running in my windows xp box, so that means mysqld is
>> also running. But when i try to build the code in qt creator, it
>> prompts, driver not installed or something. Please help.
>>
>> aditya
>>
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>
>
> --
> ----
> GreyGeek
>
> “They’ll get sort of addicted, and then we’ll somehow figure out how
> to collect sometime in the next decade.”
>
> –Bill Gates
>
>
> “Bill Gates looks at everything as something that should be his. He
> acts in any way he can to make it his. It can be an idea, market
> share, or a contract. There is not an ounce of conscientiousness or
> compassion in him. The notion of fairness means nothing to him. The
> only thing he understands is leverage.”
>
> –Philippe Kahn
>
> I don't think it's any coincidence that Microsoft achieved dominance
> in the American market during the same period that bottled water
> became omnipresent. In both instances, clever marketing convinced
> the general public that something that was clean, safe and free was
> inferior to a product encased in plastic.
>
> _______________________________________________
> 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/20090802/cd409738/attachment.html
More information about the Qt-interest-old
mailing list