(C++) How to cross-compile a Qt Creator project from Ubuntu to a windows executable?

January 10, 2018 · View on GitHub

 

 

 

 

 

(C++) How to cross-compile a Qt Creator project from Ubuntu to a windows executable?

 

Qt
CreatorUbuntutoWindows

 

Qt FAQ about how to cross compile using Qt Creator under Linux to a Windows executable.

 

I use the approach of example 15: MXE most. See MXE for more information about MXE.

 

 

 

 

Examples

 

These examples can be viewed as approaches. Some approaches fail, two are successful, some are unexplored or abandoned.

 

 

Instead of cross compiling, code can also be ported from Linux to Windows using the tool Cygwin: Cygwin offers a UNIX-like environment, where compiling leads to Windows executables.

 

 

 

 

 

References

 

  1. Linux Journal article about cross-compiling
  2. Cross-compiling for embedded Linux