LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-01-2005, 07:10 AM   #1
back2morrie
LQ Newbie
 
Registered: May 2005
Posts: 7

Rep: Reputation: 0
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.

Last edited by back2morrie; 07-05-2005 at 12:16 AM.
 
Old 07-01-2005, 08:18 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 07-01-2005, 08:22 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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..
 
Old 07-04-2005, 12:03 AM   #4
back2morrie
LQ Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 07-04-2005, 12:06 AM   #5
back2morrie
LQ Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 07-04-2005, 06:30 AM   #6
Marius2
Member
 
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 276

Rep: Reputation: 31
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 ) and compile your sources there? You could simply store your working copy on a samba share, and compile the linux variant on the server.
 
Old 07-05-2005, 12:14 AM   #7
back2morrie
LQ Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 07-05-2005, 12:53 AM   #8
Marius2
Member
 
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 276

Rep: Reputation: 31
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?
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?
 
Old 07-13-2005, 03:15 AM   #9
back2morrie
LQ Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
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..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cross compiler alpha_foobar Linux - General 0 08-17-2005 06:15 PM
Cross compiler !!! hiteshmaisheri Linux - Laptop and Netbook 3 03-05-2005 09:51 AM
cross compiler leonora Programming 2 01-08-2005 11:13 AM
Building cross-compiler gcc for powerpc-linux ccool Linux - General 3 09-17-2004 06:33 AM
Cross compiler help please daveschile Linux - Software 1 04-09-2004 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration