Problem Compile Vlc 0.8.6c

*nix specific usage questions
leno
Blank Cone
Blank Cone
Posts: 21
Joined: 06 Nov 2007 22:40

Problem Compile Vlc 0.8.6c

Postby leno » 20 Nov 2007 15:57

I have download the source code of vlc 0.8.6c , and i have download the svn version of ffmpeg.

I configure and compile ffmpeg, right.

I launch ./configure in the vlc directory : ALL RIGHT

I launch make and i have after 2 minutes:

if gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -DSYS_LINUX -I../../../include `top_builddir="../../.." ../../../vlc-config --cflags plugin cmml` -Wsign-compare -Wall -pipe -MT libcmml_plugin_a-xtag.o -MD -MP -MF ".deps/libcmml_plugin_a-xtag.Tpo" \
-c -o libcmml_plugin_a-xtag.o `test -f 'xtag.c' || echo './'`xtag.c; \
then mv -f ".deps/libcmml_plugin_a-xtag.Tpo" ".deps/libcmml_plugin_a-xtag.Po"; \
else rm -f ".deps/libcmml_plugin_a-xtag.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -DSYS_LINUX -I../../../include `top_builddir="../../.." ../../../vlc-config --cflags plugin cmml` -Wsign-compare -Wall -pipe -MT libcmml_plugin_a-xurl.o -MD -MP -MF ".deps/libcmml_plugin_a-xurl.Tpo" \
-c -o libcmml_plugin_a-xurl.o `test -f 'xurl.c' || echo './'`xurl.c; \
then mv -f ".deps/libcmml_plugin_a-xurl.Tpo" ".deps/libcmml_plugin_a-xurl.Po"; \
else rm -f ".deps/libcmml_plugin_a-xurl.Tpo"; exit 1; \
fi
rm -f libcmml_plugin.a
ar cru libcmml_plugin.a libcmml_plugin_a-browser_open.o libcmml_plugin_a-cmml.o libcmml_plugin_a-history.o libcmml_plugin_a-intf.o libcmml_plugin_a-xarray.o libcmml_plugin_a-xlist.o libcmml_plugin_a-xtag.o libcmml_plugin_a-xurl.o
ranlib libcmml_plugin.a
/bin/sh ../../../libtool --mode=link gcc -Wsign-compare -Wall -pipe -o libcmml_plugin.so libcmml_plugin.a -L/usr/local/lib -shared -lpthread -fpic -fPIC -u vlc_entry__0_8_6
gcc -Wsign-compare -Wall -pipe -o libcmml_plugin.so -shared -fpic -fPIC -u vlc_entry__0_8_6 libcmml_plugin.a -L/usr/local/lib -lpthread
make[6]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/cmml'
make all-recursive
make[6]: Entering directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/cmml'
make[7]: Entering directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/cmml'
make[7]: Nothing to be done for `all-am'.
make[7]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/cmml'
make[6]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/cmml'
make[5]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/cmml'
Making all in dmo
make[5]: Entering directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/dmo'
make all-recursive
make[6]: Entering directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/dmo'
make[7]: Entering directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/dmo'
make[7]: Nothing to be done for `all-am'.
make[7]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/dmo'
make[6]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/dmo'
make[5]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/dmo'
Making all in ffmpeg
make[5]: Entering directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/ffmpeg'
make[6]: Entering directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/ffmpeg'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -DSYS_LINUX -I../../../include `top_builddir="../../.." ../../../vlc-config --cflags plugin ffmpeg` -Wsign-compare -Wall -pipe -MT libffmpeg_plugin_a-ffmpeg.o -MD -MP -MF ".deps/libffmpeg_plugin_a-ffmpeg.Tpo" \
-c -o libffmpeg_plugin_a-ffmpeg.o `test -f 'ffmpeg.c' || echo './'`ffmpeg.c; \
then mv -f ".deps/libffmpeg_plugin_a-ffmpeg.Tpo" ".deps/libffmpeg_plugin_a-ffmpeg.Po"; \
else rm -f ".deps/libffmpeg_plugin_a-ffmpeg.Tpo"; exit 1; \
fi
ffmpeg.c:1132: error: ‘CODEC_ID_PCM_S24LE’ undeclared here (not in a function)
ffmpeg.c:1134: error: ‘CODEC_ID_PCM_S24BE’ undeclared here (not in a function)
ffmpeg.c:1136: error: ‘CODEC_ID_PCM_U24LE’ undeclared here (not in a function)
ffmpeg.c:1138: error: ‘CODEC_ID_PCM_U24BE’ undeclared here (not in a function)
ffmpeg.c:1140: error: ‘CODEC_ID_PCM_S32LE’ undeclared here (not in a function)
ffmpeg.c:1142: error: ‘CODEC_ID_PCM_S32BE’ undeclared here (not in a function)
ffmpeg.c:1144: error: ‘CODEC_ID_PCM_U32LE’ undeclared here (not in a function)
ffmpeg.c:1146: error: ‘CODEC_ID_PCM_U32BE’ undeclared here (not in a function)
make[6]: *** [libffmpeg_plugin_a-ffmpeg.o] Error 1
make[6]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/ffmpeg'
make[5]: *** [all-modules] Error 1
make[5]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec/ffmpeg'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/leno/Desktop/vlc-0.8.6c'
make: *** [all] Error 2


