I've done a lot of googling around, and found a lot of forum bla bla, but no clear answers. So perhaps people here have more experience in the matter:
1/ How does one go about producing an ARM executable with linux+gcc ? (in the same fashion as mingw dows for windows)
2/ What about MacOSX ?
3/ What about 32-bit compiles ? Everytime I try the "-m32" compiler switch (g++ 4.7) I get insulted by idiotic error messages that seem to suggeest that some libraries are missing. Does anyone know how to fix this problem under Ubuntu based distros ?
cross compiling
Moderators: hgm, Dann Corbit, Harvey Williamson
-
lucasart
- Posts: 3232
- Joined: Mon May 31, 2010 1:29 pm
- Full name: lucasart
cross compiling
Theory and practice sometimes clash. And when that happens, theory loses. Every single time.
-
michiguel
- Posts: 6401
- Joined: Thu Mar 09, 2006 8:30 pm
- Location: Chicago, Illinois, USA
Re: cross compiling
In Ubuntu (or Linux mint or equivalent)lucasart wrote:I've done a lot of googling around, and found a lot of forum bla bla, but no clear answers. So perhaps people here have more experience in the matter:
1/ How does one go about producing an ARM executable with linux+gcc ? (in the same fashion as mingw dows for windows)
sudo apt-get install gcc-arm-linux-gnueabi
and then compile with
arm-linux-gnueabi-gcc -static <here it goes whatever you use with gcc>
Miguel
2/ What about MacOSX ?
3/ What about 32-bit compiles ? Everytime I try the "-m32" compiler switch (g++ 4.7) I get insulted by idiotic error messages that seem to suggeest that some libraries are missing. Does anyone know how to fix this problem under Ubuntu based distros ?
-
Pablo Vazquez
- Posts: 154
- Joined: Thu May 31, 2007 9:05 pm
- Location: Madrid, Spain
Re: cross compiling
sudo apt-get install libc6-dev-i386
-
smrf
- Posts: 484
- Joined: Mon Mar 13, 2006 11:08 am
- Location: Klein-Gerau, Germany
-
velmarin
- Posts: 1600
- Joined: Mon Feb 21, 2011 9:48 am
Re: cross compiling
And why not compile it in Windows.
Better to have wines and nonsense.
You can put a virtual windows box on a linux system, and so build windows compiles in Windows.
is so difficult,
doing the right things.
Please, windows in windows.
Better to have wines and nonsense.
You can put a virtual windows box on a linux system, and so build windows compiles in Windows.
is so difficult,
doing the right things.
Please, windows in windows.
-
lucasart
- Posts: 3232
- Joined: Mon May 31, 2010 1:29 pm
- Full name: lucasart
Re: cross compiling
- compiling in windows is a real penance. you're not gonna get away with a simple command line compile there. typically you have to install huge bulky software like microsoft .net (or whatever they call it now). then you have to create a project, include the files, bla bla, until you can finally compile. maybe things have changed since I last used windows, but I fear they can only change for the worse...velmarin wrote:And why not compile it in Windows.
Better to have wines and nonsense.
You can put a virtual windows box on a linux system, and so build windows compiles in Windows.
is so difficult,
doing the right things.
Please, windows in windows.
- these software are not only bulky and lame, but they are also very expensive. the first of them is of course microsoft windows, which i do not possess.
- the virtual box. well I don't know about that, as I've never done it. maybe it's easy, but again, it takes time to figure out how. all that for a windows compile that I can otherwise obtain in a single command line (mingw)...
- and dual booting is a royal pain if you install windows after linux and have to fix the grub (because windows breaks everything else)
So, I think there are a lot of valid technical reasons to produce a Windows compile in Lunux as opposed to Windows, when you are a Linux user. It's not just because I hate Windows and do not want to soil my hands with it, although that part is also true
Theory and practice sometimes clash. And when that happens, theory loses. Every single time.
-
velmarin
- Posts: 1600
- Joined: Mon Feb 21, 2011 9:48 am
Re: cross compiling
Dev_cpp portable tablets occupies only 30 megas.
I repeat, windows in Windows, the rest, beating around the bush.
99 percent of users use "Windows2 progamas chess.
I repeat, windows in Windows, the rest, beating around the bush.
99 percent of users use "Windows2 progamas chess.
-
michiguel
- Posts: 6401
- Joined: Thu Mar 09, 2006 8:30 pm
- Location: Chicago, Illinois, USA
Re: cross compiling
There is absolutely no problem compiling windows program from linux with mingw64. In fact, the binaries are very fast. I use those that all the time.velmarin wrote:Dev_cpp portable tablets occupies only 30 megas.
I repeat, windows in Windows, the rest, beating around the bush.
99 percent of users use "Windows2 progamas chess.
Miguel
-
velmarin
- Posts: 1600
- Joined: Mon Feb 21, 2011 9:48 am
Re: cross compiling
If good.
Not bad, if you want something good, using "wine", and now this.
Well in this life each punishable as wants.
Give windows, for windows.
Give me linux to linux.
Not bad, if you want something good, using "wine", and now this.
Well in this life each punishable as wants.
Give windows, for windows.
Give me linux to linux.
-
pocopito
- Posts: 238
- Joined: Tue Jul 12, 2011 1:31 pm
Re: cross compiling
Under fedora (I guess the name of the command is different on other distros) I have no experience with ARM but I can compile without problems 32 and 64 bits versions with i686-w64-mingw32-gcc
Maybe if you post the errors you get here someone can help you with your cross-compilations.
Best regards
E Diaz
Maybe if you post the errors you get here someone can help you with your cross-compilations.
Best regards
E Diaz
Two first meanings of the dutch word "leren":
1. leren [vc] (learn, larn, acquire) acquire or gain knowledge or skills.
2. leren [v] (teach, learn, instruct) impart skills or knowledge to.
1. leren [vc] (learn, larn, acquire) acquire or gain knowledge or skills.
2. leren [v] (teach, learn, instruct) impart skills or knowledge to.