Alberto Luaces wrote:
"Davide Byron" writes:
i've happily developed an application based on osg/osgART and i was
proudly giving it to my friends. Unfortunately, noone of them is able
to run it.
The main problem is the inability to find the plugins. i get the
error:
plugin "-1" unknown
no matter where i put the plugins, in the same folder as the
executable, or in a folder called osgPlugins-2.8.3
i've searched the forum without luck... can anyone point me in the
right direction, please?

Also, some have complained about missing config, and that problems
seems to be related to the lack of microsoft vc++ redistributable. in
some cases installing vcredist_x68.exe fixed the problem, in other it
didn't...
any advice on this too?

to sort out those problems, I recommend you to use Process Monitor
(http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) for the
first, finding where does the system expect for the plugin DLLs to be,
and Dependency Walker (http://dependencywalker.com/) for the latter.

Which plugin are you having trouble with? What do you see when you turn up the OSG Notify level? Have you included any 3rd party dependencies?

Are you experienced at packaging MS executables for redistribution? You don't just build an .exe and pass it out; you need something like innosetup or InstallShield to make sure you've got everything. Which install package system are you using?

I'll point you to osgwwhich: 
http://code.google.com/p/osgworks/wiki/GettingStarted

It allows you to find the path of the plugin that OSG will try to load for a particular extension. For example:

  C:\Projects>osgwwhich -p flt
  Using plugin name: "osgPlugins-2.8.3/osgdb_openflight.dll".
  C:\Program Files\OpenSceneGraph\bin\osgPlugins-2.8.3\osgdb_openflight.dll

If osgwwhich can find it, but your executable still fails to load it, then that's certainly an indication that you've failed to distribute a dependency, such as the CRT libraries or some 3rd party dependency.

--
  -Paul Martz      Skew Matrix Software
                   http://www.skew-matrix.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to