01-08-2013 08:38 PM
i'm trying to get the camera to work. followed sample camera code located in github, referenced from BB developer site. the sample code works fine. this is BB10 on an alpha device.
when i call this:
if (camera_open(mCameraUnit, CAMERA_MODE_RW | CAMERA_MODE_ROLL,
&mCameraHandle) != CAMERA_EOK)
it fails! works in the sample code. so, by way of investigation, i ran this code:
unsigned int numAsk = 3;
unsigned int numCamsSupported = 0;
camera_get_supported_cameras(numAsk, &numCamsSupported, cameras);
on my app, the numCamsSupported variable comes back with 0. on the sample app, it comes back with 2, as expected.
i have the camera libraries in my .pro file, and have the include statement
in my .cpp file.
i'm sure i'm missing something, but i dont know what....
Solved! Go to Solution.