[Fluxus] os x 10.5 and fluxus from trunk

gabor papp gabor.lists at mndl.hu
Mon Apr 21 22:20:53 PDT 2008


> gabor, i tried also your patched code but xcode complained about some missing files.
i just compiled that code yesterday on a friend's machine with leopard. 
there were two issues with it, but it compiled fine.

- plt scheme path is hardcoded, which is not very nice, but i could not 
find a quick way to solve this. locate this part in the SConstruct file:

elif OS == 'darwin':
         PLTPrefix = ARGUMENTS.get('PLTPrefix', '/Applications/PLT 
Scheme v371')

and change it to the location of your plt scheme application.

- src/PolyGlyph.cpp is now patched in the cvs version, but it's still 
the old one in that tarball, which fails to compile on leopard.  locate 
this part in the code:

#ifdef __APPLE__
     gluTessCallback(t, GLU_TESS_BEGIN_DATA, (GLvoid 
(*)())PolyGlyph::TessBegin);
     gluTessCallback(t, GLU_TESS_VERTEX_DATA, (GLvoid 
(*)())PolyGlyph::TessVertex);
     gluTessCallback(t, GLU_TESS_COMBINE_DATA, (GLvoid 
(*)())PolyGlyph::TessCombine);
     gluTessCallback(t, GLU_TESS_END_DATA, (GLvoid 
(*)())PolyGlyph::TessEnd);
     gluTessCallback(t, GLU_TESS_ERROR_DATA, (GLvoid 
(*)())PolyGlyph::TessError);
#else
     gluTessCallback(t, GLU_TESS_BEGIN_DATA, (void 
(*)())PolyGlyph::TessBegin);
     gluTessCallback(t, GLU_TESS_VERTEX_DATA, (void 
(*)())PolyGlyph::TessVertex);
     gluTessCallback(t, GLU_TESS_COMBINE_DATA, (void 
(*)())PolyGlyph::TessCombine);
     gluTessCallback(t, GLU_TESS_END_DATA, (void (*)())PolyGlyph::TessEnd);
     gluTessCallback(t, GLU_TESS_ERROR_DATA, (void 
(*)())PolyGlyph::TessError);
#endif

and modify the #ifdef __APPLE__ line to:

#if (defined __APPLE__) && (MAC_OS_X_VERSION_MAX_ALLOWED <= 
MAC_OS_X_VERSION_10_4)

on the top of the file add:

#ifdef __APPLE__
#include <AvailabilityMacros.h>
#endif

if it still does not work, please send the errors you are getting.

i didn't know it's possible to use xcode with scons. i compile from the 
command line instead. how do you tell xcode to use scons?

i'm trying to patch the current cvs version in the next few days if i 
find some time.

gabor




More information about the Fluxus mailing list