Nux!


Home » Stella » Report a problem or request a feature » VLC needs to be recompiled for EL 7.7
VLC needs to be recompiled for EL 7.7 [message #4162] Thu, 19 September 2019 10:36 Go to next message
DrLove73 is currently offline  DrLove73
Messages: 1
Registered: September 2019
Location: Novi Sad, Serbia, Europe
Junior Member
Hi Nux.
vlc-core version 2.2.5.1-2 is compiled against freerdp from EL 7.0-7.6. In 7.7 Freerdp is now version 2.0.0-1.rc4 so VLC needs to be recompiled for new freerdp version.

[Updated on: Thu, 19 September 2019 10:39]

Report message to a moderator

Re: VLC needs to be recompiled for EL 7.7 [message #4163 is a reply to message #4162] Fri, 20 September 2019 10:06 Go to previous messageGo to next message
TrevorH is currently offline  TrevorH
Messages: 13
Registered: October 2016
Junior Member
You can find up to date versions of vlc in one of the rpmfusion repos but since rpmfusion is largely incompatible with nux, you might also find it easier to use by installing it using flatpak. To do that you need to do something like this

$ cat /tmp/org.videolan.VLC.flatpakref
[Flatpak Ref]
Name=org.videolan.VLC
Branch=stable
Title=org.videolan.VLC from flathub
IsRuntime=false
Url=https://dl.flathub.org/repo/
SuggestRemoteName=flathub
GPGKey=mQINBFlD2sABEADsiUZUOYBg1UdDaWkEdJYkTSZD68214m8Q1fbrP5AptaUfCl8KYKFMNoAJRBXn9FbE6q6VBzghHXj/rSnA8WPnkbaEWR7xltOqzB1yHpCQ1l8xSfH5N02DMUBSRtD/rOYsBKbaJcOgW0K21sX+BecMY/AI2yADvCJEjhVKrjR9yfRX+NQEhDcbXUFRGt9ZT+TI5yT4xcwbvvTu7aFUR/dH7+wjrQ7lzoGlZGFFrQXSs2WI0WaYHWDeCwymtohXryF8lcWQkhH8UhfNJVBJFgCY8Q6UHkZG0FxMu8xnIDBMjBmSZKwKQn0nwzwM2afskZEnmNPYDI8nuNsSZBZSAw+ThhkdCZHZZRwzmjzyRuLLVFpOj3XryXwZcSefNMPDkZAuWWzPYjxS80cm2hG1WfqrG0Gl8+iX69cbQchb7gbEb0RtqNskTo9DDmO0bNKNnMbzmIJ3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BUrD537WdknOYE4FD7P0cHaM9brKJ/M8LkEH0zUlo73bY4XagbnCqve6PvQb5G2Z55qhWphd6f4B6DGed86zJEa/RhS
RuntimeRepo=https://dl.flathub.org/repo/flathub.flatpakrepo
$ sudo flatpak install /tmp/org.videolan.VLC.flatpakref
The remote 'flathub', refered to by 'org.videolan.VLC' at location https://dl.flathub.org/repo/ contains additional applications.
Should the remote be kept for future installations? [y/n]: y
X11 connection rejected because of wrong authentication.
Required runtime for org.videolan.VLC/x86_64/stable (runtime/org.kde.Platform/x86_64/5.12) found in remote flathub
Do you want to install it? [y/n]: y
Installing in system:
org.kde.Platform/x86_64/5.12                       flathub 5539ccd35690
org.freedesktop.Platform.html5-codecs/x86_64/18.08 flathub 6ebb408b6e25
org.kde.KStyle.Adwaita/x86_64/5.12                 flathub 4b28aaee7c75
org.kde.Platform.Locale/x86_64/5.12                flathub b4cd61e0b3cc
org.videolan.VLC/x86_64/stable                     flathub 10f379499e07
  permissions: ipc, network, pulseaudio, x11, devices
  file access: host, xdg-config/kdeglobals:ro, xdg-run/dconf, xdg-run/gvfs, ~/.config/dconf:ro
  dbus access: ca.desrt.dconf, com.canonical.AppMenu.Registrar, org.freedesktop.Notifications, org.freedesktop.ScreenSaver, org.freedesktop.secrets, org.kde.kwalletd, org.kde.kwalletd5, org.mpris.MediaPlayer2.Player
  dbus ownership: org.mpris.MediaPlayer2.vlc
org.videolan.VLC.Locale/x86_64/stable              flathub 84f5a9f77119
Is this ok [y/n]: y
Installing: org.kde.Platform/x86_64/5.12 from flathub
[#########=          ] Downloading files: 12858/29177 155.3 MB (848.7 kB/s)
...


You will also need to yum remove the existing vlc first.
Re: VLC needs to be recompiled for EL 7.7 [message #4164 is a reply to message #4162] Fri, 20 September 2019 18:39 Go to previous messageGo to next message
TrevorH is currently offline  TrevorH
Messages: 13
Registered: October 2016
Junior Member
Please note: this does work but I did just notice the minor drawback... it installs 1.2GB of prereq flatpak packages in order to install an 88MB copy of vlc Wink
Re: VLC needs to be recompiled for EL 7.7 [message #4165 is a reply to message #4162] Tue, 24 September 2019 08:55 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1662
Registered: January 2012
Senior Member
Administrator

Sorry guys, was in holidays when new release came out, will try to fix it.
Re: VLC needs to be recompiled for EL 7.7 [message #4166 is a reply to message #4162] Tue, 24 September 2019 11:13 Go to previous message
alvaro
Messages: 13
Registered: March 2016
Junior Member
DrLove73 wrote on Thu, 19 September 2019 11:36
Hi Nux.
vlc-core version 2.2.5.1-2 is compiled against freerdp from EL 7.0-7.6. In 7.7 Freerdp is now version 2.0.0-1.rc4 so VLC needs to be recompiled for new freerdp version.

I am not sure if VLC 2.2 can be rebuilt against FreeRDP 2.0.

Anyway, here is my initial patch for the SPEC file (without changelog):
--- vlc-2.2.5.1-2.el7.nux.spec	2019-09-24 08:20:54.699684239 +0200
+++ vlc.spec	2019-09-24 10:25:50.872383931 +0200
@@ -1,7 +1,12 @@
+%define devtoolset %{nil}
+%if 0%{?rhel} && 0%{?rhel} <= 7
+  %define devtoolset 7
+%endif
+
 Summary:    The cross-platform open-source multimedia framework, player and server
 Name:       vlc
 Version:    2.2.5.1
-Release:    2%{?dist}
+Release:    2.1%{?dist}
 Epoch:      1
 License:    GPLv2+
 URL:        http://www.videolan.org
@@ -45,7 +50,7 @@
 BuildRequires:  pkgconfig(fdk-aac)
 BuildRequires:  pkgconfig(flac)
 BuildRequires:  pkgconfig(fluidsynth) >= 1.1.2
-BuildRequires:  pkgconfig(freerdp) >= 1.0.1
+BuildRequires:  freerdp-devel >= 2.0.0
 BuildRequires:  pkgconfig(freetype2)
 BuildRequires:  pkgconfig(fribidi)
 BuildRequires:  pkgconfig(gl)
@@ -132,6 +137,13 @@
 BuildRequires:  pkgconfig(xproto)
 BuildRequires:  pkgconfig(zvbi-0.2) >= 0.2.28
 
+%if 0%{?devtoolset}
+BuildRequires:  devtoolset-%{devtoolset}-gcc-c++
+BuildRequires:  devtoolset-%{devtoolset}-gcc
+BuildRequires:  devtoolset-%{devtoolset}-binutils
+BuildRequires:  devtoolset-%{devtoolset}-libatomic-devel
+%endif
+
 Requires:       vlc-core%{_isa} = %{?epoch}:%{version}-%{release}
 Requires:       kde-filesystem
 
@@ -199,6 +211,15 @@
     configure.ac
 
 %build
+%if 0%{?devtoolset}
+# We need to disable exit on error temporarily for the following scripts:
+set +e
+
+source scl_source enable devtoolset-%{devtoolset}
+
+set -e
+%endif
+
 autoreconf -vif
 %configure \
     --disable-silent-rules \
@@ -215,7 +236,7 @@
     --with-default-monospace-font-family=DejaVuSansMono \
     --with-pic
 
-make %{?_smp_mflags}
+%{make_build}
 
 %install
 make install DESTDIR=%{buildroot} INSTALL="install -p" CPPROG="cp -p"
@@ -362,7 +383,7 @@
 %{_libdir}/%{name}/plugins/access/liblive555_plugin.so
 %{_libdir}/%{name}/plugins/access/libpulsesrc_plugin.so
 %{_libdir}/%{name}/plugins/access/librar_plugin.so
-%{_libdir}/%{name}/plugins/access/librdp_plugin.so
+#%{_libdir}/%{name}/plugins/access/librdp_plugin.so
 %{_libdir}/%{name}/plugins/access/librtp_plugin.so
 %{_libdir}/%{name}/plugins/access/libsdp_plugin.so
 %{_libdir}/%{name}/plugins/access/libsftp_plugin.so
@@ -673,9 +694,9 @@
 %{_libdir}/%{name}/plugins/video_splitter/libwall_plugin.so
 %{_libdir}/%{name}/plugins/visualization/libglspectrum_plugin.so
 %{_libdir}/%{name}/plugins/visualization/libvisual_plugin.so
-%{_libdir}/%{name}/plugins/audio_filter/libdtstofloat32_plugin.so
-%{_libdir}/%{name}/plugins/codec/libcrystalhd_plugin.so
-%{_libdir}/%{name}/plugins/demux/libgme_plugin.so
+#%{_libdir}/%{name}/plugins/audio_filter/libdtstofloat32_plugin.so
+#%{_libdir}/%{name}/plugins/codec/libcrystalhd_plugin.so
+#%{_libdir}/%{name}/plugins/demux/libgme_plugin.so
 %{_libdir}/%{name}/%{name}-cache-gen
 %{_mandir}/man1/%{name}*.1*



Beware! The following plugins are no longer available:
    File not found: /home/scx/rpmbuild/BUILDROOT/vlc-2.2.5.1-2.1.el7.x86_64/usr/lib64/vlc/plugins/access/librdp_plugin.so
    File not found: /home/scx/rpmbuild/BUILDROOT/vlc-2.2.5.1-2.1.el7.x86_64/usr/lib64/vlc/plugins/audio_filter/libdtstofloat32_plugin.so
    File not found: /home/scx/rpmbuild/BUILDROOT/vlc-2.2.5.1-2.1.el7.x86_64/usr/lib64/vlc/plugins/codec/libcrystalhd_plugin.so
    File not found: /home/scx/rpmbuild/BUILDROOT/vlc-2.2.5.1-2.1.el7.x86_64/usr/lib64/vlc/plugins/demux/libgme_plugin.so


What's worse, without DTS 7 I hit the following error:
In file included from ../include/vlc_picture.h:36:0,
                 from ../include/vlc_subpicture.h:34,
                 from ../include/vlc_spu.h:29,
                 from ../include/vlc_vout_osd.h:29,
                 from ../include/vlc_input.h:39,
                 from ../include/vlc_playlist.h:31,
                 from libvlc-module.c:37:
../include/vlc_atomic.h:33:25: fatal error: stdatomic.h: No such file or directory
 #  include <stdatomic.h>
                         ^
compilation terminated.


As you can see, we don't have much choice:
# yum -q --disableplugin='priorities' --enablerepo='epel-testing' provides '*/stdatomic.h'
avr-gcc-4.9.2-1.el7.x86_64 : Cross Compiling GNU GCC targeted at avr
Repo        : epel
Matched from:
Filename    : /usr/lib/gcc/avr/4.9.2/include/stdatomic.h



compat-gcc-44-c++-4.4.7-8.el7.x86_64 : C++ support for compatibility compiler
Repo        : rhel-7-server-rpms
Matched from:
Filename    : /usr/include/c++/4.4.7/stdatomic.h



llvm-private-devel-3.9.1-9.el7.i686 : Libraries and header files for LLVM
Repo        : rhel-7-server-optional-rpms
Matched from:
Filename    : /usr/lib/clang/3.9.1/include/stdatomic.h



llvm-private-devel-3.9.1-9.el7.x86_64 : Libraries and header files for LLVM
Repo        : rhel-7-server-optional-rpms
Matched from:
Filename    : /usr/lib64/clang/3.9.1/include/stdatomic.h



llvm-private-devel-5.0.0-3.el7.i686 : Libraries and header files for LLVM
Repo        : rhel-7-server-optional-rpms
Matched from:
Filename    : /usr/lib/clang/5.0.0/include/stdatomic.h



llvm-private-devel-5.0.0-3.el7.x86_64 : Libraries and header files for LLVM
Repo        : rhel-7-server-optional-rpms
Matched from:
Filename    : /usr/lib64/clang/5.0.0/include/stdatomic.h



llvm-private-devel-6.0.1-2.el7.i686 : Libraries and header files for LLVM
Repo        : rhel-7-server-optional-rpms
Matched from:
Filename    : /usr/lib/clang/6.0.1/include/stdatomic.h



llvm-private-devel-6.0.1-2.el7.x86_64 : Libraries and header files for LLVM
Repo        : rhel-7-server-optional-rpms
Matched from:
Filename    : /usr/lib64/clang/6.0.1/include/stdatomic.h



llvm-private-devel-7.0.1-1.el7.i686 : Libraries and header files for LLVM
Repo        : rhel-7-server-optional-rpms
Matched from:
Filename    : /usr/lib/clang/7.0.1/include/stdatomic.h



llvm-private-devel-7.0.1-1.el7.x86_64 : Libraries and header files for LLVM
Repo        : rhel-7-server-optional-rpms
Matched from:
Filename    : /usr/lib64/clang/7.0.1/include/stdatomic.h



mingw32-gcc-4.9.3-1.el7.x86_64 : MinGW Windows cross-compiler (GCC) for C for
                               : the win32 target
Repo        : epel
Matched from:
Filename    : /usr/lib/gcc/i686-w64-mingw32/4.9.3/include/stdatomic.h



mingw64-gcc-4.9.3-1.el7.x86_64 : MinGW Windows cross-compiler (GCC) for C for
                               : the win64 target
Repo        : epel
Matched from:
Filename    : /usr/lib/gcc/x86_64-w64-mingw32/4.9.3/include/stdatomic.h



root-cling-6.18.02-1.el7.x86_64 : Cling C++ interpreter
Repo        : epel
Matched from:
Filename    : /usr/share/root/cling/lib/clang/5.0.0/include/stdatomic.h



devtoolset-7-gcc-7.3.1-5.13.el7.x86_64 : GCC version 7
Repo        : @rhel-7-server-devtools-rpms
Matched from:
Filename    : /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/include/stdatomic.h






So, either LLVM/Clang or GCC from DTS.
Previous Topic: Please update Remmina
Goto Forum:
  


Current Time: Sun Dec 15 07:12:49 GMT 2019

Total time taken to generate the page: 0.00835 seconds