Page 1 of 1

Compiling VLC on Ubuntu

Posted: 05 Sep 2011 23:16
by nusrat1990
Hello.
I try to compile latest VLC from git on Ubuntu 10.04 LTS by using tutorial.
I got an error while execute command ./configure
configure: error: Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.
I add --disable-avcodec
configure: error: Could not find libswscale. Use --disable-swscale to ignore this error. Proper software scaling and some video chroma conversion will be missing.
then --disable-swscale
configure: error: Could not find libpostproc. Use --disable-postproc to ignore this error.
then --disable-postproc
checking for XCB... configure: error: Package requirements (xcb >= 1.6) were not met:

Requested 'xcb >= 1.6' but version of XCB is 1.5

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XCB_CFLAGS
and XCB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


so I have to execute ./configure --disable-avcodec --disable-swscale --disable-xcb --disable-postproc
How can I solve problems without disabling these features?
I had installed required libraries:
libavcodec52
libavcodec-dev
libswscale0
libswscale-dev
libpostproc51
libpostproc-dev
What value XCB_CFLAGS , XCB_LIBS should be, and where should they store (/etc/environment ??)
Content of /etc/environment:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
PKG_CONFIG_PATH="/usr/lib/pkgconfig"
Thank you!

Re: Compiling VLC on Ubuntu

Posted: 06 Sep 2011 04:54
by moijdikssekool
look at xcb.pc, the place where it's stored, the .so, i don't remember exactly what, but there is something wrong, compare to the other .pc... and try to install some xcb packages

Re: Compiling VLC on Ubuntu

Posted: 06 Sep 2011 09:25
by RĂ©mi Denis-Courmont
Without XCB, VLC won't be able to output video. Without avcodec, it won't be able to decode much if anything.

As the error says, you need a more recent XCB version. The easiest way is to update to a more recent release of Ubuntu.

Re: Compiling VLC on Ubuntu

Posted: 06 Sep 2011 17:06
by nusrat1990
Without XCB, VLC won't be able to output video. Without avcodec, it won't be able to decode much if anything.

As the error says, you need a more recent XCB version. The easiest way is to update to a more recent release of Ubuntu.
I installed Ubuntu 11.04.
Configuring and making VLC were done smoothly.
Thanks!

Re: Compiling VLC on Ubuntu

Posted: 13 Sep 2011 10:19
by cranuterj
On Ubuntu 11.04 VLC compiles without any problems

Re: Compiling VLC on Ubuntu

Posted: 13 Sep 2011 22:25
by sphelan
which tutorial did you use?

Re: Compiling VLC on Ubuntu

Posted: 14 Sep 2011 15:19
by bat999
which tutorial...
Hi
This tutorial's OK:- http://ubuntuforums.org/showthread.php?t=1398119
Choose either "development version" or release "version 1.1.11".
8)

Re: Compiling VLC on Ubuntu

Posted: 02 Jan 2012 16:49
by jfront
I was able to get past this (on 10.04) by manually building the latest version of xcb and installing to /usr/local:

Code: Select all

$ cd /usr/local/src $ curl http://xcb.freedesktop.org/dist/libxcb-1.7.tar.bz2 | tar xjf - $ cd libxcb-1.7 $ ./configure $ make $ sudo make install
All other dependencies (including xcb-proto and python-xcbgen) were installed from the ubuntu package manager.

Re: Compiling VLC on Ubuntu

Posted: 20 Feb 2012 13:25
by graemeg
I too am using Ubuntu 10.04 LTS. I followed jfront's instructions for installing the latest XCB from source code. I then still had the issue about libavcodec being out of date. I then added the PPA repository from the URL shown below, and then updated the libavcodec and related *-dev packages. I also had to install the xcb-proto package. After all that (which really wasn't too much effort) VLC 2.0.0 compiled and ran without problems. I tested various video formats, and they all played without problems.

https://launchpad.net/~jon-severinsson/+archive/ffmpeg

Re: Compiling VLC on Ubuntu

Posted: 31 Oct 2017 01:15
by fusionneur
fixed mine by installing:

yum install libxcb-devel.aarch64