AnsweredAssumed Answered

Build android custom image - 'linux/mxcfb.h' file not found error

Question asked by Prasanth B on Nov 26, 2018

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-33-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPD1.170816.018
OUT_DIR=out
============================================

[2/2] bootstrap out/soong/.minibootstrap/build.ninja.in
[1/2] out/soong/.bootstrap/bin/minibp out/soong/.minibootstrap/build.ninja.in
ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
[ 0% 5/21267] target thumb C++: lib_o...ent/mx8mq_fb_render/FBRender_mx8mq.cpp
FAILED: out/target/product/generic/obj/SHARED_LIBRARIES/lib_omx_mx8mq_fb_render_arm11_elinux_intermediates/FBRender_mx8mq.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I vendor/nxp/fsl_imx_omx/OSAL/ghdr -I vendor/nxp/fsl_imx_omx/utils -I vendor/nxp/fsl_imx_omx/utils/audio_frame_parser -I vendor/nxp/fsl_imx_omx/OpenMAXIL/ghdr -I vendor/nxp/fsl_imx_omx/OpenMAXIL/src/core_mgr -I vendor/nxp/fsl_imx_omx/OpenMAXIL/src/core -I vendor/nxp/fsl_imx_omx/OpenMAXIL/src/content_pipe -I external/imx-vpu-cnm -I vendor/nxp/fsl_imx_omx/OpenMAXIL/src/component/common -I frameworks/av/include/media -I frameworks/native/include/media/hardware -I hardware/imx/include/ -I device/fsl-codec/ghdr -I device/fsl-codec/ghdr/common -I hardware/imx/display/gralloc_v3 -I hardware/imx/display/display -I vendor/nxp/fsl_imx_omx/OpenMAXIL/src/component/mx8mq_fb_render -I out/target/product/generic/obj/SHARED_LIBRARIES/lib_omx_mx8mq_fb_render_arm11_elinux_intermediates -I out/target/product/generic/gen/SHARED_LIBRARIES/lib_omx_mx8mq_fb_render_arm11_elinux_intermediates -I libnativehelper/include/nativehelper \$(cat out/target/product/generic/obj/SHARED_LIBRARIES/lib_omx_mx8mq_fb_render_arm11_elinux_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/generic/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -DFROYO=220 -DGINGER_BREAD=230 -DHONEY_COMB=300 -DICS=400 -DJELLY_BEAN_42=420 -DJELLY_BEAN_43=430 -DKITKAT_44=440 -DLOLLIPOP_50=500 -DMARSH_MALLOW_600=600 -DNOUGAT=700 -DANDROID_O=800 -DANDROID_VERSION=800 -DANDROID_BUILD -D_POSIX_SOURCE -UDOMX_MEM_CHECK -Wno-unused-parameter -Werror -UDOMX_STEREO_OUTPUT -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/target/product/generic/obj/SHARED_LIBRARIES/lib_omx_mx8mq_fb_render_arm11_elinux_intermediates/FBRender_mx8mq.d -o out/target/product/generic/obj/SHARED_LIBRARIES/lib_omx_mx8mq_fb_render_arm11_elinux_intermediates/FBRender_mx8mq.o vendor/nxp/fsl_imx_omx/OpenMAXIL/src/component/mx8mq_fb_render/FBRender_mx8mq.cpp"


vendor/nxp/fsl_imx_omx/OpenMAXIL/src/component/mx8mq_fb_render/FBRender_mx8mq.cpp:14:10: fatal error: 'linux/mxcfb.h' file not found
#include <linux/mxcfb.h>
^~~~~~~~~~~~~~~
1 error generated.
[ 0% 6/21267] Ensuring Jack server is installed and started
Jack server already installed in "/home/ashok/.jack-server"
Server is already running
[ 0% 12/21267] Import includes file: ...bdownmix_intermediates/import_includes
ninja: build stopped: subcommand failed.
10:37:27 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

 

How to solve this issue, please help me !

 

Thanks all.

Outcomes