Re: Build pango-1.4.0 error, --libdir not effect !



Le ven 26/03/2004 à 12:04, Harobed a écrit :
> Le jeu 25/03/2004 à 14:32, Harobed a écrit :
> > Hello,
> > 
> > I've compiled pango 1.4.0 and I this error :
> > 
> > gcc -g -O2 -Wall -o .libs/pango-querymodules querymodules.o ./.libs/libpangox-1.0.so -L/home/gtksourceview//lib
> >  -L/usr/X11R6/lib ./.libs/libpangoxft-1.0.so /home/gtksourceview/pango-1.4.0/pango/.libs/libpangoft2-1.0.so
> >  /usr/lib/libXft.so /usr/lib/libXrender.so -lX11 ./.libs/libpangoft2-1.0.so
> >  /home/gtksourceview/pango-1.4.0/pango/.libs/libpango-1.0.so -lfontconfig /usr/lib/libfreetype.so -lz
> >  /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so ./.libs/libpango-1.0.so
> >  /home/gtksourceview//lib/libgobject-2.0.so /home/gtksourceview//lib/libgmodule-2.0.so
> >  -ldl /home/gtksourceview//lib/libglib-2.0.so -Wl,--rpath -Wl,/home/gtksourceview/lib -Wl,--rpath -Wl,/home/gtksourceview//lib
> > 
> > /home/gtksourceview/pango-1.4.0/pango/.libs/libpangoft2-1.0.so:
> > undefined reference to `g_type_instance_get_private'
> > /home/gtksourceview/pango-1.4.0/pango/.libs/libpangoft2-1.0.so:
> > undefined reference to `g_type_class_add_private'
> > /home/gtksourceview/pango-1.4.0/pango/.libs/libpango-1.0.so: undefined
> > reference to `g_unichar_get_mirror_char'
> > collect2: ld returned 1 exit status
> > 
> > I know than this error is due to directory "/usr/lib/".
> > 
> > meanwhile I've configured --libdir to "/home/gtksourceview/lib"
> > 
> > Why make don't use the good directory ?
> > 
> > thanks
> No one to answer to my problem ?

I resolve this problem (thanks to Owen on irc). The solution is to
define

LDFLAGS="-L/home/gtksourceview/lib"

--libdir is to define where install the library

Explication at :
http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html
-- 
Stéphane KLEIN
Home page : http://www.harobed.org
Jabber : harobed myjabber net




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