Hi,

as the plugin started to work after using "SetDllDir", this made me confident that I could package it not to require the additional download of the MSRedist.

I have now done so, and on my test-machine withoug redist, it works.

So could you please uninstall the plugin, download again from raumgeometrie.de/testplugin/osgviewer.xpi, and test it with raumgeometrie.de/testplugin/gallery.html

In case you downloaded the redist first, please uninstall it (unless you need it for something else).

The background - if others encounter this problem: When you start a program (!), the dir the program lies in is automatically added to the dll-search-path. When you load a dll during runtime from another program, the dl-dir is not automatically added to the dll-search-path.

By adding the toolkit-dir to the osgFilePath, the plugins were found, but the plugins themselves didn´t find their dependencies.

Thus, if you pack your osg-program into a dll, you will probably always have to use the SetDllDir windows command, or set your path. or install the dlls in a system-directory.

I think mine is the cleanest solution, as one does not have to pollute system-dirs with dlls, and use exactly the dlls needed for the program.


Regards,

Andreas

P.S.: You can, of course, use this plugin to display all file-formats that osg supports. For this, the other plugins would have to be packed into the xpi, too. If one needs this, just put the plugins there, or mail me, if you don´t have this compiled with msvc 8.0 sp1) PPS: This plugin has been downloaded 343 times so far. As I will Open-Source it and give it away for free, it would be really nice if you reported if it works.


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to