> I'm trying to build OpenSG with the Cal3D contrib > included. I'm wondering if the cal3d contrib part > is "sconsified", I'm afraid it could compile only using > make. True or false? How do I add an include&lib path > with scons anyway (for the cal3d lib...)?
hi antonio you are not the first with this wish: https://opensg.vrsource.org/trac/ticket/142 in the sconstruct of your app, add something like this: ... optionscache = '.options' opts = Options(optionscache) opts.Add('cal3dprefix', 'path to the cal3d libs', '/usr') cal3dprefix = env.get('cal3dprefix') ... env.Append(CPPPATH = [cal3dprefix+'/include']) env.Append(LIBPATH = [cal3dprefix+'/lib']) env.Append(RPATH = [cal3dprefix+'/lib']) ... conf = Configure(env) ... other stuff, like m and GLUT etc ... if not conf.CheckLibWithHeader('cal3d', 'cal3d/cal3d.h', 'c++'): print 'Did not find Cal3D library, exiting!' Exit(1) if not conf.CheckLib('OSGBase'): print 'Did not find OpenSG base library, exiting!' Exit(1) if not conf.CheckLib('OSGSystem'): print 'Did not find OpenSG system library, exiting!' Exit(1) if not conf.CheckLib('OSGWindowX'): print 'Did not find OpenSG X window library, exiting!' Exit(1) if not conf.CheckLib('OSGWindowGLUT'): print 'Did not find OpenSG GLUT window library, exiting!' Exit(1) if not conf.CheckLib('OSGContrib'): print 'Did not find OpenSG Contrib library, exiting!' Exit(1) if not conf.CheckCXXHeader('OpenSG/OSGConfig.h'): print 'Did not find OpenSG headers, exiting!' Exit(1) env = conf.Finish() ... cheer[s] ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
