User forums > Using Code::Blocks

How to cross-compile from Windows to Linux?

(1/1)

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?


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:

--- Quote ---The other way is much better documented.
--- End quote ---

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

Jenna:

--- Quote from: Rimdeker on December 11, 2008, 11:21:04 pm ---
--- Quote ---The other way is much better documented.
--- End quote ---

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

--- End quote ---

There are several threads about cross-compiling on the forum, and two wiki-articles:
http://forums.codeblocks.org/index.php/topic,6876.0.html
http://wiki.codeblocks.org/index.php?title=Cross_Compiling_wxWidgets_Applications_on_Linux
http://forums.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.

Navigation

[0] Message Index

Go to full version