LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   VLC Segmenation Error (https://www.linuxquestions.org/questions/slackware-14/vlc-segmenation-error-4175604188/)

ChrisAbela 04-19-2017 02:32 PM

VLC Segmenation Error
 
I build vlc with slckbuilds.org slackbuilds and I am getting this error:

$ vlc
VLC media player 3.0.0-git Vetinari (revision 2.2.0-git-12050-g8268fe0)
Segmentation fault

All my packages are up-to-date and I installed all the dependencies, except chromapaint, but the vlc dependencies are optional.

I downloaded and installed Alien Bob package for v2.2.4 and it works fine, but I prefer to have build from slackbuilds.org because it is simpler to manage packages/builds from one repository.

I install requiredbuilder to check if I have all the dependencies, and I got this:

Quote:

$ requiredbuilder -i vlc
ldd /usr/lib64/vlc/plugins/video_filter/libopencv_wrapper_plugin.so: libavformat.so.56 => not found
ldd /usr/lib64/vlc/plugins/video_filter/libopencv_wrapper_plugin.so: libavutil.so.54 => not found
ldd /usr/lib64/vlc/plugins/video_filter/libopencv_wrapper_plugin.so: libavresample.so.2 => not found
ldd /usr/lib64/vlc/plugins/video_filter/libopencv_wrapper_plugin.so: libavformat.so.56 => not found
ldd /usr/lib64/vlc/plugins/video_filter/libopencv_wrapper_plugin.so: libavutil.so.54 => not found
ldd /usr/lib64/vlc/plugins/video_filter/libopencv_wrapper_plugin.so: libavresample.so.2 => not found
ldd /usr/lib64/vlc/plugins/video_filter/libopencv_example_plugin.so: libavformat.so.56 => not found
ldd /usr/lib64/vlc/plugins/video_filter/libopencv_example_plugin.so: libavutil.so.54 => not found
ldd /usr/lib64/vlc/plugins/video_filter/libopencv_example_plugin.so: libavresample.so.2 => not found
ldd /usr/lib64/vlc/plugins/video_filter/libopencv_example_plugin.so: libavformat.so.56 => not found
ldd /usr/lib64/vlc/plugins/video_filter/libopencv_example_plugin.so: libavutil.so.54 => not found
ldd /usr/lib64/vlc/plugins/video_filter/libopencv_example_plugin.so: libavresample.so.2 => not found
a52dec
acl
alsa-lib
atk
attr
bzip2
cairo
celt
cyrus-sasl
db48
dbus
eudev
expat
faad2
ffmpeg
flac
fluidsynth
fontconfig
freeglut
freetype
fribidi
ftgl
gcc
gcc-g++
gdk-pixbuf2
glew
glib2
glibc-solibs
glu
gmp
gnutls
gsm
gst-plugins-base
gstreamer
gtk+2
harfbuzz
icu4c
ilmbase
jack-audio-connection-kit
jasper
json-c
lame
libICE
libSM
libX11
libXau
libXcomposite
libXcursor
libXdamage
libXdmcp
libXext
libXfixes
libXi
libXinerama
libXpm
libXrandr
libXrender
libXtst
libXxf86vm
libarchive
libass
libasyncns
libavc1394
libbluray
libcaca
libcap
libcddb
libcroco
libdc1394
libdca
libdrm
libdvbpsi
libdvdnav
libdvdread
libebml
libexif
libfdk-aac
libffi
libgcrypt
libgme
libgpg-error
libgphoto2
libidn
libilbc
libjpeg-turbo
libkate
libmad
libmatroska
libmodplug
libmpeg2
libmtp
libnotify
libogg
libpng
libraw1394
librsvg
libsamplerate
libsecret
libshout
libsidplay2
libsndfile
libssh
libssh2
libtar
libtermcap
libtheora
libtiff
libtool
libunistring
libupnp
libusb
libva
libvdpau
libvncserver
libvorbis
libvpx
libwebp
libxcb
libxml2
libxshmfence
live555
lua
lzo
mesa
mpg123
musepack-tools
ncurses
nettle
opencore-amr
opencv
openexr
openjpeg
openldap-client
openssl | openssl-solibs
opus
orc
p11-kit
pango
pcre
pixman
projectM
pulseaudio
qt
qt5
readline
rtmpdump
samba
schroedinger
sdl
slang
snappy
speex
speexdsp
svgalib
taglib
twolame
util-linux
v4l-utils
wavpack
x264
x265
xcb-util-keysyms
xine-lib
xvidcore
xz
zlib
zvbi
The missing libraries are available from the ffmpeg package but the versions are wrong.

ponce 04-19-2017 02:41 PM

for those ones maybe you have to rebuild opencv against the newer ffmpeg?

which video driver are you using?

bassmadrigal 04-19-2017 02:44 PM

Those missing libraries are tied to ffmpeg 2.8, so it seems this was built against that version, but it is no longer installed on the system. If you're running -current, it includes ffmpeg 3.2.4. Since the errors state that libopencv_wrapper_plugin.so can't find those versions, you would likely need to recompile opencv. Once that is recompiled, it is possible you'll need to recompile VLC off the newly compiled opencv, but you can try and run it before you attempt that.

EDIT: and ponce beat me to it...

Alien Bob 04-19-2017 03:32 PM

Quote:

Originally Posted by ChrisAbela (Post 5699368)
I downloaded and installed Alien Bob package for v2.2.4 and it works fine, but I prefer to have build from slackbuilds.org because it is simpler to manage packages/builds from one repository.

I'd say that your post proved exactly the opposite.
There is a good reason that I compile my VLC package with a lot of statically compiled libraries. It means, there's no interference from OS changes that kan kill my most-used program.

ChrisAbela 04-20-2017 01:11 AM

All,

My build machine is inaccessible from here and I may take some time to reply. In the mean-time I can reply to some posts.

I am running Slackware-x86_64 14.2 (stable) on all my machines - a build server, a PC and a laptop, not current. I am getting the same error message on my machines.

Quote:

I'd say that your post proved exactly the opposite.
There is a good reason that I compile my VLC package with a lot of statically compiled libraries. It means, there's no interference from OS changes that kan kill my most-used program.
Managing and updating 3rd party packages is very time consuming, but I admit that it is challenging and fun. I like the SBo set up and since I started using their builds, (probably around 2008), I hardly had any issues. I use SBo builds extensively. Things do not break without a reason and when they do, they serve as opportunity to learn something new.

I appreciate your repository and when I stall, it is the first place I look for alternatives. Your packages, just work, but the SBo repo is much larger, and keeping track with all the updates on both repositories (and checking for conflicts) is beyond my resources right now. So please do accept both my gratitude for your work and also my preferences, even if you think that they are incoherent.

ponce 04-20-2017 02:00 AM

the reason why vlc has been silently bumped to a git snapshot in SBo is because 2.2.4 won't build against the newer ffmpeg, so it was a forced update.

I had tested it for a while (building it and every dependency from scratch) and I haven't experienced segfaults here.

consider that the vlc maintainer on SBo might have his own ideas on how to move on from what we have in our repository: it's his call.

ChrisAbela 04-20-2017 08:44 AM

I removed opencv, rebuild ffmpeg and then vlc.

Now vlc works.

Thank You All!


All times are GMT -5. The time now is 03:19 PM.