Building Qt 5 on Linux, for Windows



  • Hi there,

    I tried to follow Building Qt 5 on Linux, for Windows to be able to create a Windows version of my application. Following the tutorial went well until I was supposed to execute mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 in my source directory, I received the error: Project ERROR: Cannot run target compiler 'i686-w64-mingw32.static-g++'. Maybe you forgot to setup the environment?.
    All I've found Googling around is, from people who've experienced this same error on Windows where they would run a batch file called vcversall.bat to get things straigted out but since I'm on Linux, I do not know what to do instead, can anyone help?


  • Qt Champions 2016

    @cerr
    Hi
    And you did something like
    export PATH=<mxe root>/usr/bin:$PATH
    as mentioned in the link ?



  • @mrjj said in Building Qt 5 on Linux, for Windows:

    @cerr
    Hi
    And you did something like
    export PATH=<mxe root>/usr/bin:$PATH
    as mentioned in the link ?

    No, that actually was my problem! Thanks for pointing this out, I must have read over that comment...


Log in to reply
 

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