Hi Johannes,

I can't tell you immediately what's going wrong, but the first thing I'd do is try running ldd on your .so to see which libs it's looking for, and whether it's finding them all correctly. The process is slightly complicated by Nuke adding its own rpath information, so I'm not sure whether your plug-in's symbol resolution will check that first, but it might give you a pointer.

You can also try using the LD_DEBUG environment variable (e.g. try "export LD_DEBUG=help" and then run any command like "ls") to see which libraries are being loaded from where at all times.

Hope that helps get you started.

Cheers,

- Chris

On 12/09/11 07:17, Johannes Saam wrote:
Hey dudes!


I have a silly question. I have a plugin that links against nuke and an
other lib ( houdini ). I compiled with Cmake and its default settings
regarding the rpath. If i use chrpath on the .so i see that the rpath is
set properly to the nuke and the houdini libs. If i use nuke.load() on
it i get an undefined symbol. I dont get this, i need to put houdini in
the LD_LIBRARY_PATH for it to work.
AFAIK the order is rpath, LD_...,runpath for dynamically linked libs. Is
there a reason why my .so with the right rpath still needs an LD_... path?

Maybe is an obvious C++ thing that i dont get :) Please help!

Thanks
Jo

--
vfx       | Johannes Saam
web     | www.johannessaam.com <http://www.johannessaam.com>
work    | www.fuelvfx.com <http://www.fuelvfx.com>


_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

--
Chris Bevan, Senior Software Engineer
The Foundry, 6th Floor, The Communications Building
48 Leicester Square, London, WC2H 7LT
Tel: +44 (0)20 7968 6828 | Fax: +44 (0)20 7930 8906
Web: www.thefoundry.co.uk

The Foundry Visionmongers Ltd
Registered in England and Wales No: 4642027
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to