On Tue, 2007-04-10 at 20:03 +0100, Robert Osfield wrote: > Hi Martin, > > Do you manually install OpenThreads to /opt/OSG/lib and include? Is > there a reason for it not being in /opt/lib or /usr/local/lib? I'm > not familiar with FreeBSD but cmake should be able to find OpenThreads > if installed in standard places, i..e by doing a make install in > OpenThreads. > > With custom install locations you can specify the directory via > OPENTHREADS_DIR which will allow cmake to pick up both the the include > and lib directory relative to this directory. > > The OPENTHREADS_INCLUDE_DIR and OPENTHREADS_LIBRARY vars themselves > are part of the CMake build system rather than env vars, so you can > set this using ccmake rather than cmake. > > Robert.
I install OSG to ~/local, got this same error, and was able to easily resolve it using "ccmake ." and changing those two variables accordingly. > On 4/10/07, Martin Spott <[EMAIL PROTECTED]> wrote: > > Now that people are forced to use CMake in order to stay current with > > OSG I have a little question concerning CMake. I'm using the copy of a > > pristine SVN update and I'm referring to: > > > > http://www.openscenegraph.com/osgwiki/pmwiki.php/Build/CMake > > > > > > quickstep: 18:36:49 /usr/local/src/OpenSceneGraph> ccmake --version > > quickstep: 18:36:54 /usr/local/src/OpenSceneGraph> env > > OPENTHREADS_INCLUDE_DIR="/opt/OSG/include" > > OPENTHREADS_LIBRARY="/opt/OSG/lib" ccmake . > > > > > > I guess I have to press "c" to configure. Afterwards: > > > > > > CMake Error: This project requires some variables to be set, > > and cmake can not find them. > > Please set the following variables: > > OPENTHREADS_INCLUDE_DIR > > OPENTHREADS_LIBRARY > > > > > > > > > > This doesn't make much sense to me. Anyone having a clue here, any > > recommendations on where to start searching for the reason of such > > misbehaviour ? > > > > BTW, I guess "cmake" is the batch-mode complement to "ccmake" - right ? > > Unfortunately the 'result' is the same. > > > > Cheers, > > Martin. > > -- > > Unix _IS_ user friendly - it's just selective about who its friends are ! > > -------------------------------------------------------------------------- > > _______________________________________________ > > osg-users mailing list > > [email protected] > > http://openscenegraph.net/mailman/listinfo/osg-users > > http://www.openscenegraph.org/ > > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
