Hi,
The osgShell.bat should set up everything needed to run, to avoid
exactly this kind of problem. Can you successfully run osgviewer with
an unmodified osgShell.bat? When installing the win32 osg2.2.0
binaries, did you permit the installer to add the environment variables
to the registry?
For Wndows to find all the necessary components, you must add the
contents of OSG_PATH (not OSG_ROOT) to your PATH; eg
set PATH=%OSG_PATH%;%PATH%
(You'll note that is the very first thing that osgShell.bat does)
Unique from previous version of the OSG binaries, OSG_PATH actually
contains *several* directories, which is necessitated by the plugin
subdirectory filesystem structure and Microsofts assembly/manifest
search process.
Could you point me to the Getting Started info you mentioned, it might
need refreshing.
cheers
-- mew
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Will Sistar
> Sent: Wednesday, November 28, 2007 6:55 PM
> To: [email protected]
> Subject: [osg-users] DynamicLibrary::failed loading
>
> I am a new user and am trying to use osgviewer (specifically
> osgviewer cow.osg). I have not built OSG; I used the Win32
> Binaries Installer. I set the paths as I found in Getting
> Started and I modified the osgShell.bat file to turn on
> debugging. When the osgshell starts it prints out this:
>
> OSG_ROOT = C:\Program Files\OpenSceneGraph OSG_FILE_PATH =
> C:\OpenSceneGraph-Data OSG_NOTIFY_LEVEL = DEBUG
>
> after typing in "osgviewer cow.osg" part of what I get follows:
>
> itr='C:\Program Files\OpenSceneGraph\bin'
> FindFileInPath() : trying C:\Program
> Files\OpenSceneGraph\bin\osgPlugins-2.2.0\osgdb_osg.dll ...
> FindFileInPath() : USING C:\Program
> Files\OpenSceneGraph\bin\osgPlugins-2.2.0\osgdb_osg.dll
> DynamicLibrary::failed loading " osgPlugins-2.2.0/osgdb_osg.dll"
> Warning: Could not find plugin to read objects from file "cow.osg".
> osgviewer: No data loaded
>
> The dll is in the osgPlugins-2.2.0 directory as it should be,
> as I read in a previous post similar to this.
>
> I noticed that I could load the library manually so I copied
> the osgdb_osg.dll to the bin directory and typed "osgviewer
> -l osgdb_osg.dll cow.osg" and it worked. (sort of, it didn't
> load the osgdg_rgb.dll although it tried like above)
>
> itr='C:\Program Files\OpenSceneGraph\bin'
> FindFileInPath() : trying C:\Program
> Files\OpenSceneGraph\bin\osgdb_osg.dll ...
> FindFileInPath() : USING C:\Program
> Files\OpenSceneGraph\bin\osgdb_osg.dll
> CullSettings::readEnvironmentalVariables()
>
> I tried manually loading the dll like this "osgviewer -l
> osgPlugins-2.2.0\osgdb_osg.dll cow.osg" and that didn't work.
>
> Any suggestions would be helpful.
> Will
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org