[Slackbuilds-users] libva required by motion

Sebastian Arcus s.arcus at open-t.co.uk
Tue Feb 28 19:40:36 UTC 2017


I am trying to test build the next version/generation of Motion (4.0.1 
from here: https://github.com/Motion-Project/motion/releases) to upload 
at SBo. I'm going around in circles a bit as I can't work out the 
correct requirements. The previous version has libva down as optional 
dependency, but this version doesn't seem to want to compile without it. 
I can't even find libva on SBo anyway - searching for it leads to the 
vdpau-video page - which in turn requires "a version of the proprietary 
NVIDIA display driver". I've read the various descriptions of the above 
libraries - and I can't work out:

1. if libva is really a hard dependency for motion - or how can I 
compile without it? There doesn't seem to be a corresponding switch for 
./configure
2. what is the connection between libva and vdpau-video? Is one a 
replacement for the other?
3. if vdpau-video is really required - does it literally mean I would 
have to  install NVDIA drivers on a system which doesn't even have any 
NVDIA chip?

Any clues about the above would be much appreciated. I enclose below the 
output from attempting to compile motion:

</snip>
Linking Motion...
--------------------------------------------------------------------------------
gcc  -o motion motion.o logger.o conf.o draw.o jpegutils.o 
vloopback_motion.o video.o video2.o video_common.o netcam.o netcam_ftp.o 
netcam_jpeg.o netcam_wget.o track.o alg.o event.o picture.o rotate.o 
webhttpd.o stream.o md5.o netcam_rtsp.o ffmpeg.o   -lm  -lpthread -ljpeg 
-lsqlite3   -lavutil -lavformat -lavcodec -lswscale
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../x86_64-slackware-linux/bin/ld: 
warning: libX11.so.6, needed by 
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so, 
not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../x86_64-slackware-linux/bin/ld: 
warning: libvdpau.so.1, needed by 
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so, 
not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../x86_64-slackware-linux/bin/ld: 
warning: libva.so.1, needed by 
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so, 
not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../x86_64-slackware-linux/bin/ld: 
warning: libva-drm.so.1, needed by 
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so, 
not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../x86_64-slackware-linux/bin/ld: 
warning: libva-x11.so.1, needed by 
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so, 
not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaInitialize'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaQueryConfigProfiles'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaMaxNumImageFormats'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `XOpenDisplay'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vdp_device_create_x11'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaRenderPicture'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaDeriveImage'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaGetDisplay'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaMapBuffer'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaGetImage'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaPutImage'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaDestroySurfaces'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaMaxNumProfiles'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `XDefaultScreen'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaSyncSurface'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaTerminate'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaDestroyImage'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaGetConfigAttributes'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaCreateImage'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaMaxNumEntrypoints'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `XDisplayName'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaCreateSurfaces at VA_API_0.33.0'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaQueryVendorString'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaCreateBuffer'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaQueryConfigEntrypoints'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaDestroyBuffer'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaCreateConfig'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaQueryImageFormats'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaEndPicture'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaErrorStr'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaDestroyConfig'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaUnmapBuffer'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `XDisplayString'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaCreateContext'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaQuerySurfaceAttributes'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaDestroyContext'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavcodec.so: 
undefined reference to `vaBeginPicture'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `vaGetDisplayDRM'
/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libavutil.so: 
undefined reference to `XCloseDisplay'
collect2: error: ld returned 1 exit status
make: *** [Makefile:85: motion] Error 1



More information about the SlackBuilds-users mailing list