That is, I cloned both open-mw and the openmw-specific version of osg. When running cmake on osg, I get the following warning:
Code: Select all
The build system is configured to install libraries to /usr/local/lib64
Your applications may not be able to find your installed libraries unless you:
set your LD_LIBRARY_PATH (user specific) or
update your ld.so configuration (system wide)
You have an ld.so.conf.d directory on your system, so if you wish to ensure that
applications find the installed osg libraries, system wide, you could install an
OpenSceneGraph specific ld.so configuration with:
sudo make install_ld_conf
, compile and install osg, and then proceed do open-mw itself.sudo make install_ld_conf
When running cmake on open-mw I am told that osg has not been found:
Code: Select all
-- Could NOT find osgDB (missing: OSGDB_LIBRARY)
-- Could NOT find osgViewer (missing: OSGVIEWER_LIBRARY)
-- Could NOT find osgText (missing: OSGTEXT_LIBRARY)
-- Could NOT find osgGA (missing: OSGGA_LIBRARY)
-- Could NOT find osgAnimation (missing: OSGANIMATION_LIBRARY)
-- Could NOT find osgParticle (missing: OSGPARTICLE_LIBRARY)
-- Could NOT find osgUtil (missing: OSGUTIL_LIBRARY)
-- Could NOT find osgFX (missing: OSGFX_LIBRARY)
-- Could NOT find osg (missing: OSG_LIBRARY)
-- Could NOT find OpenThreads (missing: OPENTHREADS_LIBRARY)
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
OSGDB_FOUND OSGVIEWER_FOUND OSGTEXT_FOUND OSGGA_FOUND OSGANIMATION_FOUND
OSGPARTICLE_FOUND OSGUTIL_FOUND OSGFX_FOUND OSG_FOUND OPENTHREADS_FOUND)
(found suitable version "3.4.0", minimum required is "3.3.4")
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.5/Modules/FindOpenSceneGraph.cmake:234 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:228 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/thomas/Downloads/Spiele/OpenMW/openmw/build/CMakeFiles/CMakeOutput.log".
See also "/home/thomas/Downloads/Spiele/OpenMW/openmw/build/CMakeFiles/CMakeError.log".
I have no idea how to either tell osg to be installed somewhere where cmake can find it[1] or how to tell cmake in open-mw where to find osg.
Information on cmake I find seems all to be about how to use cmake as a developer.
[1] It's a warning by cmake. Why doesn't that tell me how to do this?