About Pango and it's Xft backend



Greetings!

I have been working with Linux for quite a while, and recently started to compile my own system... And finally I came to gtk+, that needs pango xft backend. But there is one little problem - when I am compiling pango, it can't find my xft installation!

output(./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc):
[..]
checking for perl... perl
checking for X... libraries /usr/X11R6/lib64, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for pkg-config... /usr/bin/pkg-config
checking for fontconfig >= 1.0.1... yes
checking FONTCONFIG_CFLAGS...
checking FONTCONFIG_LIBS... -lfontconfig
checking for freetype-config... /usr/bin/freetype-config
checking for FT_Get_Next_Char in -lfreetype... yes
checking for xft >= 2.0.0... checking for glib-2.0 >= 2.5.7 gobject-2.0 gmodule-no-export-2.0... yes
checking GLIB_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
checking GLIB_LIBS... -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
checking Whether to build OpenType test programs... yes
[..]
config.status: executing pango/module-defs-fc.c commands
config.status: executing pango/module-defs-win32.c commands
configuration:
backends: FreeType X

I compiled xft before, tried to install in /usr and in /usr/X11R6 (compilation and installation was succesful, make check produced no errors), but with no luck - pango can't find them. It finds freetype and X and compiles with them, but not with Xft. I have pkg-configure installed and Xft.pc is in /usr/X11R6/lib64/pkgconfig and all paths are set in variable PKG_CONFIG_PATH. Here is the list of xft files and libs that I have:

#find / -name '*xft*'
/sources_BLFS/find_xft
/usr/bin/xft-config
/usr/lib64/pkgconfig/xft.pc
/usr/man/man1/xft-config.1
/usr/X11R6/bin/xft-config
/usr/X11R6/lib64/pkgconfig/xft.pc
/usr/X11R6/man/man1/xft-config.1
#find / -name '*Xft*'
/sources_BLFS/libXft-2.1.10.tar.bz2
/sources_BLFS/pango-1.8.1/docs/html/pango-Xft-Fonts-and-Rendering.html
/usr/lib64/libXft.so.2.1.2
/usr/lib64/libXft.so.2
/usr/lib64/libXft.so
/usr/lib64/libXft.la
/usr/lib64/libXft.a
/usr/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html
/usr/man/man3/Xft.3
/usr/X11R6/include/X11/Xft
/usr/X11R6/include/X11/Xft/Xft.h
/usr/X11R6/include/X11/Xft/XftCompat.h
/usr/X11R6/lib/X11/doc/html/Xft.3.html
/usr/X11R6/lib64/libXft.so.2.1.2
/usr/X11R6/lib64/libXft.so.1.1
/usr/X11R6/lib64/libXft.so.1
/usr/X11R6/lib64/libXft.so.2
/usr/X11R6/lib64/libXft.so
/usr/X11R6/lib64/libXft.la
/usr/X11R6/lib64/libXft.a
/usr/X11R6/man/man3/Xft.3x
/usr/X11R6/man/man3/Xft.3

Here we can see, that I installed Xft in both /usr and /usr/X11R6. I have searched for possible solution, found about compilation sequence (Xft -> pango -> gtk+), tried to manually edit configure.in, setting have_xft=true, but that only gives me an error when compiling:

error output(make):
./.libs/libpangoxft-1.0.so: undefined reference to `XftGlyphExtents'
./.libs/libpangoxft-1.0.so: undefined reference to `XftCharIndex'
./.libs/libpangoxft-1.0.so: undefined reference to `XRenderFindStandardFormat'
./.libs/libpangoxft-1.0.so: undefined reference to `XftTextExtents8'
./.libs/libpangoxft-1.0.so: undefined reference to `XftGlyphSpecRender'
./.libs/libpangoxft-1.0.so: undefined reference to `XftDefaultHasRender'
./.libs/libpangoxft-1.0.so: undefined reference to `XftDrawGlyphSpec'
./.libs/libpangoxft-1.0.so: undefined reference to `XftDefaultSubstitute'
./.libs/libpangoxft-1.0.so: undefined reference to `XftDrawSrcPicture'
./.libs/libpangoxft-1.0.so: undefined reference to `XRenderCompositeTrapezoids'
./.libs/libpangoxft-1.0.so: undefined reference to `XftFontOpenPattern'
./.libs/libpangoxft-1.0.so: undefined reference to `XftLockFace'
./.libs/libpangoxft-1.0.so: undefined reference to `XftUnlockFace'
./.libs/libpangoxft-1.0.so: undefined reference to `XftCharExists'
./.libs/libpangoxft-1.0.so: undefined reference to `XftFontClose'
./.libs/libpangoxft-1.0.so: undefined reference to `XftFontOpen'
./.libs/libpangoxft-1.0.so: undefined reference to `XftDrawPicture'
collect2: ld returned 1 exit status
make[4]: *** [pango-querymodules] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 2
make: *** [all] Error 2

As far as I understand, there is problem with Xft - wether pango can't read Xft libs or can't find or I don't know, what else... Where should I look firther? Should I recompile freetype? Or even whole Xorg?

P.S. I have installed
glib (version 2.6.4),
Xorg (version 6.8.2) - configured and running,
Freetype (version 2.1.10),
libXft (version 2.1.10).
Trying to copmile pango (version 1.8.1)

I'm stuck! Any suggestions or comments? If there's some missing information, please ask...
__________
Advertisement:
laimigiem.lv UZMINI NAUDU
Tev ir iespeja sanemt
Ls 3000


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