Skip to contentSkip to conversation

Cross compiling v4l-utils for Android

DISCUSSION Burt Poppenga 1 participant 1 message May 24, 2016 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hello,

I was hoping to get some tips on cross compiling v4l-utils for Android. I am targeting a Nexus 5 Marshmallow device (using the android-6.0.1_r41 branch) and have the complete AOSP tree, it is built and flashed in my device.

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
TARGET_PRODUCT=aosp_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
BUILD_ID=MOB30H

Note that I have not built the Kernel or NDK.

The INSTALL document for v4l-utils says:
"v4l-utils will only build using the complete AOSP source tree, because of the stlport dependency"

Which makes sense looking at the v4l2-ctl Android.mk file:

LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../.. \
$(LOCAL_PATH)/../../include \
bionic \
external/stlport/stlport

LOCAL_SHARED_LIBRARIES := libstlport

The problem arises because it appears that Google has deprecated stlport. Stlport no longer appears in the "external" tree, only the library is present in the "prebuilts" tree.

Any tips would be greatly appreciated.

Thanks,
Burt