Page 1 of 1

[help]compiling vlc 0.9.0 with ffmpeg

Posted: 31 Mar 2008 17:41
by kobe08
______________________________________________________________
I am sorry for opening another thread similar to this one:
viewtopic.php?f=13&t=45295
I only realised the existence of this after a few posts... :D
______________________________________________________________


It happened when i tryied to MAKE vlc i got from git...

ffmpeg.c:59:44: libpostproc/postprocess.h: No such file or directory

Code: Select all

Making all in ffmpeg make[5]: Entering directory `/home/vlc/modules/codec/ffmpeg' make[6]: Entering directory `/home/vlc/modules/codec/ffmpeg' /bin/bash ../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -DSYS_LINUX -I../../../include -I../../../include `top_builddir="../../.." ../../../vlc-config --cflags plugin ffmpeg` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libffmpeg_plugin_la-ffmpeg.lo -MD -MP -MF .deps/libffmpeg_plugin_la-ffmpeg.Tpo -c -o libffmpeg_plugin_la-ffmpeg.lo `test -f 'ffmpeg.c' || echo './'`ffmpeg.c gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -DSYS_LINUX -I../../../include -I../../../include -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=ffmpeg -DMODULE_NAME_IS_ffmpeg -O2 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer -fvisibility=hidden -I/usr/local/include -I/usr/local/include -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libffmpeg_plugin_la-ffmpeg.lo -MD -MP -MF .deps/libffmpeg_plugin_la-ffmpeg.Tpo -c ffmpeg.c -fPIC -DPIC -o .libs/libffmpeg_plugin_la-ffmpeg.o ffmpeg.c:54:41: error: libpostproc/postprocess.h: No such file or directory ffmpeg.c: In function 'LibavcodecCallback__0_9_0j': ffmpeg.c:404: warning: assignment discards qualifiers from pointer target type make[6]: *** [libffmpeg_plugin_la-ffmpeg.lo] Error 1 make[6]: Leaving directory `/home/vlc/modules/codec/ffmpeg' make[5]: *** [all-modules] Error 1 make[5]: Leaving directory `/home/vlc/modules/codec/ffmpeg' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/vlc/modules/codec' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/vlc/modules/codec' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/vlc/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/vlc' make: *** [all] Error 2 root@kmobile:/home/vlc# ls
Does anyone knows how to correct this problem?

Re: libpostproc/postprocess.h: No such file or directory

Posted: 31 Mar 2008 18:56
by Jean-Baptiste Kempf
update your VLC and your ffmpeg.

Re: libpostproc/postprocess.h: No such file or directory

Posted: 31 Mar 2008 22:56
by kobe08
I don't think it is that simple... i reinstalled the ffmpeg again, the last version, and the vlc is the last one i got from Git (0.9.0 i think)...

Anyone with this same problem??? or that can help me anyway...

Thanks

Re: [help] Compiling vlc 0.8.6e with ffmpeg

Posted: 31 Mar 2008 23:34
by kobe08
I managed to correct the previous problem.
I added --with-ffmpeg-tree=/home/vlc/ffmpeg (that's the folder where i put ffmpeg...)when configuring vlc
However, now it complains of something else...

Code: Select all

*** Warning: Linking the shared library libffmpeg_plugin.la against the *** static library /home/vlc/ffmpeg/libavformat/libavformat.a is not portable! *** Warning: Linking the shared library libffmpeg_plugin.la against the *** static library /home/vlc/ffmpeg/libavcodec/libavcodec.a is not portable! *** Warning: Linking the shared library libffmpeg_plugin.la against the *** static library /home/vlc/ffmpeg/libavutil/libavutil.a is not portable! *** Warning: Linking the shared library libffmpeg_plugin.la against the *** static library /home/vlc/ffmpeg/libpostproc/libpostproc.a is not portable! gcc -std=gnu99 -shared .libs/libffmpeg_plugin_la-ffmpeg.o .libs/libffmpeg_plugin_la-video.o .libs/libffmpeg_plugin_la-audio.o .libs/libffmpeg_plugin_la-video_filter.o .libs/libffmpeg_plugin_la-deinterlace.o .libs/libffmpeg_plugin_la-chroma.o .libs/libffmpeg_plugin_la-encoder.o .libs/libffmpeg_plugin_la-postprocess.o .libs/libffmpeg_plugin_la-demux.o .libs/libffmpeg_plugin_la-mux.o .libs/libffmpeg_plugin_la-scale.o -Wl,--rpath -Wl,/home/vlc/src/.libs ../../../src/.libs/libvlc.so -lpthread /home/vlc/ffmpeg/libavformat/libavformat.a /home/vlc/ffmpeg/libavcodec/libavcodec.a /home/vlc/ffmpeg/libavutil/libavutil.a -lz -ldl -L/home/vlc/ffmpeg/libpostproc /home/vlc/ffmpeg/libpostproc/libpostproc.a -lm -mtune=pentium2 -Wl,-z -Wl,defs -Wl,-soname -Wl,libffmpeg_plugin.so -o .libs/libffmpeg_plugin.so .libs/libffmpeg_plugin_la-scale.o: In function `CloseScaler__0_9_0j': scale.c:(.text+0x39): undefined reference to `sws_freeFilter' .libs/libffmpeg_plugin_la-scale.o: In function `OpenScaler__0_9_0j': scale.c:(.text+0x806): undefined reference to `sws_getDefaultFilter' scale.c:(.text+0xb16): undefined reference to `sws_freeFilter' collect2: ld returned 1 exit status make[6]: *** [libffmpeg_plugin.la] Error 1 make[6]: Leaving directory `/home/vlc/modules/codec/ffmpeg' make[5]: *** [all-modules] Error 1 make[5]: Leaving directory `/home/vlc/modules/codec/ffmpeg' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/vlc/modules/codec' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/vlc/modules/codec' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/vlc/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/vlc' make: *** [all] Error 2 root@kmobile:/home/vlc#
Any ideia of what might be wrong??

