Hi Carsten,

On Thu, 02 Sep 2010 16:17:03 -0500
Carsten Neumann <carsten_neum...@gmx.net> wrote:

> On 09/02/10 11:19, Patric Schmitz wrote:
> > why isn't it possible to use the freetype2 backend also on MacOS X?
> 
> there is a platform specific text backend for Mac OS, but it is
> possible that it uses something that has become deprecated/removed in
> recent versions.

Yes, sadly it works only for 32 bit for now, which is not an option for
us.

> > Since the library is available, it seems to be merely a question of
> > the build system configuration.
> 
> quite possible, but I don't know if anything special is needed on Mac
> OS.
> 
> > And the following lines have to be re-ordered in the TextFaceFactory
> > constructor:
> >
> > #if defined(_WIN32)
> >      _backend = new TextWIN32Backend();
> > #elif defined(FT2_LIB)
> >      _backend = new TextFT2Backend();
> > #elif defined(__APPLE__)
> > #ifdef __LP64__
> >      _backend = 0;
> > #else
> >      _backend = new TextMacBackend();
> > #endif
> >      //_backend = new TextFT2Backend();
> > #else
> >      _backend = 0;
> > #endif
> >
> > Before, the __APPLE__ define was checked first thus it wasn't
> > possible to enable the freetype backend on Mac OS.
> 
> ok.
> 
> > However, I don't manage to tweak the build system for darwin (I use
> > autoconf) to set the appropriate FT2_LIB define and include the
> > library during build. Is someone able to quickly allow this, so that
> > --enable-text also has an effect on Mac OS? That would be great.
> 
> take a look at CommonConf/commonTEXT.in, it looks as if that
> assembles the compiler/linker options to use FT2 and for darwin it
> simply clears out the variables so that it is skipped. I'm mostly
> guessing here though, I never looked into the details of the autoconf
> based build.

Ok I did it, everything works fine!

What I have done:

* reordering #ifdefs in the TextFaceFactory as above
* removing the mentioned lines in commonText.in which clear the vars
  for darwin
* in configure, ll. ~10996-11000 the darwin exception also has to be
  removed
* since the freetype lib is installed below /usr/X11/, I had to pass
  --with-textincludedir=/usr/X11/include/freetype2 as well as
  --with-add-incdir=/usr/X11/include, this might be combined in the
  includedir construction/resolution in configure (actually i guess the
  stuff has to be changed in the source configure.in file, but I didn't
  cope with that)

Would be super if this would get into the CVS version of 1.8 at some
time, so that a text-enabled 64bit build works without manually
patching the above things.

Thanks for your helpful directions.

Best Regards,
Patric

-- 
Patric Schmitz, MaTA, B.Sc.

Virtual Reality Group, RWTH Aachen University
Lehrstuhl für Informatik 12 (Hochleistungsrechnen)

Immersive Visualization Services

  Rechen- und Kommunikationszentrum
  Seffenter Weg 23, 52074 Aachen
  Tel. +49 241 80-24893
  Email schm...@vr.rwth-aachen.de
  URL www.vr.rwth-aachen.de

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to