Hi all
Currently I compiled VLC for streaming , ... compile and VLC streaming is OK.
Kernel : Linux 2.6.9-34.EL
Distribution : Redhat EL 4
Compile folder: /usr/local/src
VLC and x264 : current version which I downloaded from SVN server.
-----------
But I have 2 problems during the compile. Please advise/help me my problems.
1. I could not compile with x264 encoder. Without to include x264 tree, I can compile.
I did configure with "enable-x264" and "--with-x264-tree" option.
I compiled current version of x264 in the "extras" of vlc main folder.
But I had following error messega:
==========
./configure --enable-snapshot --enable-debug --enable-dbus-control --enable-shared --enable-lirc --with-x509-ca-bundle=/etc/ssl/certs/ca-certificates.crt --with-live555-tree=/usr/lib/live --with-ffmpeg-tree=../extras/ffmpeg --enable-taglib --enable-v4l --enable-cddax --enable-dvb --enable-vcdx --enable-realrtsp --enable-svg --enable-dvdread --enable-dv --enable-theora --enable-faad --enable-twolame --enable-real --enable-flac --enable-tremor --with-ffmpeg-mp3lame --with-faac --enable-ncurses --enable-aa --enable-caca --enable-esd --enable-portaudio --enable-jack --enable-xosd --enable-galaktos --enable-goom --enable-ggi --disable-cddax --disable-vcdx --disable-dirac --disable-xvmc --enable-pvr --enable-loader --enable-python-bindings --enable-audioscrobbler --enable-libcddb --enable-libcdio --enable-opencv --enable-nls --disable-notify --with-libmpeg2-tree=../extras/mpeg2dec-0.4.1 --disable-speex --disable-lua --disable-fluidsynth --disable-gnutls --disable-avahi-client --enable-old-dbus --with-included-gettext --enable-skins2 --enable-wxwidgets --enable-x264 --with-x264-tree=../extras/x264/
......
......
checking png.h presence... yes
checking for png.h... yes
checking for png_set_rows in -lpng... yes
checking for x264.h in /usr/local/src/vlc-trunk/extras/x264... yes
checking for x264_encoder_open in -lx264... no
configure: error: the specified tree hasn't been compiled
I found follwoing error message from config.log :
configure:58065: checking for x264.h in /usr/local/src/vlc-trunk/extras/x264
configure:58069: result: yes
configure:58084: checking for x264_encoder_open in -lx264
configure:58114: gcc -std=gnu99 -o conftest -Wall -Wextra -Wno-unused-parameter -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -DSYS_LINUX -lpthread conftest.c -lx264 >&5
conftest.c:40:1: warning: "_GNU_SOURCE" redefined
conftest.c:10:1: warning: this is the location of the previous definition
/usr/local/lib/libx264.a(encoder.o)(.text+0xd95): In function `x264_encoder_open':
: undefined reference to `pow'
/usr/local/lib/libx264.a(encoder.o)(.text+0xeda): In function `x264_encoder_open':
: undefined reference to `pow'
/usr/local/lib/libx264.a(encoder.o)(.text+0xfb8): In function `x264_encoder_open':
: undefined reference to `pow'
/usr/local/lib/libx264.a(encoder.o)(.text+0x1026): In function `x264_encoder_open':
: undefined reference to `pow'
/usr/local/lib/libx264.a(ratecontrol.o)(.text+0x5e): In function `qscale2bits':
: undefined reference to `pow'
/usr/local/lib/libx264.a(ratecontrol.o)(.text+0x14d): more undefined references to `pow' follow
collect2: ld returned 1 exit status
==========
2. I got warning message on "avahi-client". I did "--disable-avahi-client", but I got still warning message.
What is the avahi-client ? how can I disable it in my confugure.
=========
checking for avahi-client >= 0.3... Package avahi-client was not found in the pkg-config search path.
Perhaps you should add the directory containing `avahi-client.pc'
to the PKG_CONFIG_PATH environment variable
No package 'avahi-client' found
configure: WARNING: avahi-client library not found
==========