LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-30-2009, 11:34 PM   #1
Ravi_
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Rep: Reputation: 0
compiling GTK for sh4 platform...library issues


I am trying to compile GTK(2.10.14) over directfb for sh4 platform. I have all the dependencies in place. When I configure and try to 'make' I get the following:

/usr/lib/libjpeg.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status

I know where the correct file is located but don't know how to specify it's path in the makefile. Please help.

Thanks!
 
Old 03-31-2009, 01:48 AM   #2
Ravi_
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Original Poster
Rep: Reputation: 0
I just renamed the libjpeg.so in /usr/lib and then the compiler picked the correct library from the other(correct) path. So now I'll rephrase the question. How to configure the makefile so that user libraries take precedence over system libraries?
 
Old 03-31-2009, 10:06 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Welcome to LQ.

The usual way to do it goes like this, in a terminal window,
with the command :

Code:
'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/<path-to-sh4>/lib:/<other-sh4-path>/lib:/<third-sh4-path>/lib'
and those new path's will replace the system PATH
( :/lib:/usr/lib:/usr/local/lib etc.)
until you close the terminal window.

( The above command should be done before running ./configure
and / or make in that terminal.)
.....

Last edited by knudfl; 03-31-2009 at 02:13 PM.
 
  


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
Compiling library files into another library file. knobby67 Programming 3 04-10-2007 03:07 PM
Cross platform C GUI library? Akabaka Programming 5 04-02-2006 11:11 PM
A cross-platform networking library? elluva Programming 4 02-15-2005 05:35 PM
Compiling issues with Gens... GTK Path crap DOCta_Gnome Linux - Software 17 04-27-2004 10:00 PM
Linking a platform independent shared library rozeboom Programming 3 11-18-2003 03:10 PM


All times are GMT -5. The time now is 03:06 PM.

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