LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-05-2006, 06:14 AM   #1
rohya_joshi
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Rep: Reputation: 0
Cool Problem with gcc powerpc cross compile !!


hi!!!

ive started learninig powerpc for quite a while now... i was using cygwin with the powerpc tools in winxp for comliling my programs. latelly i shifted to SUSE 10. now in not able to compile my programs using "powerpc-elf-gcc" it says command not found.whay should i do.
are there any other packages required? if yes where will i get those frm???

thnx 4 help!!
 
Old 02-06-2006, 03:15 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Blog Entries: 4

Rep: Reputation: 78
First off, you must have a gcc that is able to cross-compile. This may well require a complete rebuild of your toolchain (gcc, binutils, headers etc...) which you may want to install locally to avoid overwriting your native gcc.

Second, to do the actual cross compile, I think all that is necessary is to define your chost flags to your target platform.

I suggest reading the gcc docs, or searching for a tutorial on setting up gcc to cross-compile.
 
Old 02-07-2006, 01:44 AM   #3
rohya_joshi
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Cool

hello,

thnx for the reply.ive installed suse10 oss with all the dev packages. how can i re compile these the toolchain.im new to this.... plz help me out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help in adding PowerPC libraries to GCC 3.3.4 rmurthy Linux - Software 0 12-07-2005 10:52 AM
Can gcc cross-compile C code to M68K Assembly? lowpro2k3 Programming 1 03-25-2005 08:50 AM
Building cross-compiler gcc for powerpc-linux ccool Linux - General 3 09-17-2004 07:33 AM
cross compile PATH problem karfei00 Linux - Newbie 1 06-16-2004 08:39 AM
Setting up GCC for cross-compile ugenn Linux - Software 0 02-20-2003 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:19 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