【发布时间】:2016-04-11 09:42:04
【问题描述】:
我有一个在 android 上运行的 USB 摄像头(通过 Android On-The-Go),我希望更改摄像头的曝光。我已经能够通过在 linux 机器上使用 v4l2-ctl 来实现它,我希望在我的 Android 设备上也能做到这一点。
安装文件提到以下内容:
Android Cross Compiling and Installing:
----------------
v4l-utils will only build using the complete AOSP source tree, because of the
stlport dependency.
List of v4l-utils that supply an Android.mk makefile:
* utils/v4l2-compliance
* utils/v4l2-ctl
* utils/v4l2-dbg
To cross compile an utility you must first configure the shell with Android's
envsetup.sh to add the mm alias, before running lunch to select your target
device.
cd /path/to/aosp
source build/envsetup.sh
lunch
cd /path/to/v4l-utils
cd <utility>
mm
所以我下载了android源,运行了前两个命令和lunch成功。然后我 cd'd 进入 v4l-utils/v4l2-ctl 并运行 mm。我收到以下错误:
make: *** No rule to make target `out/target/product/generic/obj/lib/crtbegin_dynamic.o', needed by `out/target/product/generic/obj/EXECUTABLES/v4l2-ctl_intermediates/LINKED/v4l2-ctl'. Stop.
我可以尝试什么来解决这个问题?
注意:正常编译工作:我可以用./bootstrap.sh,./configure,然后make制作所有v4l2。
【问题讨论】: