05-26-2012 08:05 PM
I am trying to use the camera functionality in BB10 for playbook (camera_api.h). The issue is that when I am building, I get an undefined reference error e.g. "undefined reference to `camera_open'". Is the camera functionalitly enabled in the bb10 sdk beta? If so, what libraries should I link to?
More generally, is there a sample app that uses he camera_api.h for bb10 playbook?
Solved! Go to Solution.
05-26-2012 09:33 PM
I'm unsure of what you're trying to do here.
Are you trying to write an app using the BlackBerry 10 NDK and deploy it to the BlackBerry PlayBook? If so, the camera API may be one of those libraries that are not currently available on the PlayBook with OS 2.0.1. You may want to stick with the BlackBerry PlayBook NDK (They are different...)
05-26-2012 11:40 PM
There is no public sample code yet. I am hoping to be able to publish this very soon.
It sounds like you are builgind an app without linking against the camera library (libcamapi.so).
You will need to add 'camapi' to your libraries list either via project settings -> c/c++ build settings -> linker settings (I think), or if using cascades, I believe you have to add
LIBS += -lcamapi
To your .pro file.
05-26-2012 11:41 PM
The camera API doesn't work in Playbook. I tried and the Playbook is missing the library: libcamapi.so
Apparently this will be coming in OS2.1.
For now, the camera API is only usable on the Dev Alpha. So that's why you are receiving this error
05-26-2012 11:53 PM
Thanks guys for confirming what I had already stated. :-P
05-27-2012 01:48 AM
Thanks for all your answers, I am not trying to load it on a playbook, just see if it builds using the bb10 sdk (just playing with the SDK). The main issue, however is that the bb10 sdk is missing the libcamapi.so library (not sure why the .h was included).
05-27-2012 01:56 AM
Definitely an option, but will it work on the PlayBook? Intuition says no, because of the different hardware... Unless they built it with support for both, which is possible.