Thanks

Re: [help]compiling vlc 0.9.0 with ffmpeg

Posted: 11 Apr 2008 18:02
by mariuz
i have the same issue with the latest vlc and latest ffmpeg

Code: Select all

"../../.." ../../../vlc-config -libs plugin ffmpeg` gcc -std=gnu99 -shared .libs/libffmpeg_plugin_la-ffmpeg.o .libs/libffmpeg_plugin_la-video.o .libs/libffmpeg_plugin_la-audio.o .libs/libffmpeg_plugin_la-video_filter.o .libs/libffmpeg_plugin_la-deinterlace.o .libs/libffmpeg_plugin_la-chroma.o .libs/libffmpeg_plugin_la-encoder.o .libs/libffmpeg_plugin_la-postprocess.o .libs/libffmpeg_plugin_la-demux.o .libs/libffmpeg_plugin_la-mux.o .libs/libffmpeg_plugin_la-scale.o -Wl,--rpath -Wl,/opt/build/vlc-0.9.0-svn/src/.libs -Wl,--rpath -Wl,/usr/local/lib ../../../src/.libs/libvlc.so -L/lib -lpthread -lavformat -lavcodec -lz /usr/lib/liba52.a /usr/lib/libamrnb.so /usr/lib/libamrwb.so /usr/lib/libfaac.so /usr/lib/libfaad.so /usr/lib/libmp3lame.so -lx264 -lxvidcore -ldl -ltheora -lvorbisenc -lavutil -lvorbis -logg -lpostproc -lm -Wl,-z -Wl,defs -pthread -pthread -Wl,-soname -Wl,libffmpeg_plugin.so -o .libs/libffmpeg_plugin.so .libs/libffmpeg_plugin_la-scale.o: In function `CloseScaler__0_9_0g': scale.c:(.text+0x39): undefined reference to `sws_freeFilter' .libs/libffmpeg_plugin_la-scale.o: In function `OpenScaler__0_9_0g': scale.c:(.text+0x7d6): undefined reference to `sws_getDefaultFilter' scale.c:(.text+0xab6): undefined reference to `sws_freeFilter' collect2: ld returned 1 exit status make[6]: *** [libffmpeg_plugin.la] Error 1 make[6]: Leaving directory `/opt/build/vlc-0.9.0-svn/modules/codec/ffmpeg' make[5]: *** [all-modules] Error 1 make[5]: Leaving directory `/opt/build/vlc-0.9.0-svn/modules/codec/ffmpeg'

Re: [help]compiling vlc 0.9.0 with ffmpeg

Posted: 12 Apr 2008 09:09
by Jean-Baptiste Kempf
-lswscale ?

Re: [help]compiling vlc 0.9.0 with ffmpeg

Posted: 13 Apr 2008 01:15
by mariuz
Now seems that compiling is ok , with the latest nightly and latest ffmpeg