News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to cross-compile from Windows to Linux?

Started by Rimdeker, December 11, 2008, 10:13:54 PM

Previous topic - Next topic

Rimdeker

I've been looking through the forum and found a post which gives a little hint but it was not really a big help. What I wanted to know is:
Is there a way to cross-compile files on Windows for Linux? If yes, how?

I got another less important question:
If I compile on Linux would I automatically get Linux files? I was thinking about switching to Linux or least having a dual-boot. I'm really new to programing and if cross-compiling is too hard for me would compiling on Linux be a more-or-less simple option? Would I have to change the source-code somehow?


C++? I like that stuff!

Be nice , be cool.
A smile is like a boomerang, it'll eventually come back to you :).

Jenna

Please remove the non-english content from your signature.

If you compile on linux, you get linux-files of course.
Cross-compiling on windows for linux is something I never tried, even if it might be possible.
The only article I know about that is this one : http://metamod-p.sourceforge.net/cross-compiling.on.windows.for.linux.html.

The other way is much better documented.

Rimdeker

QuoteThe other way is much better documented.

Yea, I noticed that , as well. Well... I could simply do stuff for Linux on Linux and programs for Windows on Windows. But, I kinda feel like I'm simply avoiding the problem. I will try out that link you gave me, it does look kinda complicated but oh well.

By the way, wouldn't it be an interesting idea to implement a cross-compiler in C::B ? Maybe too much to ask for? lol
C++? I like that stuff!

Be nice , be cool.
A smile is like a boomerang, it'll eventually come back to you :).

Jenna

Quote from: Rimdeker on December 11, 2008, 11:21:04 PM
QuoteThe other way is much better documented.

Yea, I noticed that , as well. Well... I could simply do stuff for Linux on Linux and programs for Windows on Windows. But, I kinda feel like I'm simply avoiding the problem. I will try out that link you gave me, it does look kinda complicated but oh well.

By the way, wouldn't it be an interesting idea to implement a cross-compiler in C::B ? Maybe too much to ask for? lol

There are several threads about cross-compiling on the forum, and two wiki-articles:
http://forums.next.codeblocks.org/index.php/topic,6876.0.html
http://wiki.codeblocks.org/index.php?title=Cross_Compiling_wxWidgets_Applications_on_Linux
http://forums.next.codeblocks.org/index.php/topic,6876.0.html
http://wiki.codeblocks.org/index.php?title=Code::Blocks_and_Cross_Compilers

PS
Thanks for changing your signature.

Rimdeker

Thank you for the links :) and no probs lol. I can imagine why you wouldn't like something on the forum that you can't understand and stuff.
C++? I like that stuff!

Be nice , be cool.
A smile is like a boomerang, it'll eventually come back to you :).