fontconfig: make does not find libraries expat and freetype



Hello,

I am cross-compiling gtk+ for mips processor. That's why I have to 
compile fontconfig also.

Expat and freetype are there, they compiled using mipsel-linux-gcc
smoothly.
But now these libraries are not found during linking of fontconfig.

Version: fontconfig-2.2.99
         freetype-2.1.9
         expat-1.95.8

make 

...
/opt/emlix/netdcu6/bin/mipsel-linux-gcc -g -g -O2 -o .libs/fc-cache
fc-cache.o  
-L/home/albrecht.ellinger/gtkUpdate/mipsel/freetype/execPrefix/lib 
../src/.libs/libfontconfig.so -Wl,--rpath 
-Wl,/home/albrecht.ellinger/gtkUpdate/mipsel/fontconfig/execPrefix/lib
/opt/emlix/netdcu6/bin/mipsel-linux-ld: warning: libfreetype.so.6,
needed by ../src/.libs/libfontconfig.so, not found (try using -rpath or
-rpath-link)
/opt/emlix/netdcu6/bin/mipsel-linux-ld: warning: libexpat.so.0, needed
by ../src/.libs/libfontconfig.so, not found (try using -rpath or
-rpath-link)
...



configure settings are:

CC="/opt/emlix/netdcu6/bin/mipsel-linux-gcc -g" ./configure  
--prefix=/home/albrecht.ellinger/gtkUpdate/mipsel/fontconfig/prefix 
--exec-prefix=/home/albrecht.ellinger/gtkUpdate/mipsel/fontconfig/execPr
efix 
--cache-file=mipsel.cache 
--host=mipsel-linux 
--build=i686-pc-linux-gnu
--with-freetype-config=/home/albrecht.ellinger/gtkUpdate/mipsel/
freetype/execPrefix/bin/freetype-config
--with-expat-includes=/home/albrecht.ellinger/gtkUpdate/mipsel/expat/pre
fix/include
--with-expat-lib=/home/albrecht.ellinger/gtkUpdate/mipsel/expat/execPref
ix/lib

I set the environment variables

LD_RUN_PATH
LD_LIBRARY_PATH
PKG_CONFIG_PATH

accordingly.

I also had the linker option through the compiler by

CC="/opt/emlix/netdcu6/bin/mipsel-linux-gcc -g
-Wl,-rpath=/home/albrecht.ellinger/gtkUpdate/mipsel/expat/execPrefix/lib
"

but still it did not work.

Which option is missing for the linker to find these libraries?

Thank you

Albrecht Ellinger




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]