SFML community forums

Help => General => Topic started by: byronvoyle on November 08, 2024, 10:16:56 am

Title: Compiling Windows Programs on Linux Using MinGW-w64
Post by: byronvoyle on November 08, 2024, 10:16:56 am
Hello, I am trying to compile a program for Windows on a Linux system using the x86_64-w64-mingw32-g++ tool, but am getting some errors. How to do this correctly? What are the steps required to install and use MinGW-w64 on Linux?

Thanks.
Title: Re: Compiling Windows Programs on Linux Using MinGW-w64
Post by: eXpl0it3r on November 08, 2024, 10:22:46 am
Personally, I don't recommend cross-compilation, since it's tricky to get it working and there are plenty of other options available.
You can use some GitHub Action or any other CI system, spin up a Windows instance and build it natively.

but am getting some errors
Errors aren't just random strings of text, but they usually tell you exactly what went wrong. May be that you don't understand it, but if you don't share it, nobody else will be able to help you either. ;)