Error in building imx-test-3.14.28 for IMX6 Solo

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

Error in building imx-test-3.14.28 for IMX6 Solo

1,581 Views
chaitanyadhere
Contributor I

Hello all,

              I'm using linux-imx version 3.14.28. I'm getting the following error when building imx-test recipe for a IMX6 Solo based platform:

In file included from /home/machine/yocto/build/tmp/sysroots/eagle-imx6-solo/usr/src/kernel/include/uapi/linux/videodev2.h:64:0,

                 from vpu_test.h:19,

                 from enc.c:24:

/home/machine/yocto/build/tmp/sysroots/eagle-imx6-solo/usr/src/kernel/include/uapi/linux/types.h:9:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Wcpp]

#warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"

  ^

enc.c: In function 'encoder_fill_headers':

enc.c:294:18: error: 'EncHeaderParam' has no member named 'pBuf'

      enchdr_param.pBuf = pBuffer;

                  ^

enc.c:296:39: error: 'ENC_GET_VIDEO_HEADER' undeclared (first use in this function)

      ret = vpu_EncGiveCommand(handle, ENC_GET_VIDEO_HEADER, &enchdr_param);

                                       ^

enc.c:296:39: note: each undeclared identifier is reported only once for each function it appears in

enc.c:347:31: error: 'ENC_ENABLE_SOF_STUFF' undeclared (first use in this function)

    vpu_EncGiveCommand(handle, ENC_ENABLE_SOF_STUFF, &enableSofStuffing);

                               ^

enc.c: In function 'encoder_open':

enc.c:1133:29: error: 'EncAvcParam' has no member named 'avc_vui_present_flag'

   encop.EncStdParam.avcParam.avc_vui_present_flag = 0;

                             ^

enc.c:1134:57: error: 'EncAvcParam' has no member named 'avc_vui_present_flag'

   enc->avc_vui_present_flag = encop.EncStdParam.avcParam.avc_vui_present_flag;

                                                         ^

enc.c:1135:29: error: 'EncAvcParam' has no member named 'avc_vui_param'

   encop.EncStdParam.avcParam.avc_vui_param.video_signal_type_pres_flag = 1;

                             ^

enc.c:1136:29: error: 'EncAvcParam' has no member named 'avc_vui_param'

   encop.EncStdParam.avcParam.avc_vui_param.video_format = 0;

                             ^

enc.c:1137:29: error: 'EncAvcParam' has no member named 'avc_vui_param'

   encop.EncStdParam.avcParam.avc_vui_param.video_full_range_flag = 1;

                             ^

enc.c:1138:29: error: 'EncAvcParam' has no member named 'avc_vui_param'

   encop.EncStdParam.avcParam.avc_vui_param.colour_descrip_pres_flag = 1;

                             ^

enc.c:1139:29: error: 'EncAvcParam' has no member named 'avc_vui_param'

   encop.EncStdParam.avcParam.avc_vui_param.colour_primaries = 1;

                             ^

enc.c:1140:29: error: 'EncAvcParam' has no member named 'avc_vui_param'

   encop.EncStdParam.avcParam.avc_vui_param.transfer_characteristics = 1;

                             ^

enc.c:1141:29: error: 'EncAvcParam' has no member named 'avc_vui_param'

   encop.EncStdParam.avcParam.avc_vui_param.matrix_coeff = 0;

                             ^

enc.c:1142:29: error: 'EncAvcParam' has no member named 'avc_level'

   encop.EncStdParam.avcParam.avc_level = 0;

                             ^

make[2]: *** [enc.o] Error 1

make[2]: Leaving directory `/home/machine/yocto/build/tmp/work/eagle_imx6_solo-oe-linux-gnueabi/imx-test/1_3.14.28-1.0.0-r4/imx-test-3.14.28-1.0.0/test/mxc_vpu_test'

make[1]: [mxc_vpu_test] Error 2 (ignored)

Is there any fix for this issue ? I want to use mxc_vpu_test.out for testing purpose.

Thanks,

Chaitanya Dhere

0 Kudos
Reply
3 Replies

1,022 Views
dhavalvadhar
Contributor IV

Hi Chaitanya,

How are you trying to build the imx-test? Have you created any image before building imx-test?

I am building the same for Sololite EVK using 'bitbake imx-test' command and it works perfectly fine.

Thanks,

Dhaval

0 Kudos
Reply

1,022 Views
chaitanyadhere
Contributor I

Hi Dhaval,

                Yes I have already built the image before building imx-test. I'm using the new kernel 3.14.28. For 3.10.17 kernel imx-test was building fine.

Thanks,

Chaitanya Dhere

0 Kudos
Reply

1,022 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Chaitanya Dhere,

I was also able to bake this recipe. Would you please provide the steps you used to build it? It seems odd that you're having problems. Which MACHINE are you using?

I would also recommend doing a clean all and try again.

$ bitbake -c cleanall imx-test

0 Kudos
Reply