android - JavaCV bad install on AndroidStudio. Couldn't find *.so -
i'm develloping application android using android studio. built camera part of application camera2 api, want process images using javacv (to frames going on , imagereader, give me yuv_420_888 frames can't save in shape).
so followed manualy install tutorial of javacv androidstudio here : https://github.com/bytedeco/javacv
when write code, library found. when execute :
opencv_highgui.cvcapture capture = opencv_highgui.cvcreatecameracapture(opencv_highgui.cv_cap_android);
i got (warning, lot of crap down there):
07-01 18:00:41.649 9655-9655/ca.uqtr.camera2videobasic e/art﹕ dlopen("/data/app/ca.uqtr.camera2videobasic-2/lib/arm/libnative_camera_r2.2.0.so", rtld_lazy) failed: dlopen failed: cannot locate symbol "_zn7android6camera10disconnectev" referenced "libnative_camera_r2.2.0.so"... 07-01 18:00:41.653 9655-9655/ca.uqtr.camera2videobasic e/art﹕ dlopen("/data/app/ca.uqtr.camera2videobasic-2/lib/arm/libnative_camera_r2.3.3.so", rtld_lazy) failed: dlopen failed: cannot locate symbol "_zn7android6camera10disconnectev" referenced "libnative_camera_r2.3.3.so"... 07-01 18:00:41.658 9655-9655/ca.uqtr.camera2videobasic e/art﹕ dlopen("/data/app/ca.uqtr.camera2videobasic-2/lib/arm/libnative_camera_r3.0.1.so", rtld_lazy) failed: dlopen failed: cannot locate symbol "_zn7android6camera10disconnectev" referenced "libnative_camera_r3.0.1.so"... 07-01 18:00:41.663 9655-9655/ca.uqtr.camera2videobasic e/art﹕ dlopen("/data/app/ca.uqtr.camera2videobasic-2/lib/arm/libnative_camera_r4.0.0.so", rtld_lazy) failed: dlopen failed: cannot locate symbol "_zn7android6camera10disconnectev" referenced "libnative_camera_r4.0.0.so"... 07-01 18:00:41.668 9655-9655/ca.uqtr.camera2videobasic e/art﹕ dlopen("/data/app/ca.uqtr.camera2videobasic-2/lib/arm/libnative_camera_r4.0.3.so", rtld_lazy) failed: dlopen failed: cannot locate symbol "_zn7android6camera10disconnectev" referenced "libnative_camera_r4.0.3.so"... 07-01 18:00:41.673 9655-9655/ca.uqtr.camera2videobasic e/art﹕ dlopen("/data/app/ca.uqtr.camera2videobasic-2/lib/arm/libnative_camera_r4.1.1.so", rtld_lazy) failed: dlopen failed: cannot locate symbol "_zn7android6camera10disconnectev" referenced "libnative_camera_r4.1.1.so"... 07-01 18:00:41.678 9655-9655/ca.uqtr.camera2videobasic e/art﹕ dlopen("/data/app/ca.uqtr.camera2videobasic-2/lib/arm/libnative_camera_r4.2.0.so", rtld_lazy) failed: dlopen failed: cannot locate symbol "_zn7android6camera10disconnectev" referenced "libnative_camera_r4.2.0.so"... 07-01 18:00:41.684 9655-9655/ca.uqtr.camera2videobasic e/art﹕ dlopen("/data/app/ca.uqtr.camera2videobasic-2/lib/arm/libnative_camera_r4.3.0.so", rtld_lazy) failed: dlopen failed: cannot locate symbol "_zn7android11bufferqueuec1ebrkns_2spins_19igraphicbufferalloceee" referenced "libnative_camera_r4.3.0.so"... 07-01 18:00:41.689 9655-9655/ca.uqtr.camera2videobasic e/art﹕ dlopen("/data/app/ca.uqtr.camera2videobasic-2/lib/arm/libnative_camera_r4.4.0.so", rtld_lazy) failed: dlopen failed: cannot locate symbol "_zn7android11bufferqueuec1erkns_2spins_19igraphicbufferalloceee" referenced "libnative_camera_r4.4.0.so"...
and :
camerawrapperconnector::connecttolib error: cannot dlopen camera wrapper library native_camera returned opening error: 4
so, libs looks ?
i didn't touched gradle. use jar added them : project structure > app > dependecies > add files dependencies
i tried lot of install version flow on internet , decided return on bases official tutorial.
like this, can ask way install javacv ? mean can found missed libs ? passed time on i'm not still sure... ps : sry bad english , i'm open questions.
you can install javacv using gradle. please take @ answer , should able correctly install it.
https://stackoverflow.com/a/30130559/3990222
just example, try adding following lines gradle file , removing .jar files:
compile group: 'org.bytedeco', name: 'javacv', version: '0.11' compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '2.4.11-0.11', classifier: 'android-arm' compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '2.6.1-0.11', classifier: 'android-arm'
Comments
Post a Comment