On 07/24/2016 06:55 PM, Paul Hentschel wrote:
On 07/24/2016 06:19 PM, Ken Moffat wrote:
On Sun, Jul 24, 2016 at 03:41:20PM -0400, Paul Hentschel wrote:
On 07/24/2016 03:31 PM, Bruce Dubbs wrote:
The reason for the required upgrade is because qt4 is required for the
2.x version of the vlc qt interface and we have dropped qt4 from BLFS.
It would be interesting if we could get a decent alternate interface
without qt for the 2.x version of vlc.

  -- Bruce


Just so you know, I don't have qt4 on either system. I built 2.2.3 with
qt5.6 and gcc5.3.

Paul posted about this in May, (2.2.3 using the systemd book) - at
that time he had to use clang to build it.  I replied noting that
gcc-5 worked for me.

I think there were other comments in a different|earlier thread, and
indeed ISTR at least one person could not build without qt4 (perhaps
a fuller set of dependencies than I was using).

But the book had been changed by the time I did my first (so far,
only) build with gcc6 so I've not tried that with the old release.

ĸen


Ken, I ended up getting it to build with gcc5.3 instead of clang by
removing the CXX="g++ -std=c++11" flag from the book commands. Here are
the book commands (r17455):

sed -i '/seems to be moved/s/^/#/' autotools/ltmain.sh

patch -Np1 -i ../vlc-2.2.3-ffmpeg3-1.patch &&

CXX="g++ -std=c++11"              \
CFLAGS="-DLUA_COMPAT_5_1"         \
OPENCV_LIBS="-L/usr/share/OpenCV" \
./configure --prefix=/usr &&

make

Like I said, I removed the CXX flag for it to work with gcc5.3 / qt5.6.
I was told (by Bruce, I think) that it is definitely required for gcc6.
I tried using the following to build on my gcc6 system but it is not
working.

sed -i '/seems to be moved/s/^/#/' autotools/ltmain.sh

patch -Np1 -i ../vlc-2.2.3-ffmpeg3-1.patch &&

CXX="g++ -std=c++11"              \
CFLAGS="-DLUA_COMPAT_5_1"         \
./configure --prefix=/usr &&

make

Paul

Ok, I found a patch at openSUSE and got 2.2.3, 2.2.4 and 2.2.5(latest from git stable) to build with qt5.7 and gcc6.1. Here is a links to the patch:

Description: https://build.opensuse.org/request/show/397726

Patch: https://build.opensuse.org/package/view_file/openSUSE:Factory/vlc/vlc-gcc6-buildfixes.patch?rev=adf9201abc61f54a7c1e192019056f48

Here is how I built:

sed -i '/seems to be moved/s/^/#/' autotools/ltmain.sh &&
patch -Np1 -i ../vlc-2.2.3-ffmpeg3-1.patch &&
patch -Np1 -i ../vlc-gcc-6-buildfixes.patch &&
CFLAGS="-DLUA_COMPAT_5_1" \
./configure --prefix=/usr --disable-atmo &&

make

As root user:
make docdir=/usr/share/doc/vlc-2.2.5 install

I only installed and tested 2.2.5 but I built the other 2 to see if they would build with the same patches, and they did. Apparently the new patch will break a build with gcc5, but I haven't tested that.

With the 2.2.x versions my DVDs play correctly and all the mpeg-2 files that were not playing correctly now work. That is the extent of the testing I did.

Paul



--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to