Hi all,

the LD_LIBRARY_PATH issue for the linux plugin is still annoying.

I tried to use a proxy shared lib, which sets up an appriopriate path
using setenv() and then calls dlopen() on the plugin lib.

But it fails because LD_LIBRARY_PATH is only evaluated once during
startup of the firefox program. It cannot be manipulated later.

any more ideas?

regards Ralph

Ralph Kern schrieb:
> Hi Andreas,
> 
> I'm making some progress in the linux port. I already can see the models
> on your page, but only if I start firefox with LD_LIBRARY_PATH set to
> the plugin directory.
> 
> Now I need to search for some hack to port your library search path
> extensions to linux. This is not easy, because the plugin is not lazily
> loaded like in Windows. And there's no SetDllDirectory like in Windows.
> 
> So I need to find a way to patch the search path before the FF plugin is
> loaded, otherwise the load fails because it cannot locate libosgdb.so
> and libosgViewer.so.
> 
> I think the right path is to have a proxy plugin, which manipulates the
> path and then loads the correct plugin using dlopen().
> 
> If someone knows a better way, let me know!
> 
> Regards Ralph
> 
> 
> 
> Andreas Goebel schrieb:
>> Hi,
>>
>> I have changed a little bit in the xpi and in the plugin itself. It now
>> not only adds the plugin-directory to the osg-file-path, but to the
>> windows-dll-search-path. This worked at least on my machine to enable
>> .ive-support without having the osg-libs in your path.
>>
>> Please: Those people who didn´t see the lower three models, uninstall
>> the old plugin, install the new one and try. Note that that function
>> (named SetDllDirectory ) is only available from WinXP SP1 onwards, so
>> this plugin won´t work with older windows versions. I think that only
>> very few people are using older windows now.
>>
>> Hope this works ...
>>
>>
>> Regards,
>>
>> Andreas
>> _______________________________________________
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to