freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] RE: compiling FreeType library for 64 bit code


From: Vadim Plessky
Subject: Re: [Devel] RE: compiling FreeType library for 64 bit code
Date: Fri, 25 Oct 2002 14:30:05 +0400
User-agent: KMail/1.4.7

On Friday 18 October 2002 2:46 am, Keith Trummel wrote:
|  FYI,
|
|      Changing line 186 in the file ftcache.h from
|
|  #define FTC_FACE_ID_HASH( i )  ((FT_UInt32)(FT_Pointer)( i ))
|
|  to be:
|
|  #define FTC_FACE_ID_HASH( i )  ((FT_UInt32)((unsigned long) i &
|  0xffffffffL))
|

Hi, 

I think you should look into headers and change FT_Pointer to (unsigned long) 
for your particular platform (Solaris), using #ifdef
Than test FreeType using different apps - and send diff back to the list (if 
everything works fine).

|  fixes the problem when producing 64 bit code both using Sun's C++ compiler
|  and IBM's C++ compiler.  Presumably, it also still keeps the hashing
|  performance reasonable.
|
|  Keith
|
|  >  -----Original Message-----
|  > From:      Keith Trummel
|  > Sent:      Thursday, October 17, 2002 3:29 PM
|  > To:        'address@hidden'
|  > Subject:   compiling FreeType library for 64 bit code
|  >
|  > Hello,
|  >
|  >     I was wondering if anyone had compiled the FreeType library (2.1.2)
|  > for use with a 64 bit executable.  When I attempted to compile the code
|  > on Solaris I get problems because there are several places where it
|  > attempts to convert pointers to 32 bit ints.
|  > Specifically when compiling the code in the cache subdirectory I get:
|  >
|  > "src/cache/ftcimage.c", line 243: Error: Cannot cast from void* to
|  > unsigned.
|  > "src/cache/ftcsbits.c", line 392: Error: Cannot cast from void* to
|  > unsigned.
|  > "src/cache/ftccmap.c", line 220: Error: Cannot cast from void* to
|  > unsigned.
|  >
|  > Keith Trummel
|  > Scene7 Inc.
|
|  _______________________________________________
|  Devel mailing list
|  address@hidden
|  http://www.freetype.org/mailman/listinfo/devel

Best Regards,
-- 

Vadim Plessky
http://kde2.newmail.ru  (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]