You are not logged in.

#1 2019-07-23 09:49:49

thafiz
Member
Registered: 2019-07-23
Posts: 1

libva-vdpau-driver-chromium fails to build

Hi, I am not entirely sure if this is to correct place to put this bug, so please redirect me if I am wrong.

I am trying to get chromium to render videos properly and fast using amdgpu, and found out that this is achieved by libva-vdpau-driver-chromium.

yay -Sy libva-vdpau-driver-chromium

leaves me with a compilation error:

../../libva-vdpau-driver-0.7.4/src/vdpau_video.c:975:1: error: conflicting types for 'vdpau_CreateSurfaceFromV4L2Buf'
  975 | vdpau_CreateSurfaceFromV4L2Buf(
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../libva-vdpau-driver-0.7.4/src/vdpau_video.c:22:
../../libva-vdpau-driver-0.7.4/src/vdpau_video.h:283:1: note: previous declaration of 'vdpau_CreateSurfaceFromV4L2Buf' was here
  283 | vdpau_CreateSurfaceFromV4L2Buf(
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:464: vdpau_video.lo] Error 1
make[2]: Leaving directory '/home/fiz/.cache/yay/libva-vdpau-driver-chromium/src/build/src'
make[1]: *** [Makefile:340: all] Error 2
make[1]: Leaving directory '/home/fiz/.cache/yay/libva-vdpau-driver-chromium/src/build/src'
make: *** [Makefile:308: all-recursive] Error 1
make: Leaving directory '/home/fiz/.cache/yay/libva-vdpau-driver-chromium/src/build'
==> ERROR: A failure occurred in build().
    Aborting...
Error making: libva-vdpau-driver-chromium

However, to me the declaration looks matching:

vdpau_video.h wrote:

281 // vaCreateSurfaceFromV4L2Buf   
282 VAStatus                         
283 vdpau_CreateSurfaceFromV4L2Buf( 
284     VADriverContextP    ctx,     
285     int                 v4l2_fd,
286     struct v4l2_format *v4l2_fmt,
287     struct v4l2_buffer *v4l2_buf,
288     VASurfaceID        *surface 
289 ) attribute_hidden;

vdpau_video.c wrote:

973 // vaCreateSurfaceFromV4L2Buf
974 VAStatus
975 vdpau_CreateSurfaceFromV4L2Buf(
976     VADriverContextP    ctx,
977     int                 v4l2_fd,
978     struct v4l2_format *v4l2_fmt,
979     struct v4l2_buffer *v4l2_buf,
980     VASurfaceID        *surface
981 )
982 {
983     /* TODO */
984     return VA_STATUS_ERROR_UNKNOWN;
985 }

Please let me know how to proceed with this issue.
Thanks in advance.

Offline

#2 2019-07-25 18:07:27

liewkj
Member
Registered: 2019-07-08
Posts: 74

Re: libva-vdpau-driver-chromium fails to build

Commenting out the 2 struct args in both places will make it build. It's a dummy stub function anyway, so the args will not matter.

/*
     struct v4l2_format *v4l2_fmt,
     struct v4l2_buffer *v4l2_buf,
*/

Offline

Board footer

Powered by FluxBB