Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building Qt 5 on Linux, for Windows
Forum Updated to NodeBB v4.3 + New Features

Building Qt 5 on Linux, for Windows

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 3.3k Views 2 Watching
  • 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.
  • C Offline
    C Offline
    cerr
    wrote on 15 Oct 2017, 14:26 last edited by
    #1

    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?

    M 1 Reply Last reply 15 Oct 2017, 14:33
    0
    • C cerr
      15 Oct 2017, 14:26

      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?

      M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 15 Oct 2017, 14:33 last edited by
      #2

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

      C 1 Reply Last reply 15 Oct 2017, 15:19
      2
      • M mrjj
        15 Oct 2017, 14:33

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

        C Offline
        C Offline
        cerr
        wrote on 15 Oct 2017, 15:19 last edited by
        #3

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

        1 Reply Last reply
        1

        1/3

        15 Oct 2017, 14:26

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved