please document CAMERALIBRARY_IMPORTS

Post Reply
umlaeute
Posts: 11
Joined: Thu Jan 19, 2012 10:41 am

please document CAMERALIBRARY_IMPORTS

Post by umlaeute »

it took me days to figure out that i have to define CAMERALIBRARY_IMPORTS when linking against cameralibrary.dll

this define is well hidden in the sample code projects, and is nowhere mentioned in docs/ :-(

also i don't really understand why i have to set that at all.
if i want to link statically it seems that i ought to define CAMERALIBRARY_STATIC anyhow.

also i would recomment to protect the CAMERALIBRARY_(IM|EX)PORTS declspec magic with an "#ifdef _WIN32" as this only applies to windows platforms anyhow [*]

everything is working now; great!

[*] just in case you are working on non-windows ports of cameraSDK (i noticed the word "linux" in some headers which gives me hope :-))
NaturalPoint - Mike
Posts: 1896
Joined: Tue Feb 01, 2011 8:41 am
Location: Corvallis, OR

Re: please document CAMERALIBRARY_IMPORTS

Post by NaturalPoint - Mike »

I'll add this to the list. I'm currently undertaking a massive documentation project to provide comprehensive manuals for our products. Tracking Tools is first, and should be released soon. Arena comes next, and finally the SDK. I have preliminary information gathered, but that manual will be one serious undertaking. I'll make sure this gets added to the list.
Post Reply