Board index FlightGear Support Compiling

OSG 3.0.1 build failed

Building FlightGear from source, and in the need for help?

OSG 3.0.1 build failed

Postby Philosopher » Sat Jul 20, 2013 4:22 am

Mac: 10.7.5
GCC: 4.2.1
CMake: 2.8.11.2
Make: 3.81

~~~


Build error:
Code (Error log): Select all
$ pushd ~/Downloads/OpenSceneGraph-3.0.1/ && cmake ./
CMake Warning at /Users/philosopher/local/share/cmake-2.8/Modules/FindITK.cmake:48 (find_package):
Could not find a package configuration file named "ITKConfig.cmake"
provided by package "ITK".

Add the installation prefix of "ITK" to CMAKE_PREFIX_PATH or set "ITK_DIR"
to a directory containing one of the above files. If "ITK" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
CMakeLists.txt:465 (FIND_PACKAGE)


-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found unsuitable Qt version "" from NOTFOUND
-- Could NOT find Qt3 (missing: QT_QT_LIBRARY QT_INCLUDE_DIR QT_MOC_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/philosopher/Downloads/OpenSceneGraph-3.0.1
[ 0%] Built target OpenThreads
[ 12%] Built target osg
[ 15%] Built target osgUtil
[ 17%] Built target osgDB
[ 19%] Built target osgGA
[ 20%] Built target osgText
[ 20%] Building CXX object src/osgViewer/CMakeFiles/osgViewer.dir/DarwinUtils.mm.o
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm: In member function ‘virtual void osgDarwin::DarwinWindowingSystemInterface::getScreenSettings(const osg::GraphicsContext::ScreenIdentifier&, osg::GraphicsContext::ScreenSettings&)’:
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:316: error: ‘CGDisplayBitsPerPixel’ was not declared in this scope
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:317: warning: ‘CGDisplayCurrentMode’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:458)
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:317: warning: ‘CGDisplayCurrentMode’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:458)
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm: In member function ‘virtual void osgDarwin::DarwinWindowingSystemInterface::enumerateScreenSettings(const osg::GraphicsContext::ScreenIdentifier&, std::vector<osg::GraphicsContext::ScreenSettings, std::allocator<osg::GraphicsContext::ScreenSettings> >&)’:
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:335: warning: ‘CGDisplayAvailableModes’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:432)
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:335: warning: ‘CGDisplayAvailableModes’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:432)
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm: In member function ‘bool osgDarwin::DarwinWindowingSystemInterface::setScreenResolutionImpl(const osg::GraphicsContext::ScreenIdentifier&, unsigned int, unsigned int)’:
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:401: warning: ‘CGDisplayCurrentMode’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:458)
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:401: warning: ‘CGDisplayCurrentMode’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:458)
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:403: warning: ‘CGDisplayBestModeForParametersAndRefreshRate’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:445)
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:405: error: ‘CGDisplayBitsPerPixel’ was not declared in this scope
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:411: warning: ‘CGDisplaySwitchToMode’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:463)
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:411: warning: ‘CGDisplaySwitchToMode’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:463)
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm: In member function ‘bool osgDarwin::DarwinWindowingSystemInterface::setScreenRefreshRateImpl(const osg::GraphicsContext::ScreenIdentifier&, double)’:
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:433: warning: ‘CGDisplayBestModeForParametersAndRefreshRate’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:445)
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:435: error: ‘CGDisplayBitsPerPixel’ was not declared in this scope
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:442: warning: ‘CGDisplaySwitchToMode’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:463)
/Users/philosopher/Downloads/OpenSceneGraph-3.0.1/src/osgViewer/DarwinUtils.mm:442: warning: ‘CGDisplaySwitchToMode’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:463)
make[2]: *** [src/osgViewer/CMakeFiles/osgViewer.dir/DarwinUtils.mm.o] Error 1
make[1]: *** [src/osgViewer/CMakeFiles/osgViewer.dir/all] Error 2
make: *** [all] Error 2


I downloaded the third-party libs (http://flightgear.simpits.org:8080/job/ ... rchive.zip), OSG source, and now I'm getting this. Any ideas? (No, I have no idea what I'm doing ;))

P.S. Compiling Nasal went well, 'tis happy now
Thanks,
Philosopher
(inactive but lurking occasionally...)
Philosopher
 
Posts: 1590
Joined: Sun Aug 12, 2012 6:29 pm
Location: Stuck in my head...
Callsign: AFTI
Version: Git
OS: Mac OS X 10.7.5

Re: OSG 3.0.1 build failed

Postby Hooray » Thu Jul 25, 2013 3:38 pm

Only just saw this, the OSG users list has some related discussion: http://forum.openscenegraph.org/viewtopic.php?t=8894

If that doesn't fix it, I suggest to get in touch with Zakalawe, who's the only other Mac-based developer I am aware of, so not sure if there are any Apple-specific details not covered by the instructions/dependencies ?

(I'd probably be inclined to build locally with a custom CMAKE_INSTALL_PREFIX pointing to your $HOME, that way you can build and uses latest OSG)
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11309
Joined: Tue Mar 25, 2008 8:40 am


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest