I'm trying to make a custom VEX function that requires a third-party library (NLOPT). I can compile my My_Function.C file using hcustom with no error (
hcustom -I /usr/local/include My_Function.C
), but I have no idea how to make the NLOPT library visible to Houdini. Now Houdini crashes whenever I call my VEX function, and the log shows “DYLD, symbol not found: _nlopt_create” (I'm on OSX). How can I make the external libraries visible to Houdini?
This must be a very newbie question but so far I've failed to find an answer by myself.. Any help would be much appreciated!