Results 1 to 4 of 4

Thread: Error in creating helloworld project with Qt creator

  1. #1
    Join Date
    Apr 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Error in creating helloworld project with Qt creator

    I am a newbie in c++ and qt

    I downloaded qt-sdk-win-opensource-2009.01.1 and the use QtCreator created a empty Console App,when i compiled it,it outputed this:


    Running build steps for project HelloMyQt...
    Creating gdb macros library...
    Starting: D:/Qt/200901/qt/bin/qmake.exe D:/Qt/Project/HelloMyQt/HelloMyQt.pro -spec win32-g++ -r CONFIG+=debug_and_release
    Exited with code 0.
    Starting: D:/Qt/200901/mingw/bin/mingw32-make.exe debug -w
    mingw32-make: Entering directory `D:/Qt/Project/HelloMyQt'
    D:/Qt/200901/mingw/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `D:/Qt/Project/HelloMyQt'
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\200901\qt\include\QtCore" -I"..\..\200901\qt\include" -I"..\..\200901\qt\include\ActiveQt" -I"debug" -I"." -I"..\..\200901\qt\mkspecs\win32-g++" -o debug\main.o main.cpp
    mingw32-make[1]: Leaving directory `D:/Qt/Project/HelloMyQt'
    mingw32-make: Leaving directory `D:/Qt/Project/HelloMyQt'

    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
    mingw32-make[1]: *** [debug/main.o] Error 3
    mingw32-make: *** [debug] Error 2
    Exited with code 2.
    Error while building project HelloMyQt
    When executing build step 'Make'


    My system enviroment is like this:
    CLASSPATH:.;D:\Program Files\StormII\Codec\QTSystem\QTJava.zip

    PATH:d:\Qt\200901\mingw\bin;d:\Qt\200901\qt\bin;d: \oracle\product\10.2.0\client_1\bin;C:\Perl\site\b in;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\W INDOWS\System32\Wbem;c:\program files\borland\StarTeam SDK 2005 R2\Lib;c:\program files\borland\StarTeam SDK 2005 R2\Bin;c:\program files\borland\StarTeam SDK 2005\Lib;c:\program files\borland\StarTeam SDK 2005\Bin;C:\WINDOWS\Microsoft.NET\Framework\v2.0.5 0727;C:\Program Files\CodeSmith\v4.0\;C:\Program Files\Common Files\Compuware;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;D:\Prog ram Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\WINDOWS\syst em32\WindowsPowerShell\v1.0;D:\Program Files\StormII\Codec\QTSystem\;D:\Program Files\TortoiseSVN\bin
    QTDIR:d:/Qt/200901/qt

    Please help me

  2. #2
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Error in creating helloworld project with Qt creator

    Did you just create a sample project and compiled it? Or did you change anything in it? It would be helpful if you posted the code you created, so we could try to understand what's going on...

  3. #3
    Join Date
    Nov 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Error in creating helloworld project with Qt creator

    I have got a similar problem when first time using qt.
    make: *** [HelloWorld] Error 1
    Exited with code 2.
    Error while building project HelloWorld
    When executing build step 'Make'

    I created a qt application and just added a button on a main window form. Tried to compile but failed at this stage. I just wonder if anyone could give me some hints on this error. I'm also assuming it could be the problem with the directory permission, so i did a chmod 777 for the directory. still wouldn't compile. I also tried the sample codes that comes with QT, it seems this doesn't work either and same error message at compiling stage too.

    Eddie

  4. #4
    Join Date
    Oct 2009
    Posts
    151
    Thanks
    6
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Error in creating helloworld project with Qt creator

    As far as I am aware the error message highlighted in red appears when there is an incompatibility with MS Visual Studio (the Msvcrt.dll file in particular) and another application.

    A visit to the MS update site may cure this.

Similar Threads

  1. Replies: 2
    Last Post: 11th July 2006, 14:19
  2. Creating project in designer
    By safknw in forum Qt Tools
    Replies: 3
    Last Post: 10th May 2006, 14:11
  3. Compilation error creating a project on QT4.0.1??
    By darpan in forum Qt Programming
    Replies: 6
    Last Post: 8th March 2006, 08:16

Tags for this Thread

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.