[Xorg] Crosscompile for Solaris

Alexander Gottwald alexander.gottwald at s1999.tu-chemnitz.de
Mon Jun 28 08:07:48 PDT 2004


On Mon, 28 Jun 2004, Peter Astrand wrote:

> On Mon, 28 Jun 2004, Alexander Gottwald wrote:
> > > 
> > > 2. Put this in config/cf/host.def:
> > > 
> > > #define HasFontconfig           NO
> > > #define HasGcc3 		YES
> > > #define CrossCompiling          YES
> > > #include <cross.def>
> > 
> > The last two are not required (afaik). Setting CROSSCOMPILEDIR does include
> > cross.def and sets CrossCompiling too.
> 
> It doesn't work for me without those. If I don't have those, cross.def is 
> not parsed at all (I've tested this by inserting a #error line). 

hm yes. We have this in cgwin.cf
#if CrossCompiling
#include <cross.def>
#endif

> > You don't have fontconfig (cross version) installed. Add this to your host.def:
> > 
> > #define HasFontconfig NO
> > #define HasExpat NO
> > #define HasMotif NO
> > #define HasMotif2 NO
> 
> Thanks. 
> 
> > You could add
> > #define BuildClients NO
> > #define BuildFonts NO
> > #define BuildDocs NO
> > #define BuildServers YES
> > 
> > to host.def
> 
> I have now been able to produce a Xvfb binary. Some additional problems:
> 
> 1) The build of "Xsun" failed, with:
> 
> sunCfb.c:311:24: sys/cg2reg.h: No such file or directory
> 
> What's the easiest way of disabling the build of Xsun?

#define XsunServer NO

> 2) Xvfb wanted to link with "-lfreetype". This failed, because no 
> "libfreetype.so" existed in the exports/lib directory. This was solved by 
> a symlink:
>
> ln -s libfreetype.so.9.0 libfreetype.so

This is normally done by the SharedLibraryTarget rule. maybe is it not defined
properly

> 3) I needed to manually make Xvfb link with "-lnsl -lsocket". I wonder why 
> the definition of ExtraLibraries from sun.cf was not used.

> Now I just have to figure out how to link libfreetype statically...

bye
	ago
-- 
 Alexander.Gottwald at s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723




More information about the xorg mailing list