LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   windows to linux cross-compiler (https://www.linuxquestions.org/questions/linux-general-1/windows-to-linux-cross-compiler-339020/)

back2morrie 07-01-2005 07:10 AM

windows to linux cross-compiler
 
Could anyone tell me where to get a gcc-based cross-compiler that would run on windows NT and generate linux binaries.

jtshaw 07-01-2005 08:18 AM

As far as I know the only way to do this is to use Cygwin. I could be mistaken, but I don't think gcc will run under native Windows.

trickykid 07-01-2005 08:22 AM

Re: windows to linux cross-compiler
 
Quote:

Originally posted by back2morrie
A fast reply would be highly appreciated as this is a bit urgent.
Might be urgent for you but not for us. This is a free forum based website you can ask questions in which other members come here in their own free time to help people like you asking such questions. Be considerate and don't place urgent in your questions as your thread/question has no priority over any other thread/question that is asked here..

back2morrie 07-04-2005 12:03 AM

Sorry about tht. But I wasnt trying to belittle others' posts or put my own message above others. It was just a humble request for some greatly needed help.

back2morrie 07-04-2005 12:06 AM

Actually acc. to me, cygwin and djgpp are packages that help us run gcc in windows in a linux like enviroment and the binaries that they generate also run on windows. But what I want to do is to run gcc windows and generate binaries for linux, for which a cross-compiler is required.

Marius2 07-04-2005 06:30 AM

May I ask why you don't simply set up a linux box (any PIII will do for a fairly recent distribution, I hope although it's urgent you still can afford to take the compilation a few minutes :D ) and compile your sources there? You could simply store your working copy on a samba share, and compile the linux variant on the server.

back2morrie 07-05-2005 12:14 AM

thats coz the application that I have built using the cross-compiler has to be run on windows while the binaries generated have to be run on a linux based embedded system. :)

Marius2 07-05-2005 12:53 AM

Quote:

Originally posted by back2morrie
thats coz the application that I have built using the cross-compiler has to be run on windows while the binaries generated have to be run on a linux based embedded system. :)
Errr... what is the difference between "application that I have built using the cross-compiler" (which results IMHO in a binary) and "the binaries generated have to be run on a linux based "? That is, what is the difference between binary and binary? :scratch:
Anyway, what keeps you from compiling your sources on the embedded system? Just install samba and telnet server and gcc, make, whatever you need, and there you go. Much easier than messing around with cygwin and such stuff. BTW your embedded board, is it x86 compatible, or something else?

back2morrie 07-13-2005 03:15 AM

Quote:

Originally posted by Marius2
what keeps you from compiling your sources on the embedded system?

Well thats precisely the reason why cross-compilers have come into existence.......coz embedded systems are highly limited in terms of the resources available. ...also sometimes users are expected to write and compile code on a user friendly windows machine which is much easier....and then download the binaries into the embedded system.........i hope u get it now..


All times are GMT -5. The time now is 12:09 AM.