Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compile for linux target from windows.
Forum Update on Monday, May 27th 2025

Compile for linux target from windows.

Scheduled Pinned Locked Moved Unsolved General and Desktop
cross compilelinuxgcc
2 Posts 2 Posters 1.6k 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.
  • L Offline
    L Offline
    Lior
    wrote on 19 Oct 2019, 12:52 last edited by
    #1

    Hi,
    Is it posiable to build app for linux target (using gcc) from windows OS?

    I dont want to maintain 2 workspaces, linux and windows. I want to develop on windows and have the ability to run the app in 2 environment.

    Thanks
    Lior

    K 1 Reply Last reply 19 Oct 2019, 17:45
    0
    • L Lior
      19 Oct 2019, 12:52

      Hi,
      Is it posiable to build app for linux target (using gcc) from windows OS?

      I dont want to maintain 2 workspaces, linux and windows. I want to develop on windows and have the ability to run the app in 2 environment.

      Thanks
      Lior

      K Offline
      K Offline
      koahnig
      wrote on 19 Oct 2019, 17:45 last edited by
      #2

      @Lior

      Hi and welcome to devnet forum

      Do you have a cross-compiler for cross-compilation on windows for linux? There are certainly cross-compilers available. You would have to cross-compile Qt libs with that cross-compiler. After this you can use the cross-compile toolchain and do a cross-compilation for your applications.

      My personal recommendation is to use virtual machine e.g. VirtualBox and setup the linux environment. Use Qt creator on linux and on windows. You will have the same look and feel in both environments. That is how I do my developments. All is done on windows. However, targeting linux desktop and embedded linux I do the compilation on linux desktop. The reason is lesser pain.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      2

      1/2

      19 Oct 2019, 12:52

      • Login

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