PDA

View Full Version : problem with Qt/ Windows--pls help



swamyonline
26th June 2008, 21:21
hi ppl,
this issue may be posted earlier in this forum, but i could not find any, rather i might hv not searched properly.
the problem is:

i hv downloaded qt-win-opensource-4.3.0-mingw.exe onto my windows machine. it asked for an option of downloading mingw. the installation itself downloaded mingw. after installing, i set environment varialble c:\qt\4.3\bin and c:\mingw\bin. i wrote one hello.cpp file and tried to use mingw32-make..but i could not succeed.. its saying mingw32-make is not an external or internal command.. can anybody pls suggest me the whole process of installing and building applications in qt on windows.. i hv been using qt on linux. i hv to make all my qt based linux applications compile and run on windows platform..pls help me.. ur suggestions r highly valuable. thanks in advance.

jacek
26th June 2008, 22:57
Do you use the "Qt command prompt" (there's a link in Start menu in the same place as links to Qt Designer and other Qt tools)?

swamyonline
5th July 2008, 23:02
thanks jecek for ur reply.
i tried with it, but still the problem persists. im mentioning the details here, pls hv a look at it

1. after i entered into qt command prompt the following msg appeared:

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

2. i wrote hello.cpp and did "qmake -project;qmake;make", but it gave this error:

"C:\Qt\4.3.0\swamy\hello>make
mingw32-make -f Makefile.Release
Makefile.Release:116: *** multiple target patterns. Stop.
mingw32-make[1]: Entering directory `C:/Qt/4.3.0/swamy/hello'
mingw32-make[1]: Leaving directory `C:/Qt/4.3.0/swamy/hello'
mingw32-make: *** [release] Error 2"


I compiled qt-4.3.0 and mingw and configured qt like this:

c:\qt\4.3.0\configure.exe -platform win32-g++


what went wrong..pls suggest and help...thank u.

swamyonline
6th July 2008, 22:41
hi ppl,
im facing strange problem installing qt-4.3.0 on windows xp. i downloaded qt-win-opensource-4.3.0-mingw.exe and tried to install it. it downloaded mingw automatically while installing it. both got intalled.
i did the following after that.

C:\Qt\4.3.0\configure -platform win32-g++

and i got this following error:

C:\Qt\4.3.0>mingw32-make
cd src\winmain\ && mingw32-make -f Makefile
mingw32-make[1]: Entering directory `C:/Qt/4.3.0/src/winmain'
mingw32-make -f Makefile.Debug all
Makefile.Debug:116: *** multiple target patterns. Stop.
mingw32-make[2]: Entering directory `C:/Qt/4.3.0/src/winmain'
mingw32-make[2]: Leaving directory `C:/Qt/4.3.0/src/winmain'
mingw32-make[1]: *** [debug-all] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.3.0/src/winmain'
mingw32-make: *** [sub-winmain-make_default-ordered] Error 2

pls suggest the solution for this problem. thanks in advance. bye

ChristianEhrlicher
7th July 2008, 06:46
Make sure INCLUDE and LIB env vars do not contain paths to msvc include & library dirs and rerun qmake.

ChristianEhrlicher
7th July 2008, 06:47
Mae sure INCLUDE and LIB environment variables do not contains paths to msvc includes and libraries. Also make sure to not have cygwin or msys in your PATH env var. Then rerun qmake.

MrShahi
7th July 2008, 07:50
This is only problem of the path .
Properly set the PATH which is specify in Qt command prompt into Environment variables.....;)
I hope it will help you

Potch
7th July 2008, 19:32
Did you included these elements into your path?

C:\MinGW\bin;C:\MinGW\libexec\gcc\mingw32\3.4.2;C: \MinGW\lib;C:\MinGW\include

swamyonline
7th July 2008, 20:39
thanks guys,,,

yes, i came to know abt that mvc variables in the include and lib path last night. and finally, what i tried is using plain zipped version of qt-4.3.0 (not min-exe version). i got it right in compilation, i hv not exected any qt programs yet..but im sure it will be thru. thank u very much for ur suggestions..
bye