Results 1 to 2 of 2

Thread: Examples not compiling - I suspect PATH issues - need help

  1. #1
    Join Date
    Oct 2010
    Posts
    1

    Default Examples not compiling - I suspect PATH issues - need help

    I am learning C++ and am having newbie growing pains. My system is Win 7 64 bit. I installed MinGW the other day and manually added C:\MinGW;C:\MinGW\bin to the PATH in Environment Variables and successfully compiled a few hello world type simple C++ projects.

    Today I installed Qt Creator for windows (open source). The installer includes it's own version of MinGW. Perhaps there are inevitable conflicts somehow with what I had set up the day before.

    When I inspect the Environment Variables Path's I do not see any entries to c:\Qt.. which I expected the windows installer to do.


    I have tried several attempts to compile something in Qt Creator with different projects and get the exact same errors - so I know the problem is something basically wrong with my setup. Below is the most recent attempt.

    I have attached a screen shot of the Build setting. Of note is the build directory is is a red font.



    When I try to compile sample code from within Qt Creator I get an error
    Build Issue: :: error: [debug-all] Error -1073741790

    Compile Output:
    Running build steps for project stickman...
    Starting: "c:/qt/2010.05/qt/bin/qmake.exe" C:/Qt/2010.05/qt/examples/animation/stickman/stickman.pro -r -spec win32-g++
    The process "c:/qt/2010.05/qt/bin/qmake.exe" exited normally.
    Starting: "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" -w
    mingw32-make: Entering directory `C:/Qt/2010.05/qt/examples/animation/stickman-build-desktop'

    C:/Qt/2010.05/mingw/bin/mingw32-make -f Makefile.Debug all

    mingw32-make[1]: Entering directory `C:/Qt/2010.05/qt/examples/animation/stickman-build-desktop'

    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\QtGui" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\stickman" -I"." -I"..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o ..\stickman\main.cpp

    mingw32-make: Leaving directory `C:/Qt/2010.05/qt/examples/animation/stickman-build-desktop'

    mingw32-make: *** [debug-all] Error -1073741790

    The process "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" exited with code %2.
    Error while building project stickman (target: Desktop)
    When executing build step 'Make'



    I suspect there is some confusion related to having 2 installations of MinGW but I am not sure that is the problem and am not sure how to proceed. Any help would be appreciated.
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Examples not compiling - I suspect PATH issues - need help

    You probably have a conflict with a virus killer / firewall / indexing service / ... whatever takes your files hostage.

    Only the directory where qmake is located needs to be known. But that's not even necessary. If you look at the compile output you see it finds qmake without a problem and it even uses the mingw tools that come with the SDK. QMake usually takes care of everything.

    There's no problem compiling the source. There is a problem writing to some files.
    Last edited by tbscope; 3rd October 2010 at 18:45.

Similar Threads

  1. Network examples are nto compiling
    By pakkko in forum Qt Programming
    Replies: 0
    Last Post: 3rd August 2010, 15:16
  2. Replies: 0
    Last Post: 28th April 2010, 02:22
  3. Problem compiling Qt4.4.0 with mingw-static in examples/webkit
    By KjellKod in forum Installation and Deployment
    Replies: 2
    Last Post: 10th July 2008, 13:32
  4. Problem cross compiling examples/demo on mips.Qmake/Linking?
    By Cursedbeasty in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 5th July 2007, 10:53
  5. issues compiling Qt4.1 with mysql
    By patcito in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2006, 22:41

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
  •  
Qt is a trademark of The Qt Company.