Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbols for architecture x86_64: "ds::Device::create(ds::DeviceType, ds::Option)" #4

Open
wangyangwang opened this issue May 24, 2018 · 4 comments

Comments

@wangyangwang
Copy link

wangyangwang commented May 24, 2018

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.

@vinjn
Copy link
Contributor

vinjn commented Jun 3, 2018

Have you built Cinder-DepthSensor.lib?
https://github.com/jing-interactive/Cinder-DepthSensor#how-to-build

@wangyangwang
Copy link
Author

sorry for some reason I overlooked the how-to-build part. after the clone i just went straight to TinderBox, I haven't tried but I think this should fix it!

@iltimasd
Copy link

gonna jump on this thread. I've tried the above code to get started but also running into probelms. I have built, but perhaps theres steps im missing. could you please be more specific on how the build is supposed to be done.

Also do you have any sample/example code just to see how to get up and running

@luisarandas
Copy link

The project generated in premake in xcode doesn't allow to run as application.
Any insight on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants