Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Qt 5.0.2] Build problems
Forum Updated to NodeBB v4.3 + New Features

[Qt 5.0.2] Build problems

Scheduled Pinned Locked Moved Qt Creator and other tools
20 Posts 4 Posters 9.9k 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.
  • I Offline
    I Offline
    irobot
    wrote on last edited by
    #5

    This is my .pro file
    @
    #-------------------------------------------------

    Project created by QtCreator 2013-06-14T23:14:54

    #-------------------------------------------------

    QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = sans_titre
    TEMPLATE = app

    SOURCES += main.cpp
    mainwindow.cpp

    HEADERS += mainwindow.h

    FORMS += mainwindow.ui

    @

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #6

      -What OS are you on?- Just saw it is Windows 7.

      I have scanned all files on my Qt folder (it is Qt 4.8.4) for "MAKEFILE_GENERATOR". This is just a settings in mkspecs/*.conf files basically declaring the OS you are on. For most it simply states "UNIX".

      My guess is that there is a problem with the setup of Qt on your system. My recommendation is reinstall. Maybe someone else has a better idea.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • I Offline
        I Offline
        irobot
        wrote on last edited by
        #7

        Done but same problem

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #8

          What IDE are you using ?

          Did you try with the latest 5.1 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • C Offline
            C Offline
            code_fodder
            wrote on last edited by
            #9

            I just had thee very same errors when trying to build QtCreator 2.7.0 project when I entered the command qmake -r or somthing.

            What I did to resolve that issue was the following (not sure exactly which one cured it)

            1. Searched for where qmake was located (search your Qt install folder) and added that path to my %PATH%.

            2. Installed perl from: "perl":http://www.activestate.com/activeperl/downloads

            3. Installed GIT (I don't think you need to do this though).

            4. Finally (and I am also not sure you need this, but you do to build QtCreator) searched for "sh.exe" on my PC and checked if any of those locations were in my %PATH% and removed them.

            Probably step one is the most important I would think. Maybe you can just print your entire %PATH% variable to this post and we can take a look to see if there is anything obvious missing...

            Of course, this may or may not be your issue... but it looks really similar to mine.

            The other thing is: did you install Qt from the SDK (i.e. Qt SDK5.0.2) from here: "qt-sdk-5.0.2":http://qt-project.org/downloads
            ?

            that would be the easiest way to get the whole package up and running (and un-install anything you had before...

            1 Reply Last reply
            0
            • C Offline
              C Offline
              code_fodder
              wrote on last edited by
              #10

              update: Actually I just noticed that I don't think Qt/Qt SDK add themselves to your PATH variable, I think they setup their paths "on the fly". So just note that : ) - if you do add this to your path and it works, then I would not recommend leaving it like that incase there are some conflicts with other programs. If that is the problem then there is more an issue with your "local" paths when running Qt/QMake...

              1 Reply Last reply
              0
              • I Offline
                I Offline
                irobot
                wrote on last edited by
                #11

                @SGalst I am using Qt Creator and Mingw and I didn't already try Qt 5.1 because I could face the same problem.
                @code_fodder Yes

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  irobot
                  wrote on last edited by
                  #12

                  I don't know if it can be the problem origin: I also have Qt 4.8.1 installed in C harddisk and I want to install Qt 5.0.2 in E. Is it a problem?
                  Another thing is in Options > Build and run>Qt Version under the Autodetected block I have " ! Qt 5.0.2 MinGW 32bit E:\Qt\5.0.2\mingw47_32\bin\qmake.exe". If you have not noticed, I have an exclamation mark before Qt 5.0.2 and the MinGW is 32 bits is it a problem because I am on Windows 7 64 bits?
                  Thanks to all.

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    koahnig
                    wrote on last edited by
                    #13

                    [quote author="irobot" date="1371914695"]If you have not noticed, I have an exclamation mark before Qt 5.0.2 and the MinGW is 32 bits is it a problem because I am on Windows 7 64 bits?
                    [/quote]
                    No problem using MinGW 32 bit version on Windows 64 bit. I have installed MinGW 4.6.2 32 bit on windows 7 64 bit without problems.

                    [quote author="irobot" date="1371914695"]
                    Another thing is in Options > Build and run>Qt Version under the Autodetected block I have " ! Qt 5.0.2 MinGW 32bit E:\Qt\5.0.2\mingw47_32\bin\qmake.exe". If you have not noticed, I have an exclamation mark before Qt 5.0.2.
                    [/quote]
                    The exclamation mark is probably displayed as an icon. IIRC it should give some explanations when you click on it.

                    Vote the answer(s) that helped you to solve your issue(s)

                    1 Reply Last reply
                    0
                    • I Offline
                      I Offline
                      irobot
                      wrote on last edited by
                      #14

                      No it's the yellow one not the red.

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #15

                        Anyway, it should give you an hint on what is wrong when clicking on it. If not, ensure that the details panel is hidden.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • I Offline
                          I Offline
                          irobot
                          wrote on last edited by
                          #16

                          Version name: Qt 5.0.2 MingW 32bit
                          qmake location : C:\Qt\Qt5.0.2\5.0.2\mingw47_32\bin\qmake.exe
                          qmlscene not installed
                          qmlviewer not installed

                          When I use the Qt 5.0.2 for Desktop prompt, I have :

                          @
                          Setting up environment for Qt usage...

                          C:\Qt\Qt5.0.2\5.0.2\mingw47_32>cd E:\tepan2\Qt project\2

                          C:\Qt\Qt5.0.2\5.0.2\mingw47_32>E:

                          E:\tepan2\Qt project\2>qmake -project

                          E:\tepan2\Qt project\2>mingw32-make
                          mingw32-make: *** No targets specified and no makefile found. Stop.

                          E:\tepan2\Qt project\2>qmake -d
                          DEBUG 1: Resetting dir to: E:\tepan2\Qt project\2
                          DEBUG 1: Changing dir to: E:\tepan2\Qt project\2
                          DEBUG 1: visiting file C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/spec_pre.
                          prf
                          DEBUG 1: C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/spec_pre.prf: entering
                          block
                          DEBUG 1: C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/spec_pre.prf: leaving b
                          lock, okey=true
                          DEBUG 1: done visiting file C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/spec
                          _pre.prf
                          DEBUG 1: visiting file C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/win32-g++/qmake.co
                          nf
                          DEBUG 1: C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/win32-g++/qmake.conf: entering b
                          lock
                          DEBUG 1: C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/win32-g++/qmake.conf: leaving bl
                          ock, okey=true
                          DEBUG 1: done visiting file C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/win32-g++/qma
                          ke.conf
                          DEBUG 1: visiting file C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/spec_post
                          .prf
                          DEBUG 1: C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/spec_post.prf: entering
                          block
                          DEBUG 1: C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/spec_post.prf: leaving
                          block, okey=true
                          DEBUG 1: done visiting file C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/spec
                          _post.prf
                          DEBUG 1: visiting file C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/default_p
                          re.prf
                          DEBUG 1: C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/default_pre.prf: enteri
                          ng block
                          DEBUG 1: C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/default_pre.prf: leavin
                          g block, okey=true
                          DEBUG 1: done visiting file C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/defa
                          ult_pre.prf
                          DEBUG 1: visiting file E:/tepan2/Qt project/2/2.pro
                          DEBUG 1: E:/tepan2/Qt project/2/2.pro: entering block
                          DEBUG 1: E:/tepan2/Qt project/2/2.pro:5: TEMPLATE := subdirs
                          DEBUG 1: E:/tepan2/Qt project/2/2.pro:8: SUBDIRS := 2.pro sans_titre
                          DEBUG 1: E:/tepan2/Qt project/2/2.pro:8: leaving block, okey=true
                          DEBUG 1: done visiting file E:/tepan2/Qt project/2/2.pro
                          DEBUG 1: visiting file C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/default_p
                          ost.prf
                          DEBUG 1: C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/default_post.prf: enter
                          ing block
                          DEBUG 1: C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/default_post.prf: leavi
                          ng block, okey=true
                          DEBUG 1: done visiting file C:/Qt/Qt5.0.2/5.0.2/mingw47_32/mkspecs/features/defa
                          ult_post.prf
                          MAKEFILE_GENERATOR variable not set as a result of parsing : 2.pro. Possibly qma
                          ke was not able to find files included using "include(..)" - enable qmake debugg
                          ing to investigate more.

                          E:\tepan2\Qt project\2>
                          @

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #17

                            Without the information provided when clicking on the exclamation mark icon, there's only the crystal ball solution or try to install your Qt on the C drive.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • I Offline
                              I Offline
                              irobot
                              wrote on last edited by
                              #18

                              Sorry I said it in my last post:
                              @
                              Version name: Qt 5.0.2 MingW 32bit
                              qmake location : C:\Qt\Qt5.0.2\5.0.2\mingw47_32\bin\qmake.exe
                              qmlscene not installed
                              qmlviewer not installed
                              @
                              And I already install it on my C drive.

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #19

                                When I first read your last post it said "Other solutions ?"

                                Anyway, unless you're doing qml projects, they are not vital to the development. Can you move your projects in a folder path without any spaces ?

                                There have always been problems with handling spaces in path.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                0
                                • I Offline
                                  I Offline
                                  irobot
                                  wrote on last edited by
                                  #20

                                  I moved it. Same problem.

                                  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