AVCODEC... Package libavcodec was not found in the pkg-conf

*nix specific usage questions
linuxgos
New Cone
New Cone
Posts: 4
Joined: 07 Oct 2008 15:23

AVCODEC... Package libavcodec was not found in the pkg-conf

Postby linuxgos » 12 Oct 2008 17:35

Hello,

I get the following error on RHEL 4 system.


[root@server1 vlc-0.9.4]# ./configure --prefix=/usr/local/vlan --disable-dbus-control --disable-hal --disable-dbus --enable-shared
[root@server1 vlc-0.9.4]#
[root@server1 vlc-0.9.4]#

( truncated )
checking if $CC accepts -O3... yes
checking if $CC accepts -O0... yes
checking if $CC accepts -ffast-math... yes
checking if $CC accepts -funroll-loops... yes
checking if $CC accepts -fomit-frame-pointer... yes
checking if $CC accepts -bundle -undefined error... no
checking __attribute__ ((aligned ())) support... 64
checking for __attribute__((packed))... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for backtrace... yes
checking if gcc -std=gnu99 groks MMX intrinsics... yes
checking if gcc -std=gnu99 groks MMX inline assembly... yes
checking if gcc -std=gnu99 groks MMX EXT inline assembly... yes
checking if gcc -std=gnu99 groks SSE2 intrinsics... yes
checking if gcc -std=gnu99 groks SSE inline assembly... yes
checking if gcc -std=gnu99 groks SSE2 inline assembly... yes
checking if gcc -std=gnu99 groks 3D Now! inline assembly... yes
checking whether gcc -std=gnu99 accepts -mtune=pentium2... yes
checking for LUA... Package lua5.1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `lua5.1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lua5.1' found
no
configure: WARNING: lua5.1 not found, trying lua >= 5.1 instead
checking for LUA... Package lua was not found in the pkg-config search path.
Perhaps you should add the directory containing `lua.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lua' found
no
checking lua.h usability... no
checking lua.h presence... no
checking for lua.h... no
checking lauxlib.h usability... no
checking lauxlib.h presence... no
checking for lauxlib.h... no
checking lualib.h usability... no
checking lualib.h presence... no
checking for lualib.h... no
checking for luaL_newstate in -llua5.1 ... no
checking for luaL_newstate in -llua51 ... no
checking for luaL_newstate in -llua ... no
configure: WARNING: lua >= 5.1 not found!
checking proxy.h usability... no
checking proxy.h presence... no
checking for proxy.h... no
checking for NOTIFY... Package libnotify was not found in the pkg-config search path.
Perhaps you should add the directory containing `libnotify.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libnotify' found
no
checking for TAGLIB... Package taglib was not found in the pkg-config search path.
Perhaps you should add the directory containing `taglib.pc'
to the PKG_CONFIG_PATH environment variable
No package 'taglib' found
no
configure: WARNING: TagLib library not found
checking liveMedia_version.hh usability... no
checking liveMedia_version.hh presence... no
checking for liveMedia_version.hh... no
checking liveMedia.hh usability... no
checking liveMedia.hh presence... no
checking for liveMedia.hh... no
configure: WARNING: The development files for liveMedia (live555) can't be found
checking dvdread/dvd_reader.h usability... no
checking dvdread/dvd_reader.h presence... no
checking for dvdread/dvd_reader.h... no
checking libdvdread/dvd_reader.h usability... no
checking libdvdread/dvd_reader.h presence... no
checking for libdvdread/dvd_reader.h... no
checking for dvdnav-config... no
checking libsmbclient.h usability... yes
checking libsmbclient.h presence... yes
checking for libsmbclient.h... yes
checking for struct _SMBCCTX.close_fn... no
checking for dvbpsi/dr.h... yes
checking for dvbpsi_GenSDTSections in -ldvbpsi... yes
checking alsa/asoundlib.h usability... no
checking alsa/asoundlib.h presence... no
checking for alsa/asoundlib.h... no
checking linux/videodev2.h usability... yes
checking linux/videodev2.h presence... yes
checking for linux/videodev2.h... yes
checking for LIBCDIO... Package libcdio was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcdio.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcdio' found
no
configure: WARNING: CD Reading and information library not found
checking for VCDINFO... Package libvcdinfo was not found in the pkg-config search path.
Perhaps you should add the directory containing `libvcdinfo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libvcdinfo' found
no
configure: WARNING: VCD information library not found
checking for cdrom_msf0 in linux/cdrom.h... yes
checking for scsireq in sys/scsiio.h... no
checking for ioc_toc_header in sys/cdio.h... no
checking for LIBCDDB... Package libcddb was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcddb.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcddb' found
no
configure: WARNING: new enough libcddb not found. CDDB access disabled
checking linux/dvb/version.h usability... yes
checking linux/dvb/version.h presence... yes
checking for linux/dvb/version.h... yes
checking linux/dvb/frontend.h usability... yes
checking linux/dvb/frontend.h presence... yes
checking for linux/dvb/frontend.h... yes
checking X11/Xlib.h usability... yes
checking X11/Xlib.h presence... yes
checking for X11/Xlib.h... yes
checking for inet_pton... yes
checking for inet_ntop... yes
checking ogg/ogg.h usability... yes
checking ogg/ogg.h presence... yes
checking for ogg/ogg.h... yes
checking for oggpack_read in -logg... yes
checking ebml/EbmlVersion.h usability... no
checking ebml/EbmlVersion.h presence... no
checking for ebml/EbmlVersion.h... no
checking libmodplug/modplug.h usability... no
checking libmodplug/modplug.h presence... no
checking for libmodplug/modplug.h... no
checking mpcdec/mpcdec.h usability... no
checking mpcdec/mpcdec.h presence... no
checking for mpcdec/mpcdec.h... no
configure: WARNING: only static linking is available, you must provide a gme-tree
checking mad.h usability... yes
checking mad.h presence... yes
checking for mad.h... yes
checking for mad_bit_init in -lmad... yes
checking id3tag.h usability... yes
checking id3tag.h presence... yes
checking for id3tag.h... yes
checking for zlib.h... (cached) yes
checking for AVCODEC... Package libavcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavcodec.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavcodec' found
no
configure: error: Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.
See `config.log' for more details.



I have installed the following:

[root@server1 extras]# ls
a52dec-0.7.4 essential-20061022.tar.bz2 libdvbpsi5-0.1.6 libdvdplay-1.0.1.tar.bz2 libmad-0.15.0b.tar.gz libogg-1.1.3 madplay-0.15.2b.tar.gz
a52dec-0.7.4.tar.gz faad2 libdvbpsi5-0.1.6.tar.bz2 libdvdread-0.9.4.tar.gz libmpeg2-0.5.1 libogg-1.1.3.tar.gz mpeg2dec-0.4.1
dbus-1.2.4 faad2-2.6.1.tar.gz libdvdcss-1.2.9 libid3tag-0.15.0b libmpeg2-0.5.1.tar.gz libvorbis-1.2.0 mpeg2dec-0.4.1.tar.gz
dbus-1.2.4.tar.gz hal-0.5.11rc2 libdvdcss-1.2.9.tar.bz2 libid3tag-0.15.0b.tar.gz libnotify-0.4.4 libvorbis-1.2.0.tar.bz2 vlc-0.9.4
essential-20061022 hal-0.5.11rc2.tar.gz libdvdplay-1.0.1 libmad-0.15.0b libnotify-0.4.4.tar.bz2 madplay-0.15.2b vlc-0.9.4.tar.bz2
[root@server1 extras]#



root@server1 extras]# ls /usr/local/lib/liba
liba52.a libavcodec.pc libavdevice.a libavdevice.so.52 libavformat.pc libavutil.a libavutil.so.49
liba52.la libavcodec.so libavdevice.pc libavdevice.so.52.0.0 libavformat.so libavutil.pc
libavcodec.a libavcodec.so.51 libavdevice.so libavformat.a libavformat.so.52 libavutil.so
[root@server1 extras]# ls /usr/local/lib/liba


[root@server1 extras]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
[root@server1 extras]#

( also used include /usr/local/lib above )






Please advise how to get libavcodec or libavutil installed for vlan to install successfully.




Thanks

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: AVCODEC... Package libavcodec was not found in the pkg-conf

Postby Jean-Baptiste Kempf » 12 Oct 2008 17:39

Install FFmepg.
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.

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: AVCODEC... Package libavcodec was not found in the pkg-conf

