PDA

View Full Version : how to install qt in windows xp sp3



mohanakrishnan
26th October 2009, 13:00
Hi all
im new to qt ,i want to install qt with creator etc.,in windows i tried but unable to succedd
can any one tell me t he exact steps to download and install and i need to configure the qt application to connect with mysql .
i have tried and installed 4 or 5 times qt 4.5 (2009.1,2009.2,2009.4) but the problem is
if i type gcc -v in the qt command prompt it gives unrecognized command
same thing for make -v and qmake -v...

thanks and regards
mohanakrishnan

squidge
26th October 2009, 14:35
SET PATH=%PATH%;<QTDIR>\mingw\bin\

Replace <QTDIR> with where you installed Qt, for example: c:\qt\2009.03

But most people prefer to just use the QtCreator application which does this for you.

mohanakrishnan
26th October 2009, 14:39
thanks
i ll try it out now by setting the path...

ChrisW67
26th October 2009, 23:41
The bundled Qt SDK shell is set up:


Setting up a MinGW/Qt only environment...
-- QTDIR set to C:\Qt\2009.03\qt
-- PATH set to C:\Qt\2009.03\qt\bin
-- Adding C:\Qt\2009.03\bin to PATH
-- Adding C:\WINDOWS\System32 to PATH
-- QMAKESPEC set to win32-g++

C:\Qt\2009.03\qt>mingw32-make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-pc-mingw32

C:\Qt\2009.03\qt>gcc -v
Reading specs from C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --wi
th-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --dis
able-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --d
isable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --with
out-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enabl
e-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw-vista special r3)

C:\Qt\2009.03\qt>qmake -v
QMake version 2.01a
Using Qt version 4.5.2 in C:/Qt/2009.03/qt/lib

C:\Qt\2009.03\qt>
Notice that the make command is renamed, the others are not, and Qt Creator knows where to find them. The search path is probably broken if you cannot execute gcc or qmake. Start the "Qt Command Prompt" from the Windows Start menu and check that the path looks like:


Path=C:\Qt\2009.03\qt\bin;C:\Qt\2009.03\bin;C:\Qt\ 2009.03\mingw\bin;C:\WINDOWS\System32


If you are installing into a path that contains spaces then that may well be the cause of the problems you are experiencing. This is listed as a known problem of the Qt Creator/SDK.

mohanakrishnan
27th October 2009, 12:17
hi ChrisW67
thanks for ur reply i set the environment as u explained and now it is working
thanks a lot...
:D