LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 10: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, 12: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, 09:06 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 01:13 PM.
 
  


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

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

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