Hi,

I've had success building for 10.8.x in the past, using a simple .sh script to 
set cmake on its way. Upon switching to 10.9 and using XCode5-DP6, I'm having 
problems getting cmake to see OpenGL.

Here's how I kick off cmake (where ARCH in this case is x86_64):


> 
> OPTIONS="-DBUILD_OSG_APPLICATIONS=0"
> OPTIONS="-DBUILD_OSG_EXAMPLES=0 $OPTIONS"
> OPTIONS="-DOSG_COMPILE_FRAMEWORKS=1 $OPTIONS"
> OPTIONS="-DOSG_COMPILE_FRAMEWORKS_INSTALL_NAME_DIR=@rpath $OPTIONS"
> OPTIONS="-DOSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio $OPTIONS"
> OPTIONS="-DOSG_WINDOWING_SYSTEM=Cocoa $OPTIONS"
> OPTIONS="-DCMAKE_INSTALL_PREFIX=~/Desktop/OSGFramework-$TYPE-$ARCH $OPTIONS"
> 
> export CC=`xcrun -find clang`
> export CXX=`xcrun -find clang++`
> cmake ../$DIR -DCMAKE_BUILD_TYPE=$TYPE -DCMAKE_OSX_ARCHITECTURES=$ARCH 
> $OPTIONS
> 


Compilers being used are:

> 
> CC = 
> /Applications/Xcode5-DP6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
> CXX = 
> /Applications/Xcode5-DP6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
> 


And finally, here's the error I'm seeing:

> 
> -- Could NOT find LibXml2 (missing:  LIBXML2_INCLUDE_DIR) 
> -- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
> -- Could NOT find CURL (missing:  CURL_INCLUDE_DIR) 
> -- Could NOT find SDL (missing:  SDL_LIBRARY SDL_INCLUDE_DIR) 
> -- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
> -- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
> -- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
> -- Could NOT find Boost
> -- Could NOT find Qt4 (missing:  QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE 
> QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR 
> QT_QTCORE_LIBRARY) 
> -- Could NOT find Qt3 (missing:  QT_QT_LIBRARY QT_INCLUDE_DIR 
> QT_MOC_EXECUTABLE) 
> -- Could NOT find TIFF (missing:  TIFF_LIBRARY TIFF_INCLUDE_DIR) 
> disabling quicktime because it's not supported by the selected SDK macosx10.9
> Will compile OpenThreads.framework!
> CMake Error: The following variables are used in this project, but they are 
> set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the CMake 
> files:
> OPENGL_INCLUDE_DIR (ADVANCED)
>    used as include directory in directory 
> /Volumes/Development/Users/neil/GitDevelopment/swb/ThirdParty/Source/OSG/osg
>    used as include directory in directory 
> /Volumes/Development/Users/neil/GitDevelopment/swb/ThirdParty/Source/OSG/osg/src/OpenThreads/pthreads
> ....
> ....
> 


I'm no expert in cmake at all.
Can someone please point me in the right direction regarding either a known fix 
(I did search before I posted), or where I should begin looking to resolve 
(i.e: setting of vars; etc)

Thank you!

Cheers,
Neil

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=56570#56570





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to