Postby xtophe » 13 Oct 2008 16:42

The usual practice is to install the .pc in ${prefix}/lib/pkgconfig and not in ${prefix}/lib/
So either your distro is not coherent or you install by hand and you need to tell pkg-config where the .pc are.

In any case setting PKG_CONFIG_PATH is should do it.

Also you should avoid compiling as root.
Xtophe

linuxgos
New Cone
New Cone
Posts: 4
Joined: 07 Oct 2008 15:23

Re: AVCODEC... Package libavcodec was not found in the pkg-conf

Postby linuxgos » 15 Oct 2008 18:23

Hello,

I used CentOS and installed everything using yum. However I am unable to stream it live from my pc to the server and the view it from a third machice.

-bash-3.00# cat 123.sh
#!/bin/bash
vlc -vvv udp: --sout '#standard{access=http,mux=ogg,dst=:8080}'
-bash-3.00#

I think there might be some issue in the command on the pc with my webcam
#########################################################################
dshow:// :dshow-vdev="USB Video Device" :dshow-adev="Microphone (Conexant High Defin" :dshow-caching=5000 :dshow-vdev="" :dshow-adev="" :dshow-size="" :dshow-chroma="" :dshow-fps=0 :no-dshow-config :no-dshow-tuner :dshow-tuner-channel=0 :dshow-tuner-country=0 :dshow-tuner-input=0 :dshow-video-input=-1 :dshow-audio-input=-1 :dshow-video-output=-1 :dshow-audio-output=-1 :dshow-amtuner-mode=1 :dshow-audio-channels=0 :dshow-audio-samplerate=0 :dshow-audio-bitspersample=0

I mostly tried from http://www.wikihow.com/Stream-Your-Webcam ( or used the stream option in vlc to configure and stream it using GUI )



Here are the logs on the server.

-bash-3.00# sh 123.sh
VLC media player 0.8.6i Janus
starting VLC root wrapper... using UID 0 (root)
***************************************
* Running VLC as root is discouraged. *
***************************************

