LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2009, 05:54 AM   #1
tejas_dakor
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
cross compiler path


I want to compile sample code that run on arm target board.
How to set the cross compiler path for arm-linux target board.
I have already installed the toolchain.
I am using Fedora core 9.
 
Old 01-02-2009, 07:01 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,684

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
1) export PATH="$PATH:[toolchain-prefix]/bin"

2) Use absolute path :
/home/tejas_dakor/cross-tools/bin/gcc-arm-elf sample_code.c

3) For building an application, ./configure or make :
CC=/home/tejas_dakor/cross-tools/bin/gcc-arm-elf ./configure
and / or
CC=/home/tejas_dakor/cross-tools/bin/gcc-arm-elf make

CXX=/home/tejas_dakor/cross-tools/bin/g++-arm-elf ./configure
CXX=/home/tejas_dakor/cross-tools/bin/g++-arm-elf make
( g++ = c++ )
....

Last edited by knudfl; 01-03-2009 at 02:44 AM.
 
  


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
My c compiler doesn't work after the cross-compiler installed heracles.cn Linux - Newbie 1 06-05-2007 03:55 AM
cross compiler alpha_foobar Linux - General 0 08-17-2005 06:15 PM
cross compiler leonora Programming 2 01-08-2005 11:13 AM
Cross compiler help please daveschile Linux - Software 1 04-09-2004 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration