LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compiling GTK for sh4 platform...library issues (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-gtk-for-sh4-platform-library-issues-715649/)

Ravi_ 03-30-2009 10:34 PM

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!

Ravi_ 03-31-2009 12:48 AM

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?

knudfl 03-31-2009 09:06 AM

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.)
.....


All times are GMT -5. The time now is 06:17 AM.