Re: [Aqsis-development] Texture library and dlOpen()
Brought to you by:
ltatkinson,
pgregory
From: Chris F. <fo...@ph...> - 2007-08-31 13:47:23
|
On Fri, Aug 31, 2007 at 11:50:35AM +0100, Tristan Colgate wrote: > What does ldd liist as the dependencies for d_dsm and the texture > library? Hi Zac, The above is a good thing to do first. I suspect that you'll get "not found" for libaqsistex.so. It's probably not a bad idea to get a useful error message by hacking aqsistypes/plugins.cpp:DLOpen() to include something like the lines if(!handle) Aqsis::log() << error << "Could not load plugin: \"" << DLError() << "\"\n"; If you find that libaqsistex.so is not found, the quick and dirty solution is to add (DY)LD_LIBRARY_PATH, although there's a way to do it properly with a compile-time "rpath". I don't remember the details of the rpath stuff atm. Here's a little test project I cooked up (partly since I was curious how to use dlopen() in general). It has all the basic features of your problem, and the DSO fails to load when "libhello.so" isn't in the linker path, as expected. ~Chris. |