Compiling VLC on Ubuntu

*nix specific usage questions
nusrat1990
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jan 2011 13:20

Compiling VLC on Ubuntu

Postby nusrat1990 » 05 Sep 2011 23:16

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!

moijdikssekool
Blank Cone
Blank Cone
Posts: 29
Joined: 06 Jun 2011 03:35

Re: Compiling VLC on Ubuntu

Postby moijdikssekool » 06 Sep 2011 04:54

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15263
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Compiling VLC on Ubuntu

Postby Rémi Denis-Courmont » 06 Sep 2011 09:25

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

nusrat1990
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jan 2011 13:20

Re: Compiling VLC on Ubuntu

Postby nusrat1990 » 06 Sep 2011 17:06

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!

cranuterj
New Cone
New Cone
Posts: 2
Joined: 12 Sep 2011 13:44

Re: Compiling VLC on Ubuntu

Postby cranuterj » 13 Sep 2011 10:19

On Ubuntu 11.04 VLC compiles without any problems
Last edited by cranuterj on 20 Sep 2011 22:32, edited 1 time in total.

sphelan
Blank Cone
Blank Cone
Posts: 14
Joined: 09 Jul 2010 16:44

Re: Compiling VLC on Ubuntu

Postby sphelan » 13 Sep 2011 22:25

which tutorial did you use?

bat999
Cone that earned his stripes
Cone that earned his stripes
Posts: 200
Joined: 19 Dec 2007 02:35

Re: Compiling VLC on Ubuntu

Postby bat999 » 14 Sep 2011 15:19

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)

jfront
New Cone
New Cone
Posts: 1
Joined: 02 Jan 2012 16:42

Re: Compiling VLC on Ubuntu

Postby jfront » 02 Jan 2012 16:49

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.

graemeg
New Cone
New Cone
Posts: 1
Joined: 20 Feb 2012 13:18

Re: Compiling VLC on Ubuntu

Postby graemeg » 20 Feb 2012 13:25

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

fusionneur
New Cone
New Cone
Posts: 1
Joined: 31 Oct 2017 01:13

Re: Compiling VLC on Ubuntu

Postby fusionneur » 31 Oct 2017 01:15

fixed mine by installing:

yum install libxcb-devel.aarch64


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 4 guests