VLC building process and path to the libavcodec

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
afro
New Cone
New Cone
Posts: 4
Joined: 28 Nov 2009 22:14

VLC building process and path to the libavcodec

Postby afro » 06 Dec 2009 21:07

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/

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC building process and path to the libavcodec

Postby Jean-Baptiste Kempf » 07 Dec 2009 07:16

PKG_CONFIG_PATH=...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

afro
New Cone
New Cone
Posts: 4
Joined: 28 Nov 2009 22:14

Re: VLC building process and path to the libavcodec

Postby afro » 10 Dec 2009 12:15

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/

afro
New Cone
New Cone
Posts: 4
Joined: 28 Nov 2009 22:14

Re: VLC building process and path to the libavcodec

Postby afro » 10 Dec 2009 13:00

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/


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 33 guests