Hello Patric, 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. > 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. > For now I'm trying to build OpenSG as 32 bit, let's see if that works > for me, since the app itself has to be 64 bit. hm, not sure if that can work... Cheers, Carsten ------------------------------------------------------------------------------ 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