just trying to build a simple HelloWorld app using depth sensor. since i cannot find a documentation or sample anywhere, I just started with some simple code:
#include "DepthSensor.h"
ds::DeviceRef mDevice;
void depthApp::setup()
{
ds::DeviceType type = ds::DeviceType(0);
ds::Option option;
option.enableDepth = true;
option.enableInfrared = false;
mDevice = ds::Device::create(type, option);
// mDevice = ds::Device::create(type);
}
this line mDevice = ds::Device::create(type, option); gives me this error:
Undefined symbols for architecture x86_64:
"ds::Device::create(ds::DeviceType, ds::Option)", referenced from:
depthApp::setup() in depthApp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The project was freshly built using Tinderbox, the code I posted above is really the only thing I added.
I am not sure if this is caused by the Block or my build settings or my misuse of the library. Since I am relatively new to c++, I apologize if this is not an issue to this repo.