On Fri, 18 Jun 2010, denis joubert wrote:
first of all i made a mistake it is not :
if DEFINED(CYGWIN) but if DEFINED(__CYGWIN__)
Thanks, that fixed in CVS.
for export LD_LIBRARY_PATH=/usr/lib/gretl-gtk2,
I don't know what to say. when i run any software built for
using the module i got :
Failed to load plugin: lad.dll
when i set LD_LIBRARY_PATH it works.
Ah, I see what's happening. Gretl, the program, supplies an
absolute path when opening the plugins. But this path is
constructed using the accessor function gretl_lib_path(), and
in a standalone libgretl program this function will return an
empty string. (In gretlcli and gretl_x11 the path is filled out
when the user's config file is read.)
There is in fact a special environment variable designed to help
in this case (I'd forgotten about it), namely GRETL_PLUGIN_PATH.
So you can put into your program:
putenv("GRETL_PLUGIN_PATH=/usr/lib/gretl-gtk2");
and libgretl should find the plugins OK.
Allin