Hi,
I have a question about syntax
I am trying to build vlc 2.2-git but encountered the warning "configure: WARNING: Library dvdread > 4.9.0 needed for dvdread was not found"
The highest version available in Ubuntu and Debian is 4.2 So I downloaded the tarball for libdvdread-4.9.9 from videolan and build with
Code:
./configure --prefix=$HOME/vlc_build/vlcdeps/usr
in keeping with the structure of the build directories in the tutorial.
I then build vlc with
Code:
CPPFLAGS="-I$HOME/vlc_build/vlcdeps/usr/include"
LDFLAGS="-L$HOME/vlc_build/vlcdeps/usr/lib"
PKG_CONFIG_PATH="$HOME/vlc_build/vlcdeps/usr/lib/pkgconfig"
But still get the same complaint of not finding dvdread, but if I do instead
Code:
export CPPFLAGS="-I$HOME/vlc_build/vlcdeps/usr/include"
export LDFLAGS="-L$HOME/vlc_build/vlcdeps/usr/lib"
export PKG_CONFIG_PATH="$HOME/vlc_build/vlcdeps/usr/lib/pkgconfig"
Then it found libdvdread.
It appears that without "export" the build process is not actually using the dependencies in $HOME/vlc_build/vlcdeps
but the system libraries. Does it make any sense?
I have another question. So in this case it seems that I would need to keep the build directory with libdvdread-4.9.9. I could have installed libdvdread-4.9.9 with checkinstall to replace 4.2, but then since there is no separate libdvdread-4.9.9-dev package the build process would not be able to find it. Is there a more elegant way to handle this?
Thanks.
Bookmarks