error: 'V4L2_PIX_FMT_YUV24' undeclared here ,can not pass compilation for imx-test
gonewtinwind Dec 23, 2020 9:40 AMhi
I am playing maaxboard (from imx8mqevk).
and I use yocto source code here: https://github.com/Avnet/meta-maaxboard
and
bitbake fsl-image-validation-imx
but error happened :
I want to know what libs I need to add? or what the reason?
it's interesting: the imx-test can not pass the compilation!
I also posted my Question at here: https://community.nxp.com/t5/i-MX-Graphics/error-V4L2-PIX-FMT-YUV24-undeclared-here-not-in-a-function/m-p/1203727#M70
Thank you
---
aarch64-poky-linux-gcc --sysroot=/home/rnd2/work/maaxboard/avnet/imx-yocto-bsp/maaxboard/build/tmp/work/aarch64-mx8m-poky-linux/imx-test/1_7.0+AUTOINC+fb55212d11-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -I/home/rnd2/work/maaxboard/avnet/imx-yocto-bsp/maaxboard/build/tmp/work/aarch64-mx8m-poky-linux/imx-test/1_7.0+AUTOINC+fb55212d11-r0/git/include -I/home/rnd2/work/maaxboard/avnet/imx-yocto-bsp/maaxboard/build/tmp/work/aarch64-mx8m-poky-linux/imx-test/1_7.0+AUTOINC+fb55212d11-r0/recipe-sysroot/usr/include -I/home/rnd2/work/maaxboard/avnet/imx-yocto-bsp/maaxboard/build/tmp/work/aarch64-mx8m-poky-linux/imx-test/1_7.0+AUTOINC+fb55212d11-r0/recipe-sysroot/usr/include/imx -L/home/rnd2/work/maaxboard/avnet/imx-yocto-bsp/maaxboard/build/tmp/work/aarch64-mx8m-poky-linux/imx-test/1_7.0+AUTOINC+fb55212d11-r0/recipe-sysroot/usr/lib -c -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -g -I/home/rnd2/work/maaxboard/avnet/imx-yocto-bsp/maaxboard/build/tmp/work/aarch64-mx8m-poky-linux/imx-test/1_7.0+AUTOINC+fb55212d11-r0/recipe-sysroot/usr/include/imx mxc_jpeg_test/decoder_test.c -o mxc_jpeg_test/decoder_test.o
| In file included from mxc_jpeg_test/decoder_test.c:29:0:
| mxc_jpeg_test/mxc_jpeg_test.h:51:13: error: 'V4L2_PIX_FMT_YUV24' undeclared here (not in a function); did you mean 'V4L2_PIX_FMT_YUV32'?
| .fourcc = V4L2_PIX_FMT_YUV24
| ^~~~~~~~~~~~~~~~~~
| V4L2_PIX_FMT_YUV32
| Makefile:23: recipe for target 'mxc_jpeg_test/decoder_test.o' failed
| make[1]: *** [mxc_jpeg_test/decoder_test.o] Error 1
| make[1]: Leaving directory '/home/rnd2/work/maaxboard/avnet/imx-yocto-bsp/maaxboard/build/tmp/work/aarch64-mx8m-poky-linux/imx-test/1_7.0+AUTOINC+fb55212d11-r0/git/test'
| ERROR: oe_runmake failed
| Makefile:46: recipe for target 'test' failed
| make: *** [test] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/rnd2/work/maaxboard/avnet/imx-yocto-bsp/maaxboard/build/tmp/work/aarch64-mx8m-poky-linux/imx-test/1_7.0+AUTOINC+fb55212d11-r0/temp/log.do_compile.29254)
ERROR: Task (/home/rnd2/work/maaxboard/avnet/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/imx-test/imx-test_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5696 tasks of which 5686 didn't need to be rerun and 1 failed.