Re: [cgkit-user] cgkit svn trunk : Compilation error on Mac OSX Leopard
Brought to you by:
mbaas
From: Maxime W. <max...@fr...> - 2008-12-06 12:10:43
|
OK : the "hack" works fine : cgkit 2.0 from trunk builds and runs on Leopard. Le 4 déc. 08 à 22:28, Matthias Baas a écrit : > Maxime Wacker wrote: >> I've just get sources from Subversion and tryed to build : >> My scons and boost libs come frome macport. >> >> max@MaxBP:supportlib$ scons >> scons: Reading SConscript files ... >> 26 source files >> C++ compiler version: 4.0.1 >> [...] >> src/polyhedrongeom.cpp: In member function 'virtual void >> support3d::PolyhedronGeom::drawGL()': >> src/polyhedrongeom.cpp:604: error: invalid conversion from 'GLvoid >> (*) >> (...)' to 'GLvoid (*)()' >> src/polyhedrongeom.cpp:604: error: initializing argument 3 of 'void >> gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' > > Interesting. > Have a look at line 400 in polyhedrongeom.cpp where you find this: > > #if (defined(__APPLE__) || defined(MACOSX)) && defined(__GNUC__) > typedef GLvoid (CALLBACK *TessCallback)(...); > #else > typedef GLvoid (CALLBACK *TessCallback)(); > #endif > > I suppose the code will compile for you if you remove the above and > just > leave the second typedef. The thing is, if I do that on Tiger (which > is > what I am still using) then I get the same error as above, just the > other way around. And frankly, I have no idea why I get that error on > Tiger in the first place. > So the question now is, how do I detect at compile time if we are on > Tiger or Leopard? > > - Matthias - > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 to > help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > cgkit-user mailing list > cgk...@li... > https://lists.sourceforge.net/lists/listinfo/cgkit-user |