I continue trying to get some clean compilation process, but it seems there's some issue when trying to compile against OpenMW/osg in Manjaro.
It's fine if I just have official openscenegraph package but I wanted to personally benchmark performance differences as mentioned in the compilation guide https://gitlab.com/OpenMW/openmw/-/wiki ... ment_setup.
I'd like to do the same I did for Bullet3 viewtopic.php?f=8&t=7281&p=69733&hilit=compile#p69733. Basically, compile osg in some path, do not install in system paths to avoid pollution, and compile OpenMW against such path linking statically.
But with OSG, setting paths manually does not seem to have effect. For example, add `-DOPENSCENEGRAPH_INCLUDE_DIR` and `-DOPENSCENEGRAPH_LIBRARIES` doesn't prevent cmake from complaining. Also tried adding `OSGDB_LIBRARY` and same result, cmake complains as if it was not set.
I validated the paths are correct and artifacts are present and I am simply adding extra arguments to the same script I use to build bullet, so the usual suspect should be discarded (I hope).
Code: Select all
-- Could NOT find osgDB (missing: OSGDB_LIBRARY)
-- Could NOT find osgViewer (missing: OSGVIEWER_LIBRARY OSGVIEWER_INCLUDE_DIR)
-- Could NOT find osgText (missing: OSGTEXT_LIBRARY OSGTEXT_INCLUDE_DIR)
-- Could NOT find osgGA (missing: OSGGA_LIBRARY OSGGA_INCLUDE_DIR)
-- Could NOT find osgParticle (missing: OSGPARTICLE_LIBRARY OSGPARTICLE_INCLUDE_DIR)
-- Could NOT find osgUtil (missing: OSGUTIL_LIBRARY OSGUTIL_INCLUDE_DIR)
-- Could NOT find osgFX (missing: OSGFX_LIBRARY OSGFX_INCLUDE_DIR)
-- Could NOT find osgShadow (missing: OSGSHADOW_LIBRARY OSGSHADOW_INCLUDE_DIR)
-- Could NOT find osgAnimation (missing: OSGANIMATION_LIBRARY OSGANIMATION_INCLUDE_DIR)
-- Could NOT find osg (missing: OSG_LIBRARY OSG_INCLUDE_DIR)
-- Could NOT find OpenThreads (missing: OPENTHREADS_LIBRARY OPENTHREADS_INCLUDE_DIR)
CMake Error at /usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
OPENSCENEGRAPH_INCLUDE_DIR OSGDB_FOUND OSGVIEWER_FOUND OSGTEXT_FOUND
OSGGA_FOUND OSGPARTICLE_FOUND OSGUTIL_FOUND OSGFX_FOUND OSGSHADOW_FOUND
OSGANIMATION_FOUND OSG_FOUND OPENTHREADS_FOUND) (Required is at least
version "3.4.0")
Call Stack (most recent call first):
/usr/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.21/Modules/FindOpenSceneGraph.cmake:226 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:367 (find_package)
Any help would be greatly appreciated.
Btw, also checked the aur instructions, but those install as system files.