Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Just started with Qt. Cannot compile anything.
Forum Updated to NodeBB v4.3 + New Features

Just started with Qt. Cannot compile anything.

Scheduled Pinned Locked Moved General and Desktop
8 Posts 5 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    over9000
    wrote on last edited by
    #1

    Download Qt for windows but cannot run anything (e.g. test code).

    Always says this:

    @mingw32-make.exe[1]: *** [debug/main.o] Error 1
    mingw32-make.exe: *** [debug] Error 2
    21:56:11: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
    Error while building project qtconsole (target: Qt Simulator)
    When executing build step 'Make'@

    Sorry if this is a stupid question!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      twsimpson
      wrote on last edited by
      #2

      More output is needed, there appears to be an error compiling the source code that should be higher up in the output.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        scroverty
        wrote on last edited by
        #3

        I suggest you should check if your target simulator is installed.

        Alvis Ar'Berkeley Andrew.
        Pleased to meet you!

        1 Reply Last reply
        0
        • O Offline
          O Offline
          over9000
          wrote on last edited by
          #4

          [quote author="Terence Simpson" date="1346189890"]More output is needed, there appears to be an error compiling the source code that should be higher up in the output.[/quote]

          @22:24:07: Running build steps for project QTTEST2...
          22:24:07: Starting: "c:\qtsdk\desktop\qt\4.8.1\mingw\bin\qmake.exe" C:\Users\tomh\QTTEST2\QTTEST2.pro -r -spec win32-g++ "CONFIG+=declarative_debug"
          22:24:07: The process "c:\qtsdk\desktop\qt\4.8.1\mingw\bin\qmake.exe" exited normally.
          22:24:07: Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe"
          C:/QtSDK/mingw/bin/mingw32-make.exe -f Makefile.Debug
          mingw32-make.exe[1]: Entering directory C:/Users/tomh/QTTEST2-build-desktop-Qt_4_8_1_for_Desktop_-_MinGW__Qt_SDK__Debug' c:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\uic.exe ..\QTTEST2\mainwindow.ui -o ui_mainwindow.h g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtCore" -I"..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\include\QtGui" -I"..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\include" -I"..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\include\ActiveQt" -I"debug" -I"." -I"..\QTTEST2" -I"." -I"..\..\..\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs\win32-g++" -o debug\main.o ..\QTTEST2\main.cpp mingw32-make.exe[1]: Leaving directory C:/Users/tomh/QTTEST2-build-desktop-Qt_4_8_1_for_Desktop_-_MinGW__Qt_SDK__Debug'
          mingw32-make.exe[1]: *** [debug/main.o] Error 1
          mingw32-make.exe: *** [debug] Error 2
          22:24:07: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
          Error while building project QTTEST2 (target: Desktop)
          When executing build step 'Make'@

          1 Reply Last reply
          0
          • O Offline
            O Offline
            over9000
            wrote on last edited by
            #5

            [quote author="A.A.B.A" date="1346190049"]I suggest you should check if your target simulator is installed.
            [/quote]

            How do I check this?

            1 Reply Last reply
            0
            • napajejenunedk0N Offline
              napajejenunedk0N Offline
              napajejenunedk0
              wrote on last edited by
              #6

              You are using a wrong build configuration, I presume.

              1. Open your project in Qt Creator.
              2. Go to "Projects" section on the left panel of Qt Creator and select the "Build Settings" tab.
              3. Click the "Add" to add a build configuration and choose a configuration from the list that mentions either MinGW or MSVC (Microsoft Visual C++ Compiler) in its name.

              To install Microsoft Visual C++ Compiler 2010 you should have either Microsoft Visual Studio 2010 or the latest "Windows 7 SDK":http://www.microsoft.com/en-us/download/details.aspx?id=8279

              To install GNU Compiler Collection (gcc) for Windows (MinGW for short), you should install QtSDK (not Qt library). QtSDK includes several version of Qt library. When installing QtSDK and select to install MinGW as well as Qt library 4.8.1 built using MSVC 2010 and Qt library 4.8.1 built using MinGW (the latter is selected by default).

              1 Reply Last reply
              0
              • O Offline
                O Offline
                over9000
                wrote on last edited by
                #7

                It still isn't working. Can someone please help?

                1 Reply Last reply
                0
                • U Offline
                  U Offline
                  utcenter
                  wrote on last edited by
                  #8

                  Hmmm, this is strange, for me the SDK has always worked out-of-the-box.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved