Ask Your Question

libnative_camera compilation

asked 2013-11-15 14:41:49 -0600

arvindpereira gravatar image

I am trying to build libnative_camera*.so locally on my own machine because the info-level logs in modules/androidcamera/camera_wrapper/camera_wrapper.cpp pollutes logcat.

I guess some of us might be interested in seeing the FPS during initial tests, but in a production build this turns out to be a problem. I have tried using to compile these but I am unable to build these libraries on my own computer.

I am using Ubuntu 12.04 (in a virtual machine), and have done: export ANDROID_STUB_ROOT=~/android_sources/

which is where I have the source code for Android downloaded from

Does anyone know how I can go about building these libraries from scratch, or perhaps where I could get libnative_camera_*.so without the "LOGI("### Camera FPS ### [%d] Frames, %.2f FPS", mFrameCount, mFps);"?

Thanks, Arvind

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-11-18 03:47:43 -0600

Small tip, look at platforms/scripts/camera_build.conf. This is list scv table with path to Android sources, architecture and so on. To build native camera libs for all Android versions you need to have sources for all Androids. I believe, you need native camera lib for one Android version only. In this case open file with text editor, find command line for cmake and make and use them directly without python. This script with csv table were implemented for build automation of all native_camera_xxx libs. It is not usefull in your case.

edit flag offensive delete link more



I'm also trying to build a libnative_camera library. What exactly is this bin_arm (or bin_x86 or bin_mips) directory that the build script needs? It is expected to be at the root directory of Android source. A fresh checkout of Android seems to be missing the bin_* directory.


aQwallovS7 gravatar imageaQwallovS7 ( 2014-04-09 11:24:03 -0600 )edit

It is folder with libraries,, etc for each platform.

Alexander Smorkalov gravatar imageAlexander Smorkalov ( 2014-04-14 04:42:04 -0600 )edit

Question Tools

1 follower


Asked: 2013-11-15 14:41:49 -0600

Seen: 1,419 times

Last updated: Nov 18 '13