AnsweredAssumed Answered

Error in building imx-test-3.14.28 for IMX6 Solo

Question asked by Chaitanya Dhere on Sep 9, 2015
Latest reply on Sep 10, 2015 by gusarambula

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

Outcomes