Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error: undeclared (first use in this function).. #7

Closed
e1voronov opened this issue Sep 9, 2018 · 7 comments
Closed

compilation error: undeclared (first use in this function).. #7

e1voronov opened this issue Sep 9, 2018 · 7 comments

Comments

@e1voronov
Copy link

Could you please help to resolve compilation issue. Thank you!

CC v4l2_request_drv_video_la-config.lo
config.c: In function ‘RequestQueryConfigProfiles’:
config.c:116:6: error: ‘V4L2_PIX_FMT_MPEG2_SLICE’ undeclared (first use in this function); did you mean ‘V4L2_PIX_FMT_MPEG2’?
V4L2_PIX_FMT_MPEG2_SLICE);
^~~~~~~~~~~~~~~~~~~~~~~~
V4L2_PIX_FMT_MPEG2
config.c:116:6: note: each undeclared identifier is reported only once for each function it appears in
config.c:124:6: error: ‘V4L2_PIX_FMT_H264_SLICE’ undeclared (first use in this function); did you mean ‘V4L2_PIX_FMT_H264_MVC’?
V4L2_PIX_FMT_H264_SLICE);
^~~~~~~~~~~~~~~~~~~~~~~
V4L2_PIX_FMT_H264_MVC
config.c:135:6: error: ‘V4L2_PIX_FMT_HEVC_SLICE’ undeclared (first use in this function); did you mean ‘V4L2_PIX_FMT_H264_SLICE’?
V4L2_PIX_FMT_HEVC_SLICE);
^~~~~~~~~~~~~~~~~~~~~~~
V4L2_PIX_FMT_H264_SLICE
Makefile:561: recipe for target 'v4l2_request_drv_video_la-config.lo' failed
make[2]: *** [v4l2_request_drv_video_la-config.lo] Error 1
make[2]: Leaving directory '/usr/src/libva-v4l2-request/src'
Makefile:393: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/libva-v4l2-request/src'
Makefile:393: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

@TarkusGSA
Copy link

I have absolutely the same issue.

@mripard
Copy link
Contributor

mripard commented Oct 5, 2018

You've very likely not installed the headers of our kernel, which are adding those definitions.

@mripard mripard closed this as completed Oct 5, 2018
@Dreyk007
Copy link

Same problem for me. But i have linux-cedrus headers installed. How else can I fix this error?

@maximst
Copy link

maximst commented Nov 27, 2019

Yes, I am have linux-cedrus headers installed to. But get the same error.

@adriancable
Copy link

Same problem for me - and I do have the headers installed. Did we ever find a resolution for this?

@luusl
Copy link

luusl commented Feb 24, 2020

This repository hasn't been updated for the latest kernel sources. I'm using on of pH5's branches: https://github.com/pH5/libva-v4l2-request/tree/multi-context

@roberthoegerl
Copy link

This repository hasn't been updated for the latest kernel sources. I'm using on of pH5's branches: https://github.com/pH5/libva-v4l2-request/tree/multi-context

Tried both pH5 and bootlin, but the problem stays the same:

config.c: In function 'RequestQueryConfigProfiles':
config.c:123:6: error: 'V4L2_PIX_FMT_MPEG2_SLICE' undeclared (first use in this function); did you mean 'V4L2_PIX_FMT_HEVC_SLICE'?
      V4L2_PIX_FMT_MPEG2_SLICE);
      ^~~~~~~~~~~~~~~~~~~~~~~~
      V4L2_PIX_FMT_HEVC_SLICE
config.c:123:6: note: each undeclared identifier is reported only once for each function it appears in
Makefile:601: recipe for target 'v4l2_request_drv_video_la-config.lo' failed

You've very likely not installed the headers of our kernel, which are adding those definitions.

I am using odroid's ubuntu kernel (linux-image-xu3 aka linux-image-4.14.111-139) for which there is no ready kernel header ubuntu package, so I cloned the headers using git:
git clone --depth 1 https://github.com/hardkernel/linux -b odroidxu4-4.14.y
and created links

ln -s /root/linux /lib/modules/$(uname -r)/build/include/linux
ln -s /root/linux /usr/src/linux-headers-$(uname -r)/include/linux

Still getting the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants