[osg-users] [build] Cmd line cmake for OSX under 10.9

2013-10-01 Thread Neil Clayton
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


Re: [osg-users] [build] Cmd line cmake for OSX under 10.9

2013-10-01 Thread Neil Clayton
The magic gnomes visited.

I deleted my source tree and re-checked out.
Still no luck. Now it can't even find stdlib.h. Hmm.

I then tried various other versions of Xcode via xcode-switch, and found my old 
xcode4.6.3 wasn't installed properly. Not that it worked when I fixed that, 
because the scripts pick up a SDK of 10.9 which isn't supported by 4.6.3.

Anyway; I switched back to xcode5-dp6, rebooted for some other reason not 
related to this problem at all, and low and behold while I was messing with 
other things the gnomes visited and fixed everything. How odd. 

I wonder ... who let them in?

Anyway; for reasons unknown to mortal man it's now working. Yay, I guess!

--
Neil

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





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