Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Application Compilation Issue usingQt 5.9.1 on Windows 10 with mingw32 compiler



  • Hello all,

    I've installed Qt 5.9.1. SDK with both Mingw32 and MSVC 2017 compilers on Windows 10 64 bit machine (vmware).
    I'm able to compile and run example programs.

    Now, when I'm trying to build my application using mingw_32 compiler I'm getting lots of errors in Qt creator.

    The same application I'm able to compile and build on Linux without any issues. Also, I've removed all the Linux oriented part from the code.

    The errors are posted in the below link:

    https://pastebin.com/CRA2ce83

    Could someone please let me know if anyone has faced similar issue or fixed this ?

    Any help is greatly appreciated.


  • Lifetime Qt Champion

    Hi,

    Before digging deeper, why are you using an outdated version of Qt ? The Qt 5.9 series has gotten several releases and the current LTS is 5.12.



  • @SGaist
    Hello,

    Thanks for the response. Since we have already developed our application using Qt 5.9, we are trying to port on windows with the same version. Also, as per your advice I will try to build in 5.12.

    But my concern is why I am not able to build my application when I am able to compile and build qt examples. Also I am also able to crate a new sample quick project and able to compile and run.

    Also, we are building shared library and linking with the application. The library is also created inside the project. Could that be a reason ?


  • Lifetime Qt Champion

    Make sure the correct gcc is picked up. Maybe there is an old one somewhere around in your PATH.
    Also you don't need to update to 5.12 but maybe try the latest 5.9 one.


Log in to reply