It is potentially dangerous, and might not even work properly.
[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat
[00000001] main private debug: recursively browsing `/usr/lib/vlc'
[00000001] main private debug: module bank initialized, found 231 modules
libhal.c 644 : Error connecting to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[00000001] main private warning: Unable to get HAL device properties
[00000001] main private debug: opening config file /root/.vlc/vlcrc
[00000001] main private warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main private debug: looking for memcpy module: 3 candidates
[00000001] main private debug: using memcpy module "memcpymmxext"
[00000294] main playlist debug: waiting for thread completion
[00000294] main playlist debug: thread 3079437216 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000295] main private debug: waiting for thread completion
[00000295] main private debug: thread 3068947360 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000296] main interface debug: looking for interface module: 1 candidate
[00000296] main interface debug: using interface module "hotkeys"
[00000296] main interface debug: thread 3058457504 (interface) created at priority 0 (interface/interface.c:231)
[00000298] main interface debug: looking for interface module: 1 candidate
[00000298] main interface debug: using interface module "screensaver"
[00000298] main interface debug: thread 3047967648 (interface) created at priority 0 (interface/interface.c:231)
[00000294] main playlist debug: adding playlist item `udp:' ( udp: )
[00000300] main interface debug: looking for interface module: 5 candidates
[00000300] skins2 interface error: Cannot open display
[00000300] skins2 interface error: cannot initialize OSFactory
Remote control interface initialized. Type `help' for help.
[00000300] main interface debug: using interface module "rc"
[00000300] main interface debug: thread 3035691936 (manager) created at priority 0 (interface/interface.c:216)
[00000294] main playlist debug: creating new input thread
[00000304] main input debug: waiting for thread completion
[00000304] main input debug: creating statistics handler
[00000306] main stream output debug: stream=`standard'
[00000307] main private debug: looking for sout stream module: 1 candidate
[00000307] main private debug: set sout option: sout-standard-access to http
[00000307] main private debug: set sout option: sout-standard-mux to ogg
[00000307] main private debug: set sout option: sout-standard-dst to :8080
[00000307] stream_out_standard private debug: creating `http/ogg://:8080'
[00000307] stream_out_standard private debug: using `http/ogg://:8080'
[00000304] main input debug: thread 3025202080 (input) created at priority 0 (input/input.c:265)
[00000309] main private debug: looking for sout access module: 1 candidate
[00000309] main private: creating httpd
[00000309] main private debug: net: listening to port 8080
[00000312] main http server debug: thread 3013606304 (httpd host thread) created at priority 0 (network/httpd.c:1078)
[00000309] main private debug: using sout access module "access_output_http"
[00000307] stream_out_standard private debug: access opened
[00000313] main private debug: looking for sout mux module: 1 candidate
[00000313] mux_ogg private: Open
[00000313] main private debug: using sout mux module "mux_ogg"
[00000306] main stream output debug: muxer support adding stream at any time
[00000306] main stream output debug: muxer prefers to wait for all ES before starting to mux
[00000307] stream_out_standard private debug: mux opened
[00000307] main private debug: using sout stream module "stream_out_standard"
[00000304] main input debug: `udp:' gives access `udp' demux `' path `'
[00000304] main input debug: creating demux: access='udp' demux='' path=''
[00000315] main demuxer debug: looking for access_demux module: 0 candidates
[00000315] main demuxer warning: no access_demux module matched "udp"
[00000304] main input debug: creating access 'udp' path=''
[00000316] main access debug: looking for access2 module: 7 candidates
[00000316] access_udp access debug: opening server=:0 local=:1234
[00000316] main access debug: net: connecting to '[]:0@[]:1234'
[00000316] main access debug: looking for network module: 1 candidate
[00000316] main access debug: using network module "ipv6"
[00000316] main access debug: removing module "ipv6"
[00000316] main access debug: using access2 module "access_udp"
[00000319] main private debug: pre buffering
status change: ( new input: udp: )
status change: ( audio volume: 256 )
status change: ( play state: 1 )

[00000316] access_udp access debug: no supported RTP header detected
[00000304] main input debug: creating demux: access='udp' demux='' path=''
[00000320] main demuxer debug: looking for demux2 module: 45 candidates
[00000320] ffmpeg demuxer debug: detected format: tiertexseq
[00000320] ffmpeg demuxer error: av_open_input_stream failed
[00000320] vobsub demuxer debug: this doesn't seem to be a vobsub file
[00000320] ps demuxer warning: this does not look like an MPEG PS stream, continuing anyway
[00000320] main demuxer debug: using demux2 module "ps"
[00000304] main input debug: looking for a subtitle file in /root/
[00000304] main input debug: starting in sync mode
[00000316] access_udp access warning: unimplemented query in control
[00000304] main input debug: `udp:' successfully opened
[00000320] ps demuxer warning: garbage at input, trying to resync...
[00000312] main http server debug: Connection from z.z.z.z --> Its the webcam source
[00000312] main http server debug: Connection from x.x.x.x
[00000312] main http server debug: Connection from x.x.x.x
[00000312] main http server debug: Connection from x.x.x.x
[00000312] main http server debug: Connection from x.x.x.x
[00000312] main http server debug: Connection from x.x.x.x
[00000312] main http server debug: Connection from x.x.x.x
[00000312] main http server debug: Connection from x.x.x.x
[00000312] main http server debug: Connection from x.x.x.x
[00000312] main http server debug: Connection from x.x.x.x
[00000312] main http server debug: Connection from x.x.x.x
[00000312] main http server debug: Connection from y.y.y.y.
[00000312] main http server debug: Connection from y.y.y.y.
[00000312] main http server debug: Connection from y.y.y.y.
[00000312] main http server debug: Connection from y.y.y.y.
[00000312] main http server debug: Connection from y.y.y.y.
[00000312] main http server debug: Connection from y.y.y.y.
[00000312] main http server debug: Connection from y.y.y.y.
[00000312] main http server debug: Connection from y.y.y.y.
[00000312] main http server debug: Connection from y.y.y.y.
[00000312] main http server debug: Connection from y.y.y.y.
[00000312] main http server debug: Connection from y.y.y.y.



Please advise.


Thanks

Speed666
New Cone
New Cone
Posts: 9
Joined: 01 Apr 2007 19:57

Re: AVCODEC... Package libavcodec was not found in the pkg-conf

Postby Speed666 » 24 Oct 2008 10:20

Are you using DirectShow input in Linux system? That's wrong :)


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

Who is online

Users browsing this forum: No registered users and 24 guests