SR305 on OSX
Hi All,
I'm trying to build something in Xcode to use a SR305. The unit is working, and the examples that come with the SDK do what they are supposed to do.
But when I try to build of these examples, and start my own project (by simply copying the code and settings for the project) everything compiles as it should, without errors. But my own project doesn't work. It returns an empty device-list. So basically, my program (or rather the API) does not see the RealSense. I have traced everything as far as I can, but I can't find out what is causing this. Does anyone have any suggestions? It bothers me quite a bit because I hit a wall.
Much obliged,
Joris
-
A member of the Intel RealSense team has suggested the link below for information on linking your own project to Librealsense with XCode.
http://rustyrazorblade.com/post/2008/external-libraries-in-xcode/
-
Dear Marty,
Thanks for the tip. I followed the link and read the article. Although it seems to be about a dependency issue, I removed the dependencies I used, and followed the instructions in the article (as the author uses a little bit different method).
But unfortunately, it produced the same end result: everything compiles and links perfectly, it runs without errors (I can actually 'trace into' the rs2_create_context and other methods), but I get '0 RealSense sensors found' and return EXIT_FAILURE.
I'm completely at a loss. How is it possible that the methods produce other results when called from a different project? Is there some hidden setting I am missing?
Thanks once again for anyone that has any tips!
Joris
-
I fixed it..!
It has absolutely NOTHING to do with the SDK.
In the 'Signing and Capabilities' of the Xcode project, the 'App Sandbox' has some checkboxes that are standard unchecked. One of them is... USB. When I checked it, it is working... So it was a safety feature of Xcode itself...
Pfff. Now I can actually start working on what I was planning to do. Standard rookie mistake I guess?
Joris
Please sign in to leave a comment.
Comments
4 comments