I think if you follow the build out of source suggestion and instead of
doing
|ccmake ../OpenThreads
||make|
|sudo make install |
you do
|cmake -D|CMAKE_INSTALL_PREFIX=/opt/OSG |../OpenThreads
||make|
|make install
|
|it will install openthreads in your |/opt/OSG
|cmake -D|CMAKE_INSTALL_PREFIX=/opt/OSG |../OpenThreads|
|make|
|make install |
By setting CMAKE_INSTALL_PREFIX in the same place than |OpenThreads the
Find command should be able to find your freshly created OpenThreads.
you can set other variables like options using -D<varname>=<varvalue>
during batch build
hope it helps
|Martin Spott wrote:
Hi Robert,
"Robert Osfield" wrote:
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?
Yup, this gives me a safe means to make sure I _really_ rebuild
everuthing from scratch during test-runs. My /opt/OSG/ is owned by a
regular user, so no harm could be done to the system by simply removing
everything that resides in that directory:
# ~> cd /opt/OSG/ && find . -depth | xargs rm -r
And, to be honest, I'd expect from a modern build system to fetch build
dependencies from every place the user likes to store them at. The
directory looks like this - and afterwards, OpenSceneGraph should get
installed accordingly:
quickstep: 0:04:54 ~> find /opt/OSG
/opt/OSG
/opt/OSG/lib
/opt/OSG/lib/libOpenThreads.so
/opt/OSG/include
/opt/OSG/include/OpenThreads
/opt/OSG/include/OpenThreads/Barrier
/opt/OSG/include/OpenThreads/Block
/opt/OSG/include/OpenThreads/Condition
/opt/OSG/include/OpenThreads/Exports
/opt/OSG/include/OpenThreads/Mutex
/opt/OSG/include/OpenThreads/ReadWriteMutex
/opt/OSG/include/OpenThreads/ReentrantMutex
/opt/OSG/include/OpenThreads/ScopedLock
/opt/OSG/include/OpenThreads/Thread
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.
If I understand correctly, then 'ccmake' is designed to be an
interactive tool, right !? A user should be able to set these variables
during an unattended batch-run, how do I manage to do this ?
Cheers,
Martin.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/