[XeTeX] Building xetex issues?

Peter Dyballa Peter_Dyballa at Web.DE
Sat May 8 22:57:08 CEST 2010


Am 03.05.2010 um 15:02 schrieb Jonathan Kew:

> On 3 May 2010, at 13:47, Stephen Moye wrote:
>
>> I got the microtype version of xetex, and the build process seemed  
>> to go well until the very last few lines. Is this a fatal error?
>
> Well, it prevented the compilation finishing, so you got no  
> binary.... that seems fairly fatal! :)
>
>> If so, how do I fix it?
>>
>> %%==%%
>>
>> sers/sgm/xetex/texk/web2c/xetexdir/XeTeXLayoutInterface.cpp:867:  
>> error: ‘ATSUGetAttribute’ was not declared in this scope
>> /Users/sgm/xetex/texk/web2c/xetexdir/XeTeXLayoutInterface.cpp:869:  
>> error: ‘FMGetATSFontRefFromFont’ was not declared in this scope
>> make: *** [libxetex_a-XeTeXLayoutInterface.o] Error 1
>> + ls -l /Users/sgm/xetex/build-xetex/texk/web2c/xetex
>> ls: /Users/sgm/xetex/build-xetex/texk/web2c/xetex: No such file or  
>> directory
>>
>
> I'm guessing that you're building on a Snow Leopard system, and so  
> the Apple tools are defaulting to a 64-bit build, which is not  
> supported for xetex on OS X.
>
> If that's the case, try the following:
>
>   export SDK_ROOT=/Developer/SDKs/MacOSX10.5.sdk/
>   export CC="gcc-4.0"
>   export CXX="g++-4.0"
>   sh build-xetex.sh
>
> and see if that works better.


I ran into the same problem trying to compile an Universal Binary for  
32- and 64-bit architectures on Leopard. The function ATSUGetAttribute  
is in /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/QD.framework/ 
Versions/A/Headers/ATSUnicodeObjects.h inside a '#if !__LP64__' clause  
and has this documentation:

  *  Availability:
  *    Mac OS X:         in version 10.0 and later in  
ApplicationServices.framework [32-bit only]
  *    CarbonLib:        in CarbonLib 1.0 and later
  *    Non-Carbon CFM:   in ATSUnicodeLib 8.5 and later

Invoking

g++ -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc64 -dM -E - < / 
dev/null | grep _LP64
g++ -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -dM -E - < / 
dev/null | grep _LP64

both show

	#define __LP64__ 1

So XeTeX on the Mac is a 32-bit only application.

--
Greetings

   Pete

I wouldn't recommend sex, drugs or insanity for everyone, but they've  
always worked for me.
				– Hunter S. Thompson




More information about the XeTeX mailing list