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

Author Topic: Need help with crosscompiling from linux to windows via mingw  (Read 1685 times)

0 Members and 1 Guest are viewing this topic.

ohgodmanyo

  • Newbie
  • *
  • Posts: 4
    • View Profile
Need help with crosscompiling from linux to windows via mingw
« on: January 15, 2022, 10:26:40 pm »
I get this issue when trying to compile my project via mingw.

https://pastebin.com/raw/YPzk50BZ

The dlls are GCC 7.3.0 MinGW (DW2) - 32-bit, and I do currently have them in my build directory. I am currently on arch linux and I have installed sfml from: https://aur.archlinux.org/packages/mingw-w64-sfml/

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Need help with crosscompiling from linux to windows via mingw
« Reply #1 on: March 08, 2022, 02:17:30 pm »
You'll make your life a lot easier, if you grab a copy of Windows and run it in a VM or similar.
Cross-compilation to Windows sounds great on paper, but it requires quite some fiddling and configuration to get it somewhat to work and even then, you don't really that it will actually run on Windows, since you don't have a native install to test it on.

Anyways, the provided error messages tell you exactly what's missing, it's looking for a certain set of DLLs and you didn't provide those (they need to be put next to the executable)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/