[kde-solaris] How to get AA fonts on Solaris without native XRender ...

Salman Sheikh kde-solaris@mail.kde.org
Mon Feb 10 15:40:01 2003


How do I compile Xrender for Solaris.
When I run xmkmf -a, i get the following:

magoo(/folks/salman/fcpackage.2_0/Xrender)44: xmkmf -a
imake -DUseInstalled -I/usr/openwin/lib/X11/config
make Makefiles
make: Nothing to be done for `Makefiles'.
make includes
+ mkdirhier ./X11/extensions
+ cd ./X11/extensions
+ rm -f Xrender.h
+ ln -s ../.././Xrender.h .
+ rm -f extutil.h
+ ln -s ../.././extutil.h .
+ rm -f region.h
+ ln -s ../.././region.h .
+ rm -f render.h
+ ln -s ../.././render.h .
+ rm -f renderproto.h
+ ln -s ../.././renderproto.h .
make depend
makedepend  -- -I. -I/usr/openwin/include/X11 
-I/usr/openwin/include/X11/extensions  -I/usr/openwin/include  -Dsun -Dsparc 
-DSVR4 -DSYSV   -DXTHREADS -mt -DMALLOC_0_RETURNS_NULL  -- Xrender.c Color.c 
Composite.c Cursor.c Glyph.c Picture.c FillRect.c FillRects.c Poly.c Trap.c 
Tri.c
makedepend: warning:  /usr/openwin/include/X11/Xlibint.h includes 
/usr/openwin/include/X11/Xproto.h more than once!
Already have
        /usr/include/stdio.h
        /usr/openwin/include/X11/Xlib.h
        /usr/openwin/include/X11/Xproto.h

I have my cc linked to /usr/local/bin/gcc and then I get all kinds of errors, 
like so:


magoo(/folks/salman/fcpackage.2_0/Xrender)45: make
rm -f Xrender.o
cc -c -O -Xc -xF -xcg92 -mt -I. -I/usr/openwin/include/X11 
-I/usr/openwin/include/X11/extensions  -I/usr/openwin/include  -Dsun -Dsparc 
-DSVR4 -DSYSV   -DXTHREADS -mt -DMALLOC_0_RETURNS_NULL    -Kpic Xrender.c
cc: unrecognized option `-Xc'
cc: unrecognized option `-Kpic'
cc: language cg92 not recognized
cc1: Invalid option `t'
cc1: Invalid option `t'
In file included from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.3/include/time.h:90,
                 from /usr/include/sys/time.h:410,
                 from /usr/include/sys/select.h:17,
                 from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.3/include/sys/types.h:278,
                 from /usr/openwin/include/X11/Xlib.h:47,
                 from /usr/openwin/include/X11/Xlibint.h:53,
                 from Xrenderint.h:31,
                 from Xrender.c:26:
/usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t'
/usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or union
/usr/include/sys/siginfo.h:76: parse error before `}'
^Cmake: *** [Xrender.o] Interrupt

I tried using the compiler under /usr/ucb/ called cc and get the following:

magoo(/folks/salman/fcpackage.2_0/Xrender)66: make
rm -f Xrender.o
cc -c -O -Xc -xF -xcg92 -mt -I. -I/usr/openwin/include/X11 
-I/usr/openwin/include/X11/extensions  -I/usr/openwin/include  -Dsun -Dsparc 
-DSVR4 -DSYSV   -DXTHREADS -mt -DMALLOC_0_RETURNS_NULL    -Kpic Xrender.c
/usr/ucb/cc:  language optional software package not installed
make: *** [Xrender.o] Error 1


I normally use gcc 3.2.1 for all my compiles.  Must I use cc under /usr/ccb 
and will this successfully compile KDE.  I have compiled KDE which gcc 3.2.1 
but it does not have unaliased font capability. So, I am starting with all 
these xft, Xrender, etc.

Salman




- 
*********************
Salman Sheikh
NASA/GSFC
Code 564
Greenbelt, MD 20771
301-286-3763
301-286-0220 (fax)
email : Salman.I.Sheikh@nasa.gov
**************************8