On Nov 6, 2012, at 9:34 PM, Alexander Burger wrote: > Hi Jorge, > >> + ... >> + "/System/Library/Frameworks/OpenGL.framework/OpenGL" >> + ... >> + "/System/Library/Frameworks/GLUT.framework/GLUT" >> + ... >> >> Shouldn't it just provide sane defaults for the platform in question? >> There is no libGLU.so on OS X... > > Hmm, I'm not sure I understand that. Are the above not libraries?
Sort of. Those are frameworks, frameworks encapsulate headers/shared libraries (bundles) and resources. > > >>> (setq >>> *GluLib "/System/Library/Frameworks/OpenGL.framework/OpenGL" >>> *GlutLib "/System/Library/Frameworks/GLUT.framework/GLUT" ) >>> >>> (load "@lib/openGl.l") >>> >>> In that way, the 'default' in the library won't override it. >> >> But that seems contrary to the DRY motto. All applications will need >> to do that in order to run on OS X. > > Well, it could be encapsulated in a commont source file or even > command line argument. > > > I just feel uneasy to hard-code special library locations. Shouldn't > that be provided by the system environment, like load-library paths? Ok, in that case just remove /System/Library/ from the paths. I tested and it works OK. > > That's why I removed "/usr/lib/" from the two variables. > > Cheers, > - Alex > -- > UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe -- UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
