Hello Suyang,
1. I believe I have built OSG2.8.0 successfully on my XP with CMake 2.6. However when I tried to run those examples, I failed in lots of them, because the argc is always equal to 1, and lots of examples checks the value of argc. If it is equal to 1, then the program just retured. I have no idea how to deal with this bug..
It is not a bug, most of the examples expect you to give them the name of a model to view on the command line. If you're running them from Visual Studio, you can put command line arguments by right-clicking on the project (for example "applications osgviewer"), clicking Properties, and then going to the Debugging section and typing what you want to add in the "Command Arguments" field. For example, if you want to run osgviewer cow.osg (a standard test to see if osgviewer is running OK with a known-good model) you would make sure osgviewer is set as the active project, put cow.osg in the Command Arguments field, and press F5 to run.
2. I try to setup OSG_FILE_PATH, but don't know where to input it. The Quick Start Guide says it should be set in "runtime installation", but what is "runtime installation". I didn't find OSG_FILE_FATH when I built osg with CMake.
OSG_FILE_PATH is an environment variable. Right-click on My Computer (or Computer on Vista in the start menu) then go to Properties, (in Vista click on "Advanced System Settings" on the left), go to the Advanced tab, and click the Environment Variables button. Then in the System variables section (at the bottom), click New..., put OSG_FILE_PATH in the Name field, and the complete path to where you unzipped the OpenSceneGraph-Data zip file in the Value field. Click OK everywhere and you'll be able to run osgviewer cow.osg if it worked.
3. Although I successfully built osg in XP, I got problem with vista. Actually I guess it should be blamed on CMake. Running under XP, when I click "configure", the CMake will pop up a child window to let me choose the generator, (I use VS9.0). However running under Vista, there is no popup window to choose the generator when I click "configure", then the process failed because the CMake cannot find CMake_CXX_Compiler and its path. I tried to specify the location of VS9.0 compiler, however I have no idea where the compiler is...
Well, only you can know where the compiler is... You installed it! (or did you...) The compiler does not come with the OS, you need to install it separately. You can get the Express edition for free from the Microsoft web site.
If you have no compiler installed, of course CMake won't be able to do anything. This has nothing to do with Vista, which I use every day (never mind comments of "terrible Vista" like Wang Rui said). If you had not installed a compiler on XP you would be having the same problem.
In general, your questions all come down to knowing your tools. If you're going to do development, you need to take a little while and read on your tools, your languages, etc. before trying to do anything complex. Google is your friend, and books are too. :-)
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

