Reputation: 76026
I've found little info about cross-compiling Linux binaries in Windows, most questions are about the opposite situation.
Has someone any experience or pointers to share?
I'd prefer Mingw over Cygwin, if I can choose.
Assume that the specific Linux target is available: I have the include headers and binaries.
Upvotes: 4
Views: 792
Reputation: 639
I haven't done this myself, but have you considered setting up a virtual machine, and compiling on that? You could use a "network" share, so that both the Windows system and Linux virtual system can see the same directories. With the Virtual Machine solution, it becomes much easier to target specific distributions and architectures.
Best of luck, regardless.
Upvotes: 1