Hi,
i use stream decode(HW)for linux,but it‘s must root user.
i test found,the proble maybe library for libva,it‘s must root user.if use official website latest,normal user its ok,but libmfxhw64.so: undefined reference to `vaCreateSurfaces@VA_API_0.34.0' why?can you help me
test example:
test code:
#include <stdio.h>
#include <va/va.h>
#include <va/va_drm.h>
#include <fcntl.h>
void main()
{
int fd;
VADisplay _va_dpy;
fd = open("/dev/dri/card0", O_RDWR);
printf(" open fd:%d", fd);
_va_dpy = vaGetDisplayDRM(fd);
int maj_ver, min_ver;
vaInitialize(_va_dpy, &maj_ver, &min_ver);
}gcc test.c -L /usr/local/lib -lva-drm
1.result:(normal user) use http://www.freedesktop.org/software/vaapi/releases/libva/libva-1.2.1.tar.bz2 libva livdrm
[zhaoya@localhost decode]$ ./a.out
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
2.result:(normal user) use libva libdrm in linux media sdk
[zhaoya@localhost bin]$ ./a.out
libva info: VA-API version 0.34.0
open lib: Invalid argument
libva info: va_getDriverName() returns 1
i try use libva of official website latest replace it, but have error:libmfxhw64.so: undefined reference to `vaCreateSurfaces@VA_API_0.34.0'