Addon linker issue

I’m trying to create an addon for the first time. I’ve gone through the tutorial on the site gets me halfway there but for some reason I am unable to add additional library dependencies and additional dependencies.

I’ve tried editing the addon_config.mk with:
ADDON_LIBS = libs/librealsense/lib/librealsense2/x64
expecting it to show up in VS under Properties->Linker->General->Additional Library Dependencies as:
..\..\..\addons\ofxLibRealsense\libs\librealsense\lib\x64
but it doesn’t.

i’d also like to add a .lib file to Properties->Linker->Input->Additional Dependencies but can’t seem to do that.

I’m using VS on Windows with OF 0.9.8. Any ideas?

on OSX, we need to list up all lib files like below.

ADDON_LIBS += libs/yourlib1.a
ADDON_LIBS += libs/yourlib2.a
ADDON_LIBS += libs/yourlib3.a

if you put libraries in:

libs/librealsense/lib/vs/x64/librealsense.lib

or whatever it’s its name it’ll be picked up automatically by vs.

same thing in other platforms just replace vs with the name of the platform, take a look at opencv for example to see how the folder structure works

Thanks guys! @arturo that works perfectly.