Planned maintenance: From Sunday 8th December 10:00 CET there will be changes to try and solve the caching issues that have been experienced. If anyone has a problem connecting after this period then please PM @AndyS or any of the moderators.

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



  • 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.


  • Qt Champions 2017

    Can you try running the build from command prompt ?



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


  • Qt Champions 2017

    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.



  • Thank you. Will try the build and update you.



  • @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.


  • Qt Champions 2017

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


Log in to reply