Page 1 of 1

Cannot run configure due to dvdread

Posted: 04 Oct 2016 23:58
by jimmyjinkles
I have follow the steps to get and compile VLC source 2.2.4 for Ubuntu. My issue is this when running configure

checking for DC1394... yes
checking for DV1394... yes
checking for DVDREAD... no
configure: error: Library dvdread > 4.9.0 needed for dvdread was not found

It is really infuriating because dvdread only exists at 4.2 in apt and I ran
sudo apt-get build-dep vlc
Which did not fail so I don't understand how it doesn't get this dependency.
Also
sudo apt-get install -y libdvdread4
sudo apt-get install -y libdvdread-dev
These are not the latest versions.

Does it make sense to grab 5.0 from http://www.linuxfromscratch.org/blfs/vi ... dread.html ? I mean I tried anyways, extracted it, and from the extracted folder ran

./configure --prefix=/usr && make

which did not make a difference. It still cannot find libdvdread.. Worst part is I don't even need dvdread.

Re: Cannot run configure due to dvdread

Posted: 05 Oct 2016 13:06
by Rémi Denis-Courmont
'apt-get build-dep vlc' gets the dependencies for the version of VLC inside Ubuntu.

Re: Cannot run configure due to dvdread

Posted: 05 Oct 2016 13:57
by jimmyjinkles
And that command went without a hitch. Yet I cannot build because of dvdread...

This is exactly what happens after I apt-get remove dvdread and run apt-get build-dep vlc

libdvdnav-dev libdvdread-dev
Get:1 http://ca.archive.ubuntu.com/ubuntu/ trusty/universe libdvdread-dev amd64 4.2.1-2ubuntu1 [62.0 kB]
Fetched 111 kB in 2s (44.1 kB/s)
Selecting previously unselected package libdvdread-dev:amd64.
(Reading database ... 193761 files and directories currently installed.)
Preparing to unpack .../libdvdread-dev_4.2.1-2ubuntu1_amd64.deb ...
Unpacking libdvdread-dev:amd64 (4.2.1-2ubuntu1) ...
Setting up libdvdread-dev:amd64 (4.2.1-2ubuntu1) ...

Why is it installing 4.2 when it needs 4.9? Is there someone I can post this issue to whomever manages said packages?

Re: Cannot run configure due to dvdread

Posted: 05 Oct 2016 16:06
by Rémi Denis-Courmont
Sigh. Because the version of VLC inside Ubuntu works fine with dvdread 4.2 only?

Re: Cannot run configure due to dvdread

Posted: 06 Oct 2016 19:52
by nonzyro
What Rémi means is that the version you installed with your *package manager* has all dependencies satisfied.
The version you want to *build* requires more "bleeding-edge" libs.
What you build *is not* the same as your package manager installed. When you run build-dep it is done by your package manager (APT) and the query is made against the index retrieved by APT on the last update.
This is not related to building it. That is entirely a different beast. My advice: if want something newer than your distribution's default version, use a backport.