Page 1 of 1

Compile error 0.9.1 PIX_BUF ?

Posted: 02 Sep 2008 03:03
by Shadow_7
The basics...

kernel : 2.6.25.9
distro: debian / stable
vlc: 0.9.1

Compiling from source yields the error below. I'm probably missing a dep or didn't disable something. Although configure worked fine. I downloaded vlc-0.9.1.tar.bz2 this morning. Debian is up to date as of this morning as well. Several from source efforts faad2, faac, x264, lame, and I don't have many of the SVN ones on that table of deps page. Any hints. I'm trying to play .MTS files (H.264) as I'm looking at getting an HD camcorder. And trying to compare the results of AVCHD 24Mbps vs. HDV on an older model.

http://wiki.videolan.org/Contrib_Status


./configure --prefix=/usr --disable-dirac --disable-live555

make

...
...
make[6]: Entering directory `/usr/src/video/vlc-0.9.1/modules/codec/avcodec'
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX `top_builddir="../../.." ../../../vlc-config --cflags plugin libavcodec_plugin_la-video.lo` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libavcodec_plugin_la-video.lo -MD -MP -MF .deps/libavcodec_plugin_la-video.Tpo -c -o libavcodec_plugin_la-video.lo `test -f 'video.c' || echo './'`video.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=avcodec -DMODULE_NAME_IS_avcodec -DMODULE_STRING=\"avcodec\" -O2 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer -I/usr/include/ffmpeg -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libavcodec_plugin_la-video.lo -MD -MP -MF .deps/libavcodec_plugin_la-video.Tpo -c video.c -fPIC -DPIC -o .libs/libavcodec_plugin_la-video.o
In file included from video.c:48:
chroma.h:72: error: ‘PIX_FMT_NV12’ undeclared here (not in a function)
chroma.h:73: error: ‘PIX_FMT_NV21’ undeclared here (not in a function)
chroma.h:82: error: ‘PIX_FMT_RGB4’ undeclared here (not in a function)
chroma.h:82: error: ‘PIX_FMT_BGR4’ undeclared here (not in a function)
chroma.h:83: error: ‘PIX_FMT_RGB8’ undeclared here (not in a function)
chroma.h:83: error: ‘PIX_FMT_BGR8’ undeclared here (not in a function)
chroma.h:84: error: ‘PIX_FMT_BGR555’ undeclared here (not in a function)
chroma.h:85: error: ‘PIX_FMT_BGR565’ undeclared here (not in a function)
chroma.h:88: error: ‘PIX_FMT_BGR32’ undeclared here (not in a function)
chroma.h:89: error: ‘PIX_FMT_RGB32_1’ undeclared here (not in a function)
chroma.h:89: error: ‘PIX_FMT_BGR32_1’ undeclared here (not in a function)
chroma.h: In function ‘GetFfmpegChroma’:
chroma.h:116: warning: comparison between signed and unsigned
chroma.h:117: warning: comparison between signed and unsigned
chroma.h:118: warning: comparison between signed and unsigned
make[6]: *** [libavcodec_plugin_la-video.lo] Error 1
make[6]: Leaving directory `/usr/src/video/vlc-0.9.1/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/usr/src/video/vlc-0.9.1/modules/codec/avcodec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/src/video/vlc-0.9.1/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/video/vlc-0.9.1/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/video/vlc-0.9.1/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/video/vlc-0.9.1'
make: *** [all] Error 2

Thanks in advance.

Re: Compile error 0.9.1 PIX_BUF ?

Posted: 02 Sep 2008 04:34
by Jean-Baptiste Kempf
Update your FFmpeg

Re: Compile error 0.9.1 PIX_BUF ?

Posted: 02 Sep 2008 17:59
by Shadow_7
Thanks, that seems to have worked.

Any tips for compile options for a dual core cpu? I'm still lagging severely in performance on MTS files. But I can play them finally. In a sort of stop motion, disable the audio type fashion.

./configure --enable-????

for vlc and ffmpeg? I seem to only be using one core on the cpu gauge in IceWM.

more than 5 seconds of late video -> dropping frame (computer too slow?)

AMD Athlon (tm) 64 X2 Dual Core Processor 3600+
1GB Ram
nVidia GeForce 6100 nForce 430 (rev a2)
1.9GHz x2 CPUs

