Thank you Robert, A very obvious comment from you but my sanity is restored - I was doing too much and thats why it didn't work.
Just setting the source code and build directories to the top level OSG directory was indeed the answer. (It still failed because I have to add the OPENTHREADS_INCLUDE_DIR and OPENTHREADS_LIBRARY environmental variables, but it got well beyond the SETUP_PLUGIN problem.) PhilT -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Robert Osfield Sent: 03 April 2007 20:23 To: osg users Subject: Re: [osg-users] cmake and VS8 Hi Philip, You should be able to just point CMakeSetup at the OpenSceneGraph directory and let it configure everything just from the main OpenSceneGraph/CMakeLists.txt file, there shouldn't be any need to configure bin, lib and source directories. Robert. On 4/3/07, Philip Taylor <[EMAIL PROTECTED]> wrote: > Hi Robert, > > Cmake 2.4 Patch 6 and OSG SVN all downloaded today. > > The macro is defined in OpenSceneGraph/CMakeModules/OsgMacroUtils.cmake, so > I think my problem is down to configuring CMake before actually using it. > > What paths should be used at the top of the CMake dialog to identify the OSG > source code and where to build the binaries? I currently have > <OSG>/OpenSceneGraph/src and <OSG>/OpenSceneGraph/bin selected - where <OSG> > is the path to my OSG main directory. (I realise you use the Linux version, > but I am hoping the Linux and Windows versions of CMake have a similar GUI.) > > Meanwhile, I shall follow the maxim "If all else fails, read the [CMake] > manual." > > PhilT > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Robert Osfield > Sent: 03 April 2007 14:29 > To: osg users > Subject: Re: [osg-users] cmake and VS8 > > > Hi Philip, > > On 4/3/07, Philip Taylor <[EMAIL PROTECTED]> wrote: > > Hi > > > > Just did my first cmake build against the latest SVN with VS8 Express, and > > got a configuration error: > > > > Cmake Error: Error in cmake code at > > C:/Projects/OSG/OpenSceneGraph/src/osgPlugins/osgFX/CmakeLists.txt:15: > > Unknown CMake command "SETUP_PLUGIN". > > > > because the automatically generated CMakeLists.txt contains the final line > > > > SETUP_PLUGIN(osgFX) > > > > so what is missing ? > > Not sure what is amiss. > > SETUP_PLUGIN is defined in > OpenSceneGraph/CMakeModeules/OsgMacroUtils.cmake. The > OpenSceneGraph/CMakeLists.txt explictly includes this cmake file so > the macro should be defined when it comes across the > osgFX/CMakeLists.txt > > How have you gone about setting up CMake? What CMake version do you have? > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
