Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindOpenSceneGraph.cmake fails to get the version from OpenSceneGraph 3.6 #66

Open
dmbaturin opened this issue May 9, 2021 · 1 comment

Comments

@dmbaturin
Copy link

I'm trying to build using OpenSceneGraph branch 3.6 that I built from their git repository, and the CMake module fails in the following way:

[ FindOpenSceneGraph.cmake:157 ] Failed to parse version number, please report this as a bug
-- Found osgDB: /home/dmbaturin/opt/openmw/osg-openmw/lib/libosgDB.so  
-- Found osgViewer: /home/dmbaturin/opt/openmw/osg-openmw/lib/libosgViewer.so  
-- Found osgText: /home/dmbaturin/opt/openmw/osg-openmw/lib/libosgText.so  
-- Found osgGA: /home/dmbaturin/opt/openmw/osg-openmw/lib/libosgGA.so  
-- Found osgParticle: /home/dmbaturin/opt/openmw/osg-openmw/lib/libosgParticle.so  
-- Found osgUtil: /home/dmbaturin/opt/openmw/osg-openmw/lib/libosgUtil.so  
-- Found osgFX: /home/dmbaturin/opt/openmw/osg-openmw/lib/libosgFX.so  
-- Found osgShadow: /home/dmbaturin/opt/openmw/osg-openmw/lib/libosgShadow.so  
-- Found osgAnimation: /home/dmbaturin/opt/openmw/osg-openmw/lib/libosgAnimation.so  
-- Found osg: /home/dmbaturin/opt/openmw/osg-openmw/lib/libosg.so  
-- Found OpenThreads: /home/dmbaturin/opt/openmw/osg-openmw/lib/libOpenThreads.so  
CMake Error at /usr/share/cmake/Modules/FindOpenSceneGraph.cmake:226 (message):
  ERROR: Version 3.3.4 or higher of the OSG is required.  Version ..  was
  found.
Call Stack (most recent call first):
  CMakeLists.txt:358 (find_package)

I'm ready to do any additional testing if required.

The include/osg/Version file looks fine.

#ifndef OSG_VERSION
#define OSG_VERSION 1

#include <osg/Export>

extern "C" {

#define OPENSCENEGRAPH_MAJOR_VERSION    3
#define OPENSCENEGRAPH_MINOR_VERSION    6
#define OPENSCENEGRAPH_PATCH_VERSION    5
#define OPENSCENEGRAPH_SOVERSION        162

@dmbaturin
Copy link
Author

Sorry, I forgot. My CMake version is 3.19.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant