You are not logged in.

  • "salmanmanekia" is male
  • "salmanmanekia" started this thread

Posts: 85

Location: Finland

Occupation: Software Developement

  • Send private message

1

Thursday, May 15th 2008, 1:34pm

QT Open source with MinGW,How to succesfully Run it !!

Hi,
I am facing problem in compiling and running QT with MinGW

I have installed MinGW 3.2.0,QT Open source 4.4.0 and also set enviroments variable ....after that i restarted pc ....then i found the buid debug libraries and execute it.....then i apply configure command ....

To check things i make a folder named hello in 'C:\Qt\4.4.0\src\hello' folder,which contained file 'main.cpp' and i created a file named 'hello.pro' which has the following info

CONFIG += qt
SOURCES += main.cpp

then i worked as it was written in the qt document at trolltech site by issuing a command as qmake -o Makefile hello.pro and after that make...
the command prompt showed no output after the qmake command but after the make command it showed the following output(i am not sure if this is some unknown error statement or does it mean it was compile/build )

C:\Qt\4.4.0\src\hello>make
mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `C:/Qt/4.4.0/src/hello'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..
\include\QtCore" -I"..\..\include\QtCore" -I"..\..\include\QtGui" -I"..\..\inclu
de\QtGui" -I"..\..\include" -I"c:\Qt\4.4.0\include\ActiveQt" -I"tmp\moc\debug_sh
ared" -I"." -I"..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -Wl,-subsystem,windows -o debug\hello.exe tmp/obj/debug_shared/
main.o -L"c:\Qt\4.4.0\lib" -L"c:\Qt\4.4.0\lib" -lmingw32 -lqtmaind -lQtGuid4 -l
QtCored4
mingw32-make[1]: Leaving directory `C:/Qt/4.4.0/src/hello'
mingw32-make -f Makefile.Release all
mingw32-make[1]: Entering directory `C:/Qt/4.4.0/src/hello'
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS
_QMAIN -I"..\..\include\QtCore" -I"..\..\include\QtCore" -I"..\..\include\QtGui"
-I"..\..\include\QtGui" -I"..\..\include" -I"c:\Qt\4.4.0\include\ActiveQt" -I"t
mp\moc\release_shared" -I"." -I"..\..\mkspecs\win32-g++" -o tmp\obj\release_shar
ed\main.o main.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o release\hello.exe tmp/obj/rele
ase_shared/main.o -L"c:\Qt\4.4.0\lib" -L"c:\Qt\4.4.0\lib" -lmingw32 -lqtmain -l
QtGui4 -lQtCore4
mingw32-make[1]: Leaving directory `C:/Qt/4.4.0/src/hello'

in any case i am not sure how to run the program and if the above statement means any error than how it is possible to correct it !!..
sorry for such a big thread ...;-)

  • "salmanmanekia" is male
  • "salmanmanekia" started this thread

Posts: 85

Location: Finland

Occupation: Software Developement

  • Send private message

2

Friday, May 16th 2008, 8:40am

problem solved....i will try to message my way of installing this correctly ,soon...