Linked by Thom Holwerda on Mon 25th Jul 2005 16:44 UTC, submitted by Lhyanor
General Development "Everyone of us always wanted to have the ability to compile for Windows and Unix in one makefile, right? Unfortunately, there is very few documentation on this topic and I had quite a hard time to get things working the way I wanted to. I wrote this small how-to to share the way I managed to build my toolchain with other people."
Order by: Score:
Think before you post
by Anonymous on Mon 25th Jul 2005 17:25 UTC
Anonymous
Member since:
---

"I didn’t test them on Windows, yet but I strongly believe they will run. If you run into troubles, please report them to me."

hrmmm

Well, I developed a formula to grow money on trees and a syrum to make you immortal. I haven't tested it yet, but you can bet it works!

Reply Score: 0

RE: Think before you post
by Lhyanor on Mon 25th Jul 2005 18:12 UTC in reply to "Think before you post"
Lhyanor Member since:
2005-07-25

Okay it works on windows, are you happy now?

Reply Score: 1

v An easy way and a hard way...
by Anonymous on Mon 25th Jul 2005 17:54 UTC
RE: An easy way and a hard way...
by Anonymous on Mon 25th Jul 2005 18:13 UTC in reply to "An easy way and a hard way..."
Anonymous Member since:
---

Sound interesting, but how can I compile my c and c++ files with it?

Reply Score: 0

Lhyanor Member since:
2005-07-25

You mean without Automake and Autoconf?

Set the enviroment variables, and then, instead of gcc/g++, run $CC for C or $CXX for C++.

---

@BlitzBasic: You didn't get the point of free software, did you? And BlitzBasic isn't C/C++, which makes it uninteresting for most people.

Reply Score: 1

Anonymous Member since:
---

No, I meant Blitzbasic....it was ironic, because BlitzBasic is 100% not what I want when I try to compile some win32 c/c++/pascal programs under linux for windows.

Reply Score: 0

RE: An easy way and a hard way...
by raboof on Mon 25th Jul 2005 18:28 UTC in reply to "An easy way and a hard way..."
raboof Member since:
2005-07-24

Uhm, the article is about compiling windows executables while running under linux yourself.

Reply Score: 1

v It won't work
by Anonymous on Mon 25th Jul 2005 18:51 UTC
Cross-compiler for FC4 - to - Win32
by Anonymous on Tue 26th Jul 2005 11:26 UTC
Anonymous
Member since:
---

I have built the Mingw cross-compiler for Linux several times for building Inkscape for Windows, so I am fairly familiar with the process. But it can be confusing for beginners in the cross-compiler world. So I posted a copy of the current (gcc3.4.4) version of the Mingw cross-compiler, built on Fedora Core 4, at:

http://inkscape.org/win32/xmingw-3.4.4.tar.bz2

It is built to be unpacked to /usr/local/xmingw32. Just put /usr/local/xmingw32/bin at the front of your PATH, remember to call the compiler explicitly such as 'i686-pc-mingw32-gcc', and have fun. It has C and C++, and should run on most recent distros without any trouble.


Ishmal

Reply Score: 1

Anonymous Member since:
---

Oops. The path should be:

/usr/local/xmingw

Reply Score: 0

Lhyanor Member since:
2005-07-25

thats nice, compiling SDL ans wxWidgets for this should work the same way. just use another --prefix

Reply Score: 1