Can you help me at undestand where i wrong? Thanks

jpsaman
Blank Cone
Blank Cone
Posts: 11
Joined: 19 Jun 2004 13:11
Contact:

Re: Problem Compile Vlc 0.8.6c

Postby jpsaman » 21 Nov 2007 22:40

All CODEC_ID_PCM_* are defined in ffmpeg/avcodec.h. If your build complains about it, then you haven't installed or compiled ffmpeg correctly. This could be the case when having two instances of ffmpeg headerfiles installed of which one is not complete.
VLC team member see http://www.videolan.org/team for my contributions.

leno
Blank Cone
Blank Cone
Posts: 21
Joined: 06 Nov 2007 22:40

Re: Problem Compile Vlc 0.8.6c

Postby leno » 21 Nov 2007 23:27

After that i have used ffmpeg-0.4.9-0.41.20071011 ( this is sayed to me on irc channel of videolan)

I have this error:

if gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -DSYS_LINUX -I../../../include `top_builddir="../../.." ../../../vlc-config --cflags plugin ffmpeg` -Wsign-compare -Wall -pipe -MT libffmpeg_plugin_a-demux.o -MD -MP -MF ".deps/libffmpeg_plugin_a-demux.Tpo" \
-c -o libffmpeg_plugin_a-demux.o `test -f 'demux.c' || echo './'`demux.c; \
then mv -f ".deps/libffmpeg_plugin_a-demux.Tpo" ".deps/libffmpeg_plugin_a-demux.Po"; \
else rm -f ".deps/libffmpeg_plugin_a-demux.Tpo"; exit 1; \
fi
demux.c: In function ‘OpenDemux__0_8_6’:
demux.c:191: warning: comparison between signed and unsigned
if gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -DSYS_LINUX -I../../../include `top_builddir="../../.." ../../../vlc-config --cflags plugin ffmpeg` -Wsign-compare -Wall -pipe -MT libffmpeg_plugin_a-mux.o -MD -MP -MF ".deps/libffmpeg_plugin_a-mux.Tpo" \
-c -o libffmpeg_plugin_a-mux.o `test -f 'mux.c' || echo './'`mux.c; \
then mv -f ".deps/libffmpeg_plugin_a-mux.Tpo" ".deps/libffmpeg_plugin_a-mux.Po"; \
else rm -f ".deps/libffmpeg_plugin_a-mux.Tpo"; exit 1; \
fi
mux.c: In function ‘OpenMux__0_8_6’:
mux.c:136: error: incompatible types in assignment
mux.c: In function ‘CloseMux__0_8_6’:
mux.c:160: warning: comparison between signed and unsigned
make[6]: *** [libffmpeg_plugin_a-mux.o] Error 1
make[6]: Leaving directory `/home/leno/Desktop/vlc-0.8.6cOkmod/modules/codec/ffmpeg'
make[5]: *** [all-modules] Error 1
make[5]: Leaving directory `/home/leno/Desktop/vlc-0.8.6cOkmod/modules/codec/ffmpeg'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/leno/Desktop/vlc-0.8.6cOkmod/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/leno/Desktop/vlc-0.8.6cOkmod/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/leno/Desktop/vlc-0.8.6cOkmod/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/leno/Desktop/vlc-0.8.6cOkmod'
make: *** [all] Error 2


Everybody can help me?

vel_tins
Blank Cone
Blank Cone
Posts: 81
Joined: 22 Nov 2007 08:51

Re: Problem Compile Vlc 0.8.6c

Postby vel_tins » 22 Nov 2007 08:53

exactly the same error here....

FFmpeg version SVN-r11075, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-libmp3lame --enable-pp --enable-gpl --enable-libx264 --enable-libxvid
libavutil version: 49.5.0
libavcodec version: 51.48.0
libavformat version: 52.0.0
built on Nov 22 2007 08:00:12, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

vel_tins
Blank Cone
Blank Cone
Posts: 81
Joined: 22 Nov 2007 08:51

Re: Problem Compile Vlc 0.8.6c

Postby vel_tins » 24 Nov 2007 11:18

no ideas? :cry:

leno
Blank Cone
Blank Cone
Posts: 21
Joined: 06 Nov 2007 22:40

Re: Problem Compile Vlc 0.8.6c

Postby leno » 24 Nov 2007 11:30

i have resolved using
apt-get build-dep vlc
apt-get source vlc

cd dirofvlcsource
dpkg-buildpackage -us -uc

