MantisBT - CMake
View Issue Details
0015121CMakeCMakepublic2014-09-01 16:292016-06-10 14:31
Hartmut Seichter 
Kitware Robot 
normalmajoralways
closedmoved 
OSX and Linux
CMake 3.0.1 
 
0015121: OpenSceneGraph module broken
On Arch Linux and Mac OS X 10.9.3 the find module for OpenSceneGraph stopped working. Seems the combination cmake 3.0.x and OSG 3.2.1 is having issues. Also setting OSG_DIR and CMAKE_PREFIX_PATH seem to have no effect. This is quite an issue as most OSG dependent project will use cmake as build system.

An OSX example with debug on ...

cmake -DOpenSceneGraph_DEBUG=ON -DCMAKE_PREFIX_PATH=/opt/local -DOSG_DIR=/opt/local ../VisionSpace
-- [ FindOpenSceneGraph.cmake:128 ] Components = osg;OpenThreads
-- [ FindOpenSceneGraph.cmake:200 ] Calling find_package(osg )
-- Could NOT find osg (missing: OSG_LIBRARY OSG_INCLUDE_DIR)
-- [ FindOpenSceneGraph.cmake:200 ] Calling find_package(OpenThreads )
-- Could NOT find OpenThreads (missing: OPENTHREADS_LIBRARY OPENTHREADS_INCLUDE_DIR)
CMake Error at /opt/local/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
  Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
  OPENSCENEGRAPH_INCLUDE_DIR OSG_FOUND OPENTHREADS_FOUND)
Call Stack (most recent call first):
  /opt/local/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
  /opt/local/share/cmake-3.0/Modules/FindOpenSceneGraph.cmake:230 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:11 (find_package)
Arch Linux (x86_64, cmake-3.0.1-1, openscenegraph-3.2.1-1)
Mavericks (MacPorts, CMake @3.0.0_3, OpenSceneGraph @3.2.1)

Clear cache (it kept working on an install where the cache was moved over from an older CMake build).

Minimal project (https://github.com/seichter/sandbox/tree/master/bugreports/cmake-osg [^]) with find_package(OpenSceneGraph REQUIRED)


No tags attached.
Issue History
2014-09-01 16:29Hartmut SeichterNew Issue
2014-09-02 10:29Brad KingAssigned To => Philip Lowman
2014-09-02 10:29Brad KingStatusnew => assigned
2014-09-02 10:29Brad KingTarget Version => CMake 3.1
2014-10-03 09:26Brad KingNote Added: 0036895
2014-10-03 09:26Brad KingAssigned ToPhilip Lowman =>
2014-10-03 09:26Brad KingStatusassigned => backlog
2014-10-03 09:26Brad KingTarget VersionCMake 3.1 =>
2014-10-06 15:00Hartmut SeichterNote Added: 0036985
2016-06-10 14:29Kitware RobotNote Added: 0042617
2016-06-10 14:29Kitware RobotStatusbacklog => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0036895)
Brad King   
2014-10-03 09:26   
Moving to backlog due to lack of an active module maintainer:

 http://www.cmake.org/Wiki/CMake:Module_Maintainers [^]

As OpenSceneGraph builds with CMake, its upstream should provide a package configuration file so that no find module is needed:

 http://www.cmake.org/cmake/help/v3.0/manual/cmake-packages.7.html [^]
(0036985)
Hartmut Seichter   
2014-10-06 15:00   
Just cross-checked with CMake 3.0.2 and the problem seems gone. Both on Arch and Mac. Maybe this was some fallout from a different problem.

And agreed, OSG should use config files as it is a long time CMake user.
(0042617)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.