Re: Compile error 0.9.1 PIX_BUF ?

Posted: 03 Sep 2008 14:41
by xtophe
libavcodec (from FFMpeg project) is used to decode H.264 and is monothread at the moment.

Re: Compile error 0.9.1 PIX_BUF ?

Posted: 19 Mar 2010 21:11
by newtovlc-031910
Linux:

kernel : 2.4.26
distro: debian / stable
vlc: 1.0.5

Compiling from source yields the error below.

./configure –prefix=/usr –disable-mad –disable-swscale –disable-postproc –disable-glx –disable-qt4 –disable-skins2

make

...
...
Making all in avcodec
make[5]: Entering directory `/usr/src/vlc-1.0.5/modules/codec/avcodec'
make all-am
make[6]: Entering directory `/usr/src/vlc-1.0.5/modules/codec/avcodec'
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX `top_srcdir="../../.." top_builddir="../../.." ../../../vlc-config --cflags plugin libavcodec_plugin_la-chroma.lo` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -MT libavcodec_plugin_la-chroma.lo -MD -MP -MF .deps/libavcodec_plugin_la-chroma.Tpo -c -o libavcodec_plugin_la-chroma.lo `test -f 'chroma.c' || echo './'`chroma.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=avcodec -DMODULE_NAME_IS_avcodec -DMODULE_STRING=\"avcodec\" -O2 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer -I/usr/include/ffmpeg -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -MT libavcodec_plugin_la-chroma.lo -MD -MP -MF .deps/libavcodec_plugin_la-chroma.Tpo -c chroma.c -fPIC -DPIC -o .libs/libavcodec_plugin_la-chroma.o
In file included from ../../../include/vlc_common.h:516,
from chroma.c:29:
../../../include/vlc_mtime.h:80: warning: 'error' attribute directive ignored
../../../include/vlc_mtime.h:90: warning: 'warning' attribute directive ignored
../../../include/vlc_mtime.h:108: warning: 'error' attribute directive ignored
chroma.c:88: error: 'PIX_FMT_NV12' undeclared here (not in a function)
chroma.c:89: error: 'PIX_FMT_NV21' undeclared here (not in a function)
chroma.c:98: error: 'PIX_FMT_RGB4' undeclared here (not in a function)
chroma.c:98: error: 'PIX_FMT_BGR4' undeclared here (not in a function)
chroma.c:99: error: 'PIX_FMT_RGB8' undeclared here (not in a function)
chroma.c:99: error: 'PIX_FMT_BGR8' undeclared here (not in a function)
chroma.c:101: error: 'PIX_FMT_BGR555' undeclared here (not in a function)
chroma.c:102: error: 'PIX_FMT_BGR565' undeclared here (not in a function)
chroma.c:105: error: 'PIX_FMT_BGR32' undeclared here (not in a function)
chroma.c:106: error: 'PIX_FMT_RGB32_1' undeclared here (not in a function)
chroma.c:106: error: 'PIX_FMT_BGR32_1' undeclared here (not in a function)
chroma.c: In function 'GetFfmpegChroma':
chroma.c:137: warning: comparison between signed and unsigned
chroma.c:138: warning: comparison between signed and unsigned
chroma.c:139: warning: comparison between signed and unsigned
make[6]: *** [libavcodec_plugin_la-chroma.lo] Error 1
make[6]: Leaving directory `/usr/src/vlc-1.0.5/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/usr/src/vlc-1.0.5/modules/codec/avcodec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/src/vlc-1.0.5/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/vlc-1.0.5/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/vlc-1.0.5/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/vlc-1.0.5'
make: *** [all] Error 2

I have installed ffmpeg package with "apt-get install ffmpeg", but it doesn't help. Any idea? Thanks,

Re: Compile error 0.9.1 PIX_BUF ?

Posted: 19 Mar 2010 21:27
by xtophe
libavcodec looks too old

Re: Compile error 0.9.1 PIX_BUF ?

Posted: 01 Jul 2010 19:51
by hubetu
Hi,

I encountered the same problem, however, it's not because of libavcodec.

Any help would be appreciated.

Mark

Re: Compile error 0.9.1 PIX_BUF ?

Posted: 02 Jul 2010 03:56
by Rémi Denis-Courmont
Update avcodec.