vel_tins
Blank Cone
Blank Cone
Posts: 81
Joined: 22 Nov 2007 08:51

Re: Problem Compile Vlc 0.8.6c

Postby vel_tins » 24 Nov 2007 13:56

ok, it works...but WITHOUT mp3 encoding support.. :roll:

leno
Blank Cone
Blank Cone
Posts: 21
Joined: 06 Nov 2007 22:40

Re: Problem Compile Vlc 0.8.6c

Postby leno » 24 Nov 2007 14:04

If i don't wrog do you have to launch ./configure with an option for mp3
see ./configure help | more
for more information.
:D

Bumix
New Cone
New Cone
Posts: 3
Joined: 04 Dec 2007 22:31

Re: Problem Compile Vlc 0.8.6c

Postby Bumix » 04 Dec 2007 22:54

I also get the same error as mentioned above, trying to make VLC-0.8.6d under cygwin with a self-built ffmpeg (today's svn snapshot) including the amr-codecs (from http://www.penguin.cz/~utx/amr).
Compiling VLC with the standard contrib-package works fine! But i can't get around this error in function `OpenMux__0_8_6' after having built ffmpeg (which compiles alright)!

Code: Select all

Making all in ffmpeg make[5]: Entering directory `/home/hainj/vlc-0.8.6d/modules/codec/ffmpeg' make[6]: Entering directory `/home/hainj/vlc-0.8.6d/modules/codec/ffmpeg' if gcc -mno-cygwin -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/win32/include -I/usr/win32/include/ebml -D_OFF_T_ -D_off_t=long -DSYS_MINGW32 -I../../../include `top_builddir="../../.." ../../../vlc-config --cflags plugin ffmpeg` -Wsign-compare -Wall -mms-bitfields -pipe -MT libffmpeg_plugin_a-mux.o -MD -MP -MF ".deps/libffmpeg_plugin_a-mux.Tpo" -c -o libffmpeg_plugin_a-mux.o `test -f 'mux.c' || echo './'`mux.c; \ then mv -f ".deps/libffmpeg_plugin_a-mux.Tpo" ".deps/libffmpeg_plugin_a-mux.Po"; else rm -f ".deps/libffmpeg_plugin_a-mux.Tpo"; exit 1; fi mux.c: In function `OpenMux__0_8_6': mux.c:136: error: incompatible types in assignment mux.c: In function `CloseMux__0_8_6': mux.c:160: warning: comparison between signed and unsigned mux.c: In function `MuxBlock': mux.c:326: warning: int format, different type arg (arg 6) mux.c:326: warning: int format, different type arg (arg 7) mux.c:326: warning: int format, different type arg (arg 8) mux.c:326: warning: int format, different type arg (arg 9) make[6]: *** [libffmpeg_plugin_a-mux.o] Error 1 make[6]: Leaving directory `/home/hainj/vlc-0.8.6d/modules/codec/ffmpeg' make[5]: *** [all-modules] Error 1 make[5]: Leaving directory `/home/hainj/vlc-0.8.6d/modules/codec/ffmpeg' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/hainj/vlc-0.8.6d/modules/codec' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/hainj/vlc-0.8.6d/modules/codec' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/hainj/vlc-0.8.6d/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/hainj/vlc-0.8.6d' make: *** [all] Error 2
configure-ffmpeg.sh

Code: Select all

./configure --enable-memalign-hack \ --extra-cflags=-I/usr/win32/include \ --extra-ldflags=-L/usr/win32/lib \ --prefix=/usr/win32 \ --cc="gcc -mno-cygwin" \ --enable-gpl --disable-ffserver \ --enable-libfaac --enable-libmp3lame --enable-libfaad --enable-libtheora --enable-libamr-nb --enable-libamr-wb --log \
configure-vlc.sh

Code: Select all

./bootstrap && \ PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \ CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \ LDFLAGS=-L/usr/win32/lib \ CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \ ./configure \ --disable-gtk \ --enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \ --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \ --with-ffmpeg-zlib --enable-faad --disable-flac --enable-theora \ --with-wx-config-path=/usr/win32/bin \ --with-freetype-config-path=/usr/win32/bin \ --with-fribidi-config-path=/usr/win32/bin \ --enable-live555 --with-live555-tree=/usr/win32/live.com \ --enable-caca --with-caca-config-path=/usr/win32/bin \ --with-xml2-config-path=/usr/win32/bin \ --with-dvdnav-config-path=/usr/win32/bin \ --disable-cddax --disable-vcdx --enable-goom \ --enable-twolame --enable-dvdread --disable-dts \ --disable-debug

I have been on this for some days, the task of just building vlc with amr-support seemed so simple..

Thanks to thresh of the IRC-channel for pointing me to http://git.altlinux.org/people/thresh/p ... 395edc91cd which solved my problem!


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

Who is online

Users browsing this forum: Google [Bot] and 12 guests