Results 1 to 9 of 9

Thread: problem with Qt/ Windows--pls help

  1. #1
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default problem with Qt/ Windows--pls help

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 975 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problem with Qt/ Windows--pls help

    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)?

  3. #3
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: problem with Qt/ Windows--pls help

    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.

  4. #4
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default installing qt-4.3.0-win.exe with mingw--pls help

    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

  5. #5
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    446
    Thanked 61 Times in 57 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problem with Qt/ Windows--pls help

    Make sure INCLUDE and LIB env vars do not contain paths to msvc include & library dirs and rerun qmake.

  6. #6
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    446
    Thanked 61 Times in 57 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: installing qt-4.3.0-win.exe with mingw--pls help

    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.

  7. #7
    Join Date
    Jan 2008
    Posts
    72
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Thumbs up Re: problem with Qt/ Windows--pls help

    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

  8. #8
    Join Date
    Apr 2008
    Location
    Fons Outre-Gardons
    Posts
    16
    Thanks
    2
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: problem with Qt/ Windows--pls help

    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

  9. #9
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: problem with Qt/ Windows--pls help

    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

Similar Threads

  1. Qt + Portmidi in Windows... libraries problem
    By hipogrito in forum Newbie
    Replies: 2
    Last Post: 19th June 2009, 00:01
  2. problem with menu entries for mdi windows
    By y.shan in forum Qt Programming
    Replies: 3
    Last Post: 18th September 2007, 07:48
  3. QTableView Performance Problem on Windows
    By umitoz in forum Qt Programming
    Replies: 1
    Last Post: 31st August 2007, 16:47
  4. Printing problem in windows
    By joseph in forum Qt Programming
    Replies: 6
    Last Post: 12th July 2007, 08:04
  5. Thread problem with windows
    By vratojr in forum Qt Programming
    Replies: 17
    Last Post: 16th June 2006, 08:34

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.