Xft on X11R6 legacy system

Michael M. Tung mtung at mat.upv.es
Tue Mar 20 07:21:46 PDT 2007


Hi:

After all I could find a solution myself to the
problem posted this morning. It might be useful
to others.

The version of Xft.h I have is lacking the reference
to Xlib.h. Adding one line like this does the job:

#include <stdarg.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include <fontconfig/fontconfig.h>
#include <X11/Xlib.h>   <-------------  added
#include <X11/extensions/Xrender.h>

Best,
       Michael

Michael M. Tung [mtung at mat.upv.es] wrote:
> Hi all:
> 
> I am not sure if this is the correct list to sent my
> problem to. Googleing around couldn't get me any
> answers, so hopefully there is a chance to resolve
> the problem here.
> 
> I am quite desperate getting Xft/Xrender compiled into
> X11 applications (primarily the Fluxbox window manager).
> The configure test run of Fluxbox and other applications
> gives me error messages that don't allow to activate
> aliasing in the produced binaries (with really ugly
> font displays).
> 
> My system has X11R6 (libX11.so.6.1) and I can't upgrade
> to newer releases of X. I could successfully compile and
> install libXft-2.1.7 and xrender-0.8.3. I'll attach the
> error output of the config.log, configuring for Fluxbox,
> at the end of this message.
> 
> Please give me any helpful hints on what is going wrong.
> 
> Many thanks in advance!
> Best regards,
>                Michael
> 
> -------------------------------------------------------------------------
> 
> configure:22691: checking whether to have Xft support
> configure:22725: result: yes
> configure:22744: checking for pkg-config
> configure:22762: found /usr/local/bin/pkg-config
> configure:22775: result: /usr/local/bin/pkg-config
> configure:22901: g++ -o conftest -g -O2  -I/usr/X11R6/include -DSHAPE  -I/usr/X11R6/include -I/usr/X11R6/include/freetype2      -liconv -liconv  -L/usr/X11R6/lib  -lSM -lICE conftest.cc  -liconv -liconv  -L/usr/X11R6/lib -lX11  -lXext -Wl,--rpath -Wl,/usr/X11R6/lib -L/usr/X11R6/lib -lXft -lfreetype -lz -lXrender -lX11 -lfontconfig   >&5
> In file included from /usr/X11R6/include/X11/extensions/Xrender.h:33,
>                  from /usr/X11R6/include/X11/Xft/Xft.h:44,
>                  from conftest.cc:77:
> /usr/X11R6/include/X11/Xutil.h:114: 'Bool' is used as a type, but is not 
>    defined as a type.
> /usr/X11R6/include/X11/Xutil.h:117: 'Pixmap' is used as a type, but is not 
> ............
>
-- 
-------------------------------------------------------------------------
  Dr. Michael M. Tung                  Email: mtung at mat.upv.es
  Departamento de Matemática Aplicada         michael.m.tung at gmail.com
  Universidad Politécnica de Valencia  Phone: +34 96 3877000 x88287
  Inst. de Matemática Multidisciplinar        +34 96 38-79777   
  Edificio 8-G, 2º piso                IM: ICQ96423950
  Camino de Vera, s/n  
  46022 Valencia (Spain)  
-------------------------------------------------------------------------
  PGP Public Key       http://personales.upv.es/mictun/mtung_pubkey.pgp
-------------------------------------------------------------------------




More information about the xorg mailing list