Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Static Build of Qt 5.11.3 with MSVC 2017. Qt apps work fine, but QML apps crash.
Forum Updated to NodeBB v4.3 + New Features

Static Build of Qt 5.11.3 with MSVC 2017. Qt apps work fine, but QML apps crash.

Scheduled Pinned Locked Moved Solved QML and Qt Quick
7 Posts 2 Posters 1.0k Views
  • 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.
  • Nikhilesh NN Offline
    Nikhilesh NN Offline
    Nikhilesh N
    wrote on last edited by Nikhilesh N
    #1

    Greetings. I have built Qt Static, with

    -platform win32-msvc2017
    

    as an argument in the configure command. I configured the static Qt's kit via Qt Creator. As the title suggests, my Qt applications run successfully with this kit. But my only issue is with QML Applications.

    When I run an application, it either exits with code 255, or reports that it has crashed. To be sure my QML application is fine, I ran it with MinGW compiler, and it executes as it should. But with this static Qt kit, it does not even enter the main() function, forget even the first statement of main().

    Has anyone encountered this problem too? If so, please suggest a solution if there is one.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Can you try running the build from command prompt ?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      1
      • Nikhilesh NN Offline
        Nikhilesh NN Offline
        Nikhilesh N
        wrote on last edited by Nikhilesh N
        #3

        Okay. So, does this mean I must run qmake and nmake via command prompt, just like how I've built the Qt submodules?

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          yes, try building like that. Sometimes building Qt creator with static build gives problem. Not sure why. Try all the build instructions from command prompt. Before building ensure that you run vcvarsall.bat x86 from your visual studio installation directory.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          Nikhilesh NN 1 Reply Last reply
          1
          • Nikhilesh NN Offline
            Nikhilesh NN Offline
            Nikhilesh N
            wrote on last edited by
            #5

            Thank you. Will try the build and update you.

            1 Reply Last reply
            0
            • dheerendraD dheerendra

              yes, try building like that. Sometimes building Qt creator with static build gives problem. Not sure why. Try all the build instructions from command prompt. Before building ensure that you run vcvarsall.bat x86 from your visual studio installation directory.

              Nikhilesh NN Offline
              Nikhilesh NN Offline
              Nikhilesh N
              wrote on last edited by
              #6

              @dheerendra

              Try all the build instructions from command prompt. Before building ensure that you run vcvarsall.bat x86 from your visual studio installation directory.

              I built my QML program and it executed smoothly; it worked as you suggested! Thank you for your help.

              1 Reply Last reply
              0
              • dheerendraD Offline
                dheerendraD Offline
                dheerendra
                Qt Champions 2022
                wrote on last edited by
                #7

                Good. Not sure why it fails with QtCreator. You can move the issue to "SOLVED".

                Dheerendra
                @Community Service
                Certified Qt Specialist
                http://www.pthinks.com

                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