View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015121CMakeCMakepublic2014-09-01 16:292016-06-10 14:31
ReporterHartmut Seichter 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSX and LinuxOSOS Version
Product VersionCMake 3.0.1 
Target VersionFixed in Version 
Summary0015121: OpenSceneGraph module broken
DescriptionOn 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)
Steps To ReproduceArch 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)


TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0036895)
Brad King (manager)
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 (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2014-09-01 16:29 Hartmut Seichter New Issue
2014-09-02 10:29 Brad King Assigned To => Philip Lowman
2014-09-02 10:29 Brad King Status new => assigned
2014-09-02 10:29 Brad King Target Version => CMake 3.1
2014-10-03 09:26 Brad King Note Added: 0036895
2014-10-03 09:26 Brad King Assigned To Philip Lowman =>
2014-10-03 09:26 Brad King Status assigned => backlog
2014-10-03 09:26 Brad King Target Version CMake 3.1 =>
2014-10-06 15:00 Hartmut Seichter Note Added: 0036985
2016-06-10 14:29 Kitware Robot Note Added: 0042617
2016-06-10 14:29 Kitware Robot Status backlog => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team