Hi Karl, When you compile the OSG with Visual Studio, you compile the core DLLs that constitute the OSG API. They are named osgXXX.dll and are indeed not standalone executables. The OSG comes with a lot of I/O plugins, named osgdb_XXX.dll, which are also shared libraries - not executables.
Now there are also many executables, forming 2 groups: - applications: osgviewer, osgconv, ... - examples All these executables are built on top of the core API and you have probably built them as well without noticing. To make sure: when you configure your project in CMake, there are several important variables that control what you build, 2 of which are of interest for your problem: BUILD_OSG_APPLICATIONS and, BUILD_OSG_EXAMPLES Set those 2 options ON, run Configure and Generate, and re-open your solution in Visual Studio. When you "Build All" (right click the "ALL_BUILD" project and choose "Build"), everything including the executables will be built. You can find the output in /your/build/directory/bin: many DLLs and EXEs should be there. Try to run "osgviewer.exe" from a terminal and you should be fine. About the message you seem to be talking about: when you try to "run" a project inside Visual Studio, you are actually running the "active project". It is shown in bold in your solution tree. By default, CMake will probably select a core DLL as active project, and will not be able to "run" it. It is asking you for an executable so that you can run a test program that uses this DLL. This is a feature of VS and has nothing to do with the OSG. If you want to run osgviewer from whithin VS, right-click the osgviewer project and select "Set as startup project". You'll probably want to load a model so right-ckick osgviewer again, select "Properties", go to the Configuration properties/Debugging/Command arguments and type something like "cow.osg". Now you can run osgviewer with the cow - provided that you have the sample dataset and that your OSG_FILE_PATH environment var is properly set. Thibault On Tue, Jun 2, 2009 at 3:42 PM, Karl Butler <[email protected]> wrote: > sorry - I should clarify that this happens when I am trying to compile some > of the projects such as osgShadow etc. It happens with all of them. > Please help... I'm really keen to get started but haven't even been able to > compile one osg project! :( > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=13359#13359 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

