Jump to content
  • Advertisement
Sign in to follow this  
hannes100

crosscompile linux to windows

This topic is 4751 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
I set up a document here to show how to do this, and set up wxwidgets, sdl and opengl. Other libraries can be added easily enough once you understand that doc.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!