Archived
This forum has been archived. Please start a new discussion on GitHub.
How to load plugins in sles10?
g00fy
in Help Center
Hi,
I have created an application which loads plugins. Those plugins reside inside the main executable it's directory.
On Windows I can load them no problem... But on sles10, I end up with the message "No such file or directory".
for example in the config I have: "Ice.Plugin.Db=mydb:create"
In the filesystem I have a "libmydb.so"
The (very weird) thing is that when I wrote a program:
That "hdn" contains "NULL". And the dlerror() message says it cannot find the file. When I copy the .so 's to /usr/local/lib & run ldconfig everything works fine again... But that's not exactly what I want to do ;-)
So how could I make my program run with plugins in the local directory?
Thanks for any advise!
I have created an application which loads plugins. Those plugins reside inside the main executable it's directory.
On Windows I can load them no problem... But on sles10, I end up with the message "No such file or directory".
for example in the config I have: "Ice.Plugin.Db=mydb:create"
In the filesystem I have a "libmydb.so"
The (very weird) thing is that when I wrote a program:
int main()
{
void * hdn = dlopen("/tmp/libmydb.so", RTLD_LAZY);
}
That "hdn" contains "NULL". And the dlerror() message says it cannot find the file. When I copy the .so 's to /usr/local/lib & run ldconfig everything works fine again... But that's not exactly what I want to do ;-)
So how could I make my program run with plugins in the local directory?
Thanks for any advise!
0
