LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-25-2013, 07:32 AM   #1
maha
LQ Newbie
 
Registered: Jul 2013
Posts: 7
Blog Entries: 2

Rep: Reputation: Disabled
cross compilation using arm-none-Linux-gnueabi-gcc in Linux


I have been trying to cross compile a program using a static library(libfreetype.a),but the compiler is giving error as "file in wrong format-couldn't read symbols".

please tell me the supported library format for cross toolchain or any idea about where to get it,thankyou in advance...
commands:
$:arm-none-linux-gnueabi-gcc p5.c libfreetype.a

The error i got is,
/home/mahavishnu/cross/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: libfreetype.a(ftinit.o): Relocations in generic ELF (EM: 3)
/home/mahavishnu/cross/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: libfreetype.a(ftinit.o): Relocations in generic ELF (EM: 3)
/home/mahavishnu/cross/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: libfreetype.a(ftinit.o): Relocations in generic ELF (EM: 3)
/home/mahavishnu/cross/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: libfreetype.a(ftinit.o): Relocations in generic ELF (EM: 3)
/home/mahavishnu/cross/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: libfreetype.a(ftinit.o): Relocations in generic ELF (EM: 3)
/home/mahavishnu/cross/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: libfreetype.a(ftinit.o): Relocations in generic ELF (EM: 3)
/home/mahavishnu/cross/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: libfreetype.a(ftinit.o): Relocations in generic ELF (EM: 3)
libfreetype.a: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
 
Old 07-25-2013, 11:10 PM   #2
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 311

Rep: Reputation: 71
Did you recompile libfreetype for the arm processor?

Cheers
 
Old 07-26-2013, 06:27 AM   #3
maha
LQ Newbie
 
Registered: Jul 2013
Posts: 7
Blog Entries: 2

Original Poster
Rep: Reputation: Disabled
ya i tried to compile,but after configuring to arm-gcc unable to "make"
its giving
make: Nothing to be done for `all'.
please help me on this..
 
  


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
arm-none-linux-gnueabi-gcc???? mosol2005 Ubuntu 1 12-23-2012 08:18 PM
difference b/w arm-iwmmxt-linux-gnueabi-gcc & arm-linux-gcc ravi_shanker Linux - Software 1 09-12-2011 11:30 AM
Compiling debian arm for NSLU2 - arm-linux-gnueabi-objdump not found ergosteur Linux - Kernel 3 10-30-2010 12:24 PM
ARM-Linux Cross compilation Toolkits 2.95 hazzyb Programming 3 02-06-2009 11:21 AM
Gcc 4.3.0 cross compilation for arm is failing bhagat_singh Linux - Software 2 07-10-2008 03:38 PM


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