error: 'V4L2_PIX_FMT_YUV24' undeclared here (not in a function)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

error: 'V4L2_PIX_FMT_YUV24' undeclared here (not in a function)

1,316 Views
gonewithwind-peter
Senior Contributor I

hi 

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!

 

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.

 

Summary: 1 task failed:

  /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

Summary: There was 1 WARNING message shown.

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

 

 

0 Kudos
1 Reply

1,309 Views
igorpadykov
NXP Employee
NXP Employee

Hi jin1

 

issue may be posted on  https://github.com/Avnet/meta-maaxboard/issues

NXP supports only linux from source.codeaurora.org/external/imx/linux-imx repository
https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.47_2.2.0

https://source.codeaurora.org/external/imx/imx-test/tree/?h=imx_5.4.47_2.2.0

Build steps can be found in  i.MX Yocto Project User’s Guide​

 

Best regards
igor

0 Kudos