Hi Maurizio,

I was following the tutorial  here 
(http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/VisualStudio/VisualStudioPlugins)

I wrote that tutorial, but note that it's been a very long while since I've compiled the OpenVRML plugin (or OpenVRML itself, for that matter) so my recollections could be out of date / wrong. :-)

I compiled OpenVRML without any issue. but when it comes to using CMake on the VRML 
plugin I downloaded here 
(http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/src/osgPlugins/vrml?rev=8591)
 the tutorial stops making sense..I cannot find where I should be "specifying the 
...\OpenVRML\home-built\include directory in OPENVRML_INCLUDE_DIR and 
...\OpenVRML\home-built\lib\openvrml.lib library in OPENVRML_LIBRARY." . When I 
generate I end up with an VC++ solution that does not include any of the original source 
files, and as such when I compile it with VC++ (2005) the compilation is skipped (as 
there is nothing to compile). I apologise if these are stupid issues but I am new to OSG 
and to CMake as well.

It sounds like you're using the OpenVRML plugin's directory as the base path in CMake, which is not what you should be using. You need to start CMake and give the base directory where the OSG sources are in "Where is the source code". Not a sub-directory.

Then, among all the configuration variables like ACTUAL_3RDPARTY_DIR, BUILD_OSG_EXAMPLES etc., you should see the variables you're looking for about 3/4 of the way down the list: OPENVRML_INCLUDE_DIR, OPENVRML_LIBRARY and OPENVRML_LIBRARY_DEBUG.

A way to see if you got it right is that when you open the resulting OpenSceneGraph.sln solution (after filling in the values, and doing Configure as needed and then Generate) you should see a project called "Plugins vrml" or something like that near the bottom of the list of projects.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to