Problem with Qt Creator



  • Hi,

    I have some strange problem with Qt Creator. I just installed on my Windows 7 (32 bit) :

    • Qt 5.0.1 for Windows 32-bit (MinGW 4.7, 823 MB) .
      Everything was fine during installation but after that when i try to open Qt Creator - nothing happens (no errors). I have tried to reinstall program and reboot my system but have been unsuccessful.
      What would be wrong? Do you know the reason why it doesn't work?

    Please help me because i need this program to study.



  • I presume by "nothing happens" you mean no window appears? Have you checked the process list (Start Task Manager) to see if the creator process is running? If it is, kill it (all instances, if several) and then try starting Creator from a cmd.exe shell; you should be able to see any messages Creator writes out.
    HTH, Ruth



  • Sorry, my bad. You are right, I mean no window appears. I checked the procees list and it's look like the process qtcreator.exe is running but after 10 seconds is killing by himself (I quess). I tried to running qt from cmd.exe as you told but everything looks the same. Is there any solution to run the program form cmd shell with some kind of output or logs?



  • I am not a Creator expert so I can't offer any specific assistance.

    Possibly a debugger might help, but a simple tool I find useful is Process Monitor (microsoft download) which can be set to log every interaction a process has with the OS; sometimes this can give a clue as to what is going wrong.


  • Moderators

    Do you have other installations of Qt libs on your computer?
    Or is the Qt 5.0.1 SDK as you installed the only Qt installation?

    I am moving your thread to tools, since it is apparently Qt creator related problem.



  • No, I don't. It's my first installations of Qt on this computer. In fact OS is very clean because I did reinstall of Win7 few days ago. Beside Qt libs I have Visual Studio Ultimate 2012 on the computer. Is it could be the problem?

    rivimey - Thank you, this is very useful program. But I'm not sure what this all informations means. I checked this process and for me everything looks good.

    EDIT : I installed just Qt Creator 2.6.2 for Windows and it's works! In settings I added patch to Libs Qt and MinGW but now I have a error compiling. Let's take a look :

    @
    D:/Qt/Qt5.0.1/Tools/MinGW/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'D:/Qt/Hello2/Hi2-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug'
    g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -DQT_NEEDS_QMAIN -I../Hi2 -I'../../Qt5.0.1/5.0.1/mingw47_32/include' -I'../../Qt5.0.1/5.0.1/mingw47_32/include/QtWidgets' -I'../../Qt5.0.1/5.0.1/mingw47_32/include/QtGui' -I'../../Qt5.0.1/5.0.1/mingw47_32/include/QtCore' -I'debug' -I'.' -I'.' -I'../../Qt5.0.1/5.0.1/mingw47_32/mkspecs/win32-g++' -o debug/main.o ../Hi2/main.cpp
    Makefile.Debug:357: recipe for target 'debug/main.o' failed
    mingw32-make[1]: Leaving directory 'D:/Qt/Hello2/Hi2-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug'
    makefile:34: recipe for target 'debug' failed
    mingw32-make[1]: *** [debug/main.o] Error 1
    mingw32-make: *** [debug] Error 2
    20:15:07: The process "D:\Qt\Qt5.0.1\Tools\MinGW\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project Hi2 (kit: Desktop Qt 5.0.1 MinGW 32bit)
    When executing step 'Make'
    @

    Any ideas what's now could be wrong?


  • Moderators

    Good to know that you could move at least a step by installing Qt creator separately once again. However, you seem to have a really bad start with Qt.

    The installation of MS Visual Studio in parallel should not any issues. I have msvc 2005 installed in parallel to Qt creator. The main issue that you have to keep all the different compilation separate. You cannot mix the compilations of different compilers and even versions of them. That was also the reason for my question. I suspected an eventual conflict with an earlier installation.

    One thing you should note is that you can handle different compilers (eg. MinGW and also msvc compilers) in parallel with the same installation of Qt creator. For some it is a bit confusing that Qt creator is using Qt libs/dlls as well. Those may be a complete different version from what you are intending to use in your applications. You can check the version Qt creator is compiled against on "Help"->"About Creator". I think Qt creator 2.6.2 is compiled (based) against Qt 4.8.4.

    Coming to your compile error you have posted. It looks to me that the tool chains are not setup correctly. Go in the creator to "Tools"->"Options" a window should open. It lists on the left the different options you can change here. Goto "Build&Run" and select the tab "Kits". Are there some automatically selected kits? Otherwise you have to manually select one, which should be the Qt 5.0.1 you have installed with the sdk.
    You have to also the tabs "Qt versions" and "Compilers". The last one "Compilers" has probably detected your msvc2012 installation and may list this in the menu. More important at the moment is that it has your MinGW compiler also listed.



  • First of all thanks for your time! Secondly this is what i have got in "Options". In tab "Qt Version" I have only Qt 5.0.1 (mingw47_32) (patch is D:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin\qmake.exe) selected by me because Qt Creator didn't found nothing automatically. In tab "Compilers" i have got as you told. Automatically detected compiler MSVS and another one MinGW (patch is: D:\Qt\Qt5.0.1\Tools\MinGW\bin\gcc.exe) which is selected by me.
    I checked Qt Creator version in Help-About Qt Creator and you were right 2.6.2 is based on Qt 4.8.3. Is it wrong for me? Because for now i'm trying to use libs Qt 5.0.1.

    In tab "Kits" was empty so I added one. This is how it looks: "Kits - Window":http://img15.imageshack.us/img15/7637/41881278.jpg


  • Moderators

    The above error message you have received when you had already setup your kit?

    One thing you might try is rerunning qmake. Go onto the project on the left side of creator and do a right mouse click. Select "Run qmake" in the dialog. When successful, do a rebuild as well.

    I am not sure how you have setup your small project. Typically, if you have one of the templates, everything should be alright. You might want to start with the fresh console project.



  • Yes, that's right. I did what you said but I have still the same error. I really don't know what's going on with it. The project which I tried to run is just "Hello World" or empty Qt GUI Application. Any ideas?


  • Moderators

    [quote author="LooQ" date="1363714362"]
    I checked Qt Creator version in Help-About Qt Creator and you were right 2.6.2 is based on Qt 4.8.3. Is it wrong for me? Because for now i'm trying to use libs Qt 5.0.1.
    [/quote]
    Just saw this.
    No, that is no problem. Qt creator is also an application based on Qt. In your case Qt 4.8.3. You can use it with any version for building applications. Even pretty old versions you could handle and also the up-coming versions. So you can definitely use it with Qt 5.0.1 and later.

    Sorry, at the moment I am running out of ideas.

    I am wondering a bit about your makefile. The error occurs at line 357 of MakeFile.debug. This is quite big for a simple hello world program. I have just checked. For a small program with 8 source files and the same number of header files, my makefile.debug has less than 170 lines.
    You have only one source file with a hello world program. So it should be smaller.

    Please post Makefile.debug. I am not optimistic, but may I can see something.



  • So, my new empty program Qt GUI Application has 481 lines. Let's take a look maybe you will find something wrong : "Makefile.debug":http://mysticpaste.com/view/QjlpMjIqyC?2
    Anyway, thanks!


  • Moderators

    Well, the answer why your makefile.debug is so long is easy.
    qmake includes all required Qt headers as if your source is dependent on changes there. This makes sense when you are changing Qt itself, because the headers might change and the dependent application modules have to be recompiled. However, I have never changed Qt headers since I have started with Qt (maybe version 4.2 or so).
    This behavior blows up the makefile, but is not required for standard users. Must be a leftover of the recent introduction of Qt 5. While bringing it on its way, the Qt developers were changing the headers and so it was required. In general, this should not cause the problems you have.

    Checking the compile command and flags, those make sense to me. I did not see major differences when comparing to an empty QApplication project based on Qt4.8.4.

    As indicated above, I am not using Qt 5 yet. However, I assume that this might be an issue of Qt creator setup on Windows 7 32 bit, but i am out of ideas.

    I am trying to trigger one more knowledgable on Qt creator setup.


  • Moderators

    I never heard anybody running into creator not starting yet.

    Do you have other mingw installed in addition to the one from Qt? Having two mingw in the PATH can cause trouble on windows.



  • No I don't. As I told I have only one mingw and VS 2012 on this computer. Btw. This computer is hmm pretty old I mean my processor is AMD Athlon XP 3000. Is it could be the problem with compatibility with Qt 5.0.1 ?


  • Moderators

    I don't think so. Creator takes quite a lot of resources when parsing/searching code, but not to start up.


  • Moderators

    [quote author="LooQ" date="1363628925"]
    EDIT : I installed just Qt Creator 2.6.2 for Windows and it's works! In settings I added patch to Libs Qt and MinGW but now I have a error compiling. Let's take a look :

    @
    D:/Qt/Qt5.0.1/Tools/MinGW/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'D:/Qt/Hello2/Hi2-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug'
    g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -DQT_NEEDS_QMAIN -I../Hi2 -I'../../Qt5.0.1/5.0.1/mingw47_32/include' -I'../../Qt5.0.1/5.0.1/mingw47_32/include/QtWidgets' -I'../../Qt5.0.1/5.0.1/mingw47_32/include/QtGui' -I'../../Qt5.0.1/5.0.1/mingw47_32/include/QtCore' -I'debug' -I'.' -I'.' -I'../../Qt5.0.1/5.0.1/mingw47_32/mkspecs/win32-g++' -o debug/main.o ../Hi2/main.cpp
    Makefile.Debug:357: recipe for target 'debug/main.o' failed
    mingw32-make[1]: Leaving directory 'D:/Qt/Hello2/Hi2-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug'
    makefile:34: recipe for target 'debug' failed
    mingw32-make[1]: *** [debug/main.o] Error 1
    mingw32-make: *** [debug] Error 2
    20:15:07: The process "D:\Qt\Qt5.0.1\Tools\MinGW\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project Hi2 (kit: Desktop Qt 5.0.1 MinGW 32bit)
    When executing step 'Make'
    @

    Any ideas what's now could be wrong?[/quote]
    at Tobias The startup issue has been solved by LooQ through additional and reinstallation of Qt creator.
    However, the next strange thing had popped up.


  • Moderators

    koahnig: I read that, I just do not know enough about windows to analyze this.


  • Moderators

    at Tobias: Sorry, I thought you have skipped while browsing.

    The error message does not make sense to me either. It reads like a mingw32-make problem.

    at LooQ:
    It looks we are running out of options.

    This is now more wild guessing than sound information. As you stated your HW is a bit "antique" I have no glue if there is an incompatibility with mingw on your HW. However, we could do a short test.
    open "cmd.exe" (the DOS prompt).
    Type
    @
    g++ --version
    @
    it might tell you already the version of the compiler. Which means that the bin folder is part of your path setting. make a path setting with
    @
    set path=D:/Qt/Qt5.0.1/Tools/MinGW/bin
    @
    you can check the version again.

    create a folder and navigate with the dos prompt to the folder. Create a file called main.cpp with content:
    @
    #include <iostream>

    using namespace std;

    int main()
    {
    cout << "Hello World!" << endl;
    return 0;
    }
    @

    You should be able to compile with following command:
    @
    g++ main.cpp
    @
    If successful there should be an exe called a.exe and it should write the string.

    Finally let see, if there is really a problem with mingw32-make.
    You can start this with:
    @
    mingw32-make main
    @
    It should generate now a main.exe which should work as well.

    Again, this is wild guessing.



  • You are right, something is wrong with MinGW. When I open cmd shell and go to D:/Qt/Qt5.0.1/Tools/MinGW/bin, then I can check version of g++ and it shows me :
    @g++ (Built by MinGW-builds project) 4.7.2 ... etc.@

    And it seems to be good but when I tried to do step by step what you wrote - somethings goes wrong. I created simple "Hello World" program in D:/Qt/Qt5.0.1/Tools/MinGW/bin, and when I tried to run :
    @g++ main.cpp@

    Error window appears saying:
    @"Program cc1plus.exe has stopped working. Windows is checking solution ..... " @

    So this is not just wild guessing, something is wrong with it. I checked on my friend's computer and I did exactly the same steps and it works perfectly. In last step I had main.exe.

    This could be the solution for my problem. Now how can I fix it?


  • Moderators

    Interesting ! ? ! :-(

    It may be

    • the HW
    • the compiler with your HW
    • the installation
      Probably one can continue the list with more guesses.

    Personally I would reinstall Qt SDK again. However, you have done that already at the beginning.
    You could just reinstall MinGW4.7.2, but you may pick up some incompatibilities, if the compile models are not the same.

    You could use your msvc2012 setup. However, this requires a complete build of Qt 5.0.1 because a pre-build with msvc2012 is not available. On an old machine this might take quite a bit of time. On more recent HW it takes typically a couple of hours to compile.
    Compilation with msvc2012 had some issues. I am not sure if those are solved. You need to browse through this forum to find out.

    You could download a previous version of MinGW (eg. 4.6.2) and check, if the compiler does work. However, you need to recompile Qt yourself.

    You could revert to Qt4.8.4 and its prebuild for MinGW. The prebuild is based on MinGW 4.4 which is a pretty old version. This might help in case of an exotic issue based on combination new MinGW compilers with your old HW. However, you to check this forum where to download the MinGW compiler. It is no longer downloadable as an official MinGW distribution. However, that is managable. At least it would save yourself the compilation of complete Qt libs.

    There might be more options. However, it is hard to know, which one will succeed.

    Certainly new HW would help to circumvent all this.

    It is all your choice.



  • The Athlon XP doesn't have the sse2 instruction set. Could this be the problem? Is Qt Creator being compiled with sse2 instructions included, which would then fail as an executable on Athlon XPs, Penium III and some Celerons?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.