Ask Your Question

bruno9's profile - activity

2016-01-06 10:42:42 -0500 received badge  Student (source)
2015-03-15 08:53:42 -0500 received badge  Enthusiast
2015-03-13 10:13:03 -0500 answered a question Anyone got libnative_camera working on Nexus 9 Lollipop ?

I get frames on lollipop now, use BufferQueue like this in camera_wrapper.cpp :

class CameraHandler: public CameraListener 
{
    sp<IGraphicBufferConsumer> consumer; 
    sp<IGraphicBufferProducer> producer;  
    ...
};


....

BufferQueue::createBufferQueue(&handler->producer, &handler->consumer);  

handler->consumer->consumerConnect(handler->listener, true);  
bufferStatus = handler->camera->setPreviewTarget(handler->producer);
2015-03-08 07:39:49 -0500 received badge  Editor (source)
2015-03-08 04:01:24 -0500 asked a question Anyone got libnative_camera working on Nexus 9 Lollipop ?

Hi,

Does anyone got libnative_camera working on lollipop on a Nexus 9, I tried including the .so files and through opencv_manager but both (obviously) got stuck on a missing symbol.

Below are the errors by opencv_manager.

Thanks,

Bruno

 dlerror="dlopen failed: cannot locate symbol "_ZN7android11BufferQueueC1ERKNS_2spINS_19IGraphicBufferAllocEEE" referenced by "libnative_camera_r4.4.0.so"..." 

dlerror="dlopen failed: cannot locate symbol "_ZN7android11BufferQueueC1EbRKNS_2spINS_19IGraphicBufferAllocEEE" referenced by "libnative_camera_r4.3.0.so"..."

dlerror="dlopen failed: cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "libnative_camera_r4.2.0.so"..."                                

dlerror="dlopen failed: cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "libnative_camera_r4.1.1.so"..."                                

dlerror="dlopen failed: cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "libnative_camera_r4.0.3.so"..."                                

dlerror="dlopen failed: cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "libnative_camera_r4.0.0.so"..."                                

dlerror="dlopen failed: cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "libnative_camera_r3.0.1.so"..."                                

dlerror="dlopen failed: cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "libnative_camera_r2.3.3.so"..."                                

dlerror="dlopen failed: cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "libnative_camera_r2.2.0.so"..."

-

looks like BufferQueue(android::sp<android::igraphicbufferalloc> const&) is removed.

I find it back on my nexus7 (kitkat 4.4.4):

[email protected] ~/Android/analyze/nexus7/system/lib $ readelf -Ws libgui.so | grep _ZN7android11BufferQueueC1ERKNS_2spINS_19IGraphicBufferAllocEEE
   371: 00024c79   428 FUNC    GLOBAL DEFAULT    8 _ZN7android11BufferQueueC1ERKNS_2spINS_19IGraphicBufferAllocEEE

But not on the Nexus 9 (Lollipop 5.0.1)

[email protected] ~/Android/analyze/nexus9/system/lib $ readelf -Ws libgui.so | grep _ZN7android11BufferQueueC1ERKNS_2spINS_19IGraphicBufferAllocEEE
[email protected] ~/Android/analyze/nexus9/system/lib $

_ZN7android6Camera10disconnectEv must be deprecated some time ago since I don't find any reference

Update: BufferQueue constructors are idd deleted some time ago: http://85.214.228.141/android-legacy/...

2015-03-07 10:30:22 -0500 received badge  Supporter (source)