Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Compiling Windows Programs on Linux Using MinGW-w64  (Read 27 times)

0 Members and 1 Guest are viewing this topic.

byronvoyle

  • Newbie
  • *
  • Posts: 1
    • View Profile
Compiling Windows Programs on Linux Using MinGW-w64
« 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11027
    • View Profile
    • development blog
    • Email
Re: Compiling Windows Programs on Linux Using MinGW-w64
« Reply #1 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. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/