[clam-devel] Bug #000002: NetworkEditor binary in Windows does not see plugins

David García Garzón david.garcia at barcelonamedia.org
Tue Feb 9 12:05:52 PST 2010


Trying options 1 (via a .bat file) or 2 by hand seems not to work. It looks 
like the PATH environment does not work when loading the plugins. That's what 
i tried:

* Copying all the dlls from \bin to the \lib\clam folder where the plugins are 
installed works although there are a lot of warnings about duplicated factory 
registrations (different dll locations, different symbols so they are loaded 
twice). Not a good solution but at least it shows that it is a dll location 
problem.

* Setting the PATH environment and rebooting does not seem to work. I tried 
appending:
	;C:\%PROGRAMFILES%\CLAM\NetworkEditor\bin
	;C:\Archivos de programas\CLAM\NetworkEditor\bin
	;"C:\Archivos de programas\CLAM\NetworkEditor\bin"
At user and system vars and rebooting. No way.

* Using the following runme.bat does not work:
set PATH=%PATH%;%PROGRAMFILES%\CLAM\NetworkEditor\bin
NetworkEditor.exe

Can anyone with windows experience provide us some light?

On Tuesday 09 February 2010 17:09:03 Dirk Griffioen wrote:
> Is this what you meant?
> 
> http://nsis.sourceforge.net/Path_Manipulation
> 
> > NetworkEditor and Chordata are ready to be installed in windows. Try
> > those installables: http://84.88.76.195/~david.garcia/test/
> > There is an only remaining problem i am aware of, but i let it as bug for
> > later reference:
> > ----
> > Windows NetworkEditor installer installs the plugins but they are not
> > available. The problem is that the plugins can not be loaded because
> > they depend on dll available in a different location not in the PATH.
> > 
> > Possible solutions:
> > 
> > * The program launcher lnk sets the path before launching the app
> > ** My ideal solution, but no idea how to do that in windows. Anyone?
> > 
> > * The installer adds lib/plugins in PATH environment so that the required
> > dlls are available
> > ** Adding a nsis library and using it
> > http://nsis.sourceforge.net/Path_Manipulation
> > 
> > * Install the plugins into bin, but requires further filtering in order
> > not to load non-plugin dlls in that directory
> > ** Filtering by present symbol is nice but I do not know whether lazy
> > load works in windows.
> > ** Filtering by name patters is weak but could work
> > 
> > Does anyone know how i can build an launcher (menu or desktop icon) so
> > that it sets environment vars.
> > 
> > David.
> > _______________________________________________
> > clam-devel mailing list
> > clam-devel at lists.clam-project.org
> > http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org
> 
> _______________________________________________
> clam-devel mailing list
> clam-devel at lists.clam-project.org
> http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org



More information about the clam-devel mailing list