Off to a bad start. Qt Creator installed today - not happy.



  • When I installed Qt earlier today, I selected the two msvc2010 compilers (which I don't have yet, I have 2008), and the minGW compiler. There was one error during installation:

    Error during installation process (qt.511.win32_mingw48.essentials):
    Running 'C:\Qt\5.1.1\mingw48_32\bin\qmake.exe' resulted in a crash.

    After reading a post about this error I clicked retry and the installation finished, just as the post said it would.

    Next I ran the example analog clock which work fine.
    Then I tried the Tutorial with the logo moving between the three rectangles. In following the tutorial I unchecked the two MSVC2010 compilers, leaving the minGW.

    EDIT:
    When I got to:

    1. Press Ctrl+R (or Cmd+R) to run the application.
      END EDIT

    but got this cryptic error:

    Microsoft Visual C++ Runtime Library

    Runtime Error!

    Program: ...esktop_Qt_5_1_1_MinGW_32bit-Debug\debug\Transitions2.exe

    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.

    Then I saw this note in the tutorial:
    Note: The QML types used in this example are also supported in Qt Quick 1. To create this example application for platforms that run Qt 4, select Qt Quick 1 Application (Built-in Types).

    So I tried again using "Qt Quick 1 Application (Built-in Types)".
    This then compiled and ran okay.
    Continuing with tutorial, when I got to the step:
    To use the states.png image in your application, you must copy it to the project directory (same subdirectory as the QML file) from the examples directory in the Qt installation directory. For example: C:\Qt\Qt5.0.1\5.0.1\msvc2010\examples\declarative\animation\states. The image appears in the Resources pane. You can also use any other image or a QML type, instead.

    The path didn't quite match but I did find the file and copied it to the correct directory using Windows Explorer.
    The default location I used during installation gave me:
    C:\Qt\5.1.1\mingw48_32\examples\declarative\animation\states
    Not:
    C:\Qt\Qt5.0.1\5.0.1\msvc2010\examples\declarative\animation\states
    (I understand the msvc2010 vs mingw48_32 in my case)

    But the file does not show in the "Resources pane". Actually I don't even see the "Resources pane" at this point in following the tutorial.

    Next it says:

    1. In the Projects view, double-click the main.qml file to open it in the code editor.
      Well its already open as shown in the previous screen shot in the tutorial, so double-clicking does nothing.

    Continuing on to step 5:

    1. In the Library view, Resources tab, select states.png and drag and drop it to the canvas.
      I eventually find the "Resources tab" in the Library View but the states.png file is not there.
      I also notice that the other tab (to the left of the Resource tab) is not "Items" but "QML Types".

    And since the file is not there I am stuck (and very frustrated from all the inconsistencies encountered along the way).

    So I am not pleased.
    What should I do?


  • Moderators

    Hi,

    [quote]I eventually find the “Resources tab” in the Library View but the states.png file is not there.[/quote]Where did you put states.png? The documentation says "you must copy it to the project directory (same subdirectory as the QML file)". This means <Root>\qml\Transitions (where <Root> is the folder that contains Transitions.pro and main.cpp)

    [quote]Then I saw this note in the tutorial:
    Note: The QML types used in this example are also supported in Qt Quick 1. To create this example application for platforms that run Qt 4, select Qt Quick 1 Application (Built-in Types).

    So I tried again using “Qt Quick 1 Application (Built-in Types)”.[/quote]Qt Quick 1 is deprecated. It is there simply to keep legacy code working. I highly recommend sticking to Qt Quick 2 instead for performance, richer features, and reliability.

    [quote]I also notice that the other tab (to the left of the Resource tab) is not “Items” but “QML Types”.[/quote]That sounds like the documentation for "Qt Creator 2.7":http://qt-project.org/doc/qtcreator-2.7/creator-qml-application.html. However, the version that comes bundled with Qt 5.1.1 is the newer Qt Creator 2.8.1 -- you can find the updated documentation at http://qt-project.org/doc/qtcreator-2.8/creator-qml-application.html

    [quote]There was one error during installation:

    Error during installation process (qt.511.win32_mingw48.essentials):
    Running ‘C:\Qt\5.1.1\mingw48_32\bin\qmake.exe’ resulted in a crash.[/quote]Yes, that needs fixing urgently. It's a known issue and the devs are working on it: https://bugreports.qt-project.org/browse/QTIFW-343

    [quote]In following the tutorial I unchecked the two MSVC2010 compilers, leaving the minGW. but got this cryptic error:

    Microsoft Visual C++ Runtime Library
    —————————————-
    Runtime Error!

    Program: …esktop_Qt_5_1_1_MinGW_32bit-Debug\debug\Transitions2.exe

    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application’s support team for more information.[/quote]This is a generic Windows error message that means "Your program crashed". We'll need more info about your system to diagnose the cause of the crash.

    Can you please tell us:

    • What was the last thing you did immediately before the crash happened?
    • What version of Windows are you running?
    • Do you have any other versions of MinGW in your system?
    • Do you have any compilers or Qt in your PATH?

    [quote]When I installed Qt earlier today, I selected the two msvc2010 compilers (which I don’t have yet, I have 2008), and the minGW compiler.[/quote]FYI: The Qt Project does not (cannot) supply MSVC compilers. Microsoft reserves the right to be the sole supplier of their compilers.

    Qt is a library, and libraries usually don't provide compilers. Qt makes an exception by providing the MinGW compiler.

    What you downloaded were the DLLs and headers for use with the specified compilers.

    [quote]The path didn’t quite match but I did find the file and copied it to the correct directory using Windows Explorer.
    The default location I used during installation gave me:
    C:\Qt\5.1.1\mingw48_32\examples\declarative\animation\states
    Not:
    C:\Qt\Qt5.0.1\5.0.1\msvc2010\examples\declarative\animation\states
    (I understand the msvc2010 vs mingw48_32 in my case)[/quote]There is a slight difference in default paths between the Online and Offline installers. You've used the Online installer, which needs to manage multiple Qt versions. In contrast, the the documentation refers to the default path for the Offline installer, which only manages 1 Qt version. That's why the paths differ.

    I agree that it would be nice to have identical defaults, but this hasn't really caused any issues before.



  • Thank you JKSH for your thorough response.

    I Edited my original post for clarification on where I got the second error (at step 7, running the "Hello world" program before modifying it), which is why I tried the "Qt Quick 1 Application (Built-in Types)", which then got me past that error.

    I put the states.png file in the same directory as the main.qml file as directed. That is: C:__Qt\Transitions\qml\Transitions. And it is listed in that directory when I click on the "File System" instead of "Library", but when "Library" is selected and the "Resources" tab is selected, there is a [ <Filter> ] (rectangle with rounded corners), and nothing else.

    I even tried dragging (as instructed) the states.png file listed in the "File System" selection, but it won't drag from there.

    So I'm still stuck.

    I did BTW try the next Tutorial "TextFinder" and it worked much better and ran correctly. So at least I am feeling encouraged to keep working at it. :-)



  • bq. Can you please tell us:
    What was the last thing you did immediately before the crash happened?
    What version of Windows are you running?
    Do you have any other versions of MinGW in your system?
    Do you have any compilers or Qt in your PATH?

    I did ctrl-R and it compiled and started to run, I got the App window on the screen, but the error is covering up the bottom half so I'm not sure if the "Hello World" is under that.

    I am using Windows XP Pro.

    No, I had never heard of MinGW before today's Qt download.

    I'm not sure what to put in my path. Is there a place in the Qt IDE to set the path?

    Ok, here is the compiler output:

    Starting C:__Qt\build-Tr-Desktop_Qt_5_1_1_MinGW_32bit-Debug\debug\Tr.exe...
    QML debugging is enabled. Only use this in a safe environment.
    getProcAddress: Unable to resolve 'glCreateProgram'
    getProcAddress: Unable to resolve 'glCreateProgramARB'
    getProcAddress: Unable to resolve 'glCreateProgramObject'

    <snip - it was too large and I couldn't post>

    getProcAddress: Unable to resolve 'glBindFramebufferEXT'
    ASSERT: "program->program()->isLinked()" in file scenegraph\coreapi\qsgdefaultrenderer.cpp, line 487
    C:__Qt\build-Tr-Desktop_Qt_5_1_1_MinGW_32bit-Debug\debug\Tr.exe exited with code 3


  • Moderators

    Hi,

    Sorry for late reply.

    [quote author="harveyab" date="1385805799"]I did BTW try the next Tutorial "TextFinder" and it worked much better and ran correctly. So at least I am feeling encouraged to keep working at it. :-)[/quote]Glad to hear. :) The problem you had with the Transitions example is related to using Qt Quick 1 -- Did you start a clean project using Qt Quick 2?

    [quote]I’m not sure what to put in my path. Is there a place in the Qt IDE to set the path?[/quote]No, don't put anything in PATH. I asked because it's a common source of errors. If you didn't add them, then it should be ok.

    [quote]getProcAddress: Unable to resolve....[/quote]The "getProcAddress" errors indicate that Qt can't find the appropriate OpenGL drivers. Qt requires OpenGL 2 or later. Do you have a graphics card with the latest drivers installed?


Log in to reply
 

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