Page 1 of 1

VLC building process and path to the libavcodec

Posted: 06 Dec 2009 21:07
by afro
Hello,

I try to build the vlc from scratch, but unfortunately I can't find any solution to this configuration error:

...
checking for AVCODEC... no
configure: error: Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.
...

Of course I have built before the ffmpeg library with the following options:
./configure --arch=i686 --prefix=/home/piotr/install/vlc --enable-static

After build process the libavcodec.a, libavformat.a and libavdevice.a libraries are into my desired directory (/home/piotr/install/vlc/lib).

I configure the vlc with options (PREFIX=/home/piotr/install/vlc):
./configure \
--target=i686-linux \
--host=i686-linux \
--prefix=$PREFIX \
--enable-static \
--enable-ogg \
--disable-nls \
--disable-dbus \
--disable-v4l2 \
--disable-libv412 \
--disable-libcddb \
--disable-dvb \
--disable-screen \
--disable-gme \
--enable-avcodec \
--enable-avformat \
--disable-swscale \
--disable-postproc \
--disable-libsysfs \
--disable-libtar \
--disable-png \
--disable-x11 \
--disable-xvideo \
--disable-glx \
--disable-opengl \
--disable-freetype \
--disable-fontconfig \
--disable-skins2 \
--disable-qt4 \
--disable-ncurses \
--disable-visual \
--disable-libgcrypt \
--disable-remoteosd \
--with-mad=$PREFIX \
--with-a52=$PREFIX

How can I provide the proper path of libavcodec library to the vlc building process?

I will be very thankful for any hints and engagement.

--
Piotr
http://www.embedded-engineering.pl/

Re: VLC building process and path to the libavcodec

Posted: 07 Dec 2009 07:16
by Jean-Baptiste Kempf
PKG_CONFIG_PATH=...

Re: VLC building process and path to the libavcodec

Posted: 10 Dec 2009 12:15
by afro
As you've suggested I set the PKG_CONFIG_PATH:

Code: Select all

piotr@ubuntu:~/mini2440/vlc$ export PKG_CONFIG_PATH=/home/piotr/mini2440/vlc/install-vlc-arm/lib/pkgconfig/
Now the pkg-config is able to find my libavcodec library:

Code: Select all

piotr@ubuntu:~/mini2440/vlc$ pkg-config --list-all | grep libavcodec libavcodec libavcodec - FFmpeg codec library
Everything seems ok, but the configure processe of VLC is still broken with following error:

Code: Select all

... checking for AVCODEC... no configure: error: Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.
I'll be grateful for any other suggestions.

--
Piotr
http://embedded-engineering.pl/

Re: VLC building process and path to the libavcodec

Posted: 10 Dec 2009 13:00
by afro
Solved! :)

The problem was that I've built only libavcodec library instead of all ffmpeg libraries.
I also added the following options to vlc configure script:

Code: Select all

PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ \ PKG_CONFIG=pkg-config \
Thanks for your hint.

--
Piotr
http://embedded-engineering.pl/