Sign in to follow this  
hannes100

crosscompile linux to windows

Recommended Posts

hannes100    122
Hi, i would like to crosscompile c++/opengl project on a linux system to an executable windows programm. the only thing i found until now is mingw.... on the webside is a litlte example how to use, but my project contains some more classes than one and i don't know how to compile that....thnx for any help

Share this post


Link to post
Share on other sites
markr    1692
You'd do the same thing to build a cross-compiled program with multiple source files, than you would with a native compile with multiple sources.

However, I generally don't see the point of cross-compiling Linux-Windows (or vice versa), because you need to be running both anyway to test, so why not compile?

I suppose your build system could be Linux-specific (mine usually is, but only to build platform-independent data). But that would be awkward for other developers wanting to do native Windows builds.

Mark

Share this post


Link to post
Share on other sites
bytecoder    100
Quote:
Original post by markr
You'd do the same thing to build a cross-compiled program with multiple source files, than you would with a native compile with multiple sources.

However, I generally don't see the point of cross-compiling Linux-Windows (or vice versa), because you need to be running both anyway to test, so why not compile?

I suppose your build system could be Linux-specific (mine usually is, but only to build platform-independent data). But that would be awkward for other developers wanting to do native Windows builds.

Mark

There's always testing with Wine. That, and other users.

Share this post


Link to post
Share on other sites
Sign in to follow this