[help]compiling vlc 0.9.0 with ffmpeg

*nix specific usage questions
kobe08
Blank Cone
Blank Cone
Posts: 16
Joined: 12 Nov 2007 03:06

[help]compiling vlc 0.9.0 with ffmpeg

Postby kobe08 » 31 Mar 2008 17:41

______________________________________________________________
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?
Last edited by kobe08 on 01 Apr 2008 16:50, edited 4 times in total.

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: libpostproc/postprocess.h: No such file or directory

Postby Jean-Baptiste Kempf » 31 Mar 2008 18:56

update your VLC and your ffmpeg.
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.

kobe08
Blank Cone
Blank Cone
Posts: 16
Joined: 12 Nov 2007 03:06

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

Postby kobe08 » 31 Mar 2008 22:56

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
Last edited by kobe08 on 01 Apr 2008 16:50, edited 1 time in total.

kobe08
Blank Cone
Blank Cone
Posts: 16
Joined: 12 Nov 2007 03:06

Re: [help] Compiling vlc 0.8.6e with ffmpeg

Postby kobe08 » 31 Mar 2008 23:34

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

mariuz
Blank Cone
Blank Cone
Posts: 13
Joined: 07 Feb 2008 11:08
VLC version: 0.9.x
Operating System: ubuntu
Contact:

Re: [help]compiling vlc 0.9.0 with ffmpeg

Postby mariuz » 11 Apr 2008 18:02

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'

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: [help]compiling vlc 0.9.0 with ffmpeg

Postby Jean-Baptiste Kempf » 12 Apr 2008 09:09

-lswscale ?
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.

mariuz
Blank Cone
Blank Cone
Posts: 13
Joined: 07 Feb 2008 11:08
VLC version: 0.9.x
Operating System: ubuntu
Contact:

Re: [help]compiling vlc 0.9.0 with ffmpeg

Postby mariuz » 13 Apr 2008 01:15

Now seems that compiling is ok , with the latest nightly and latest ffmpeg


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

Who is online

Users browsing this forum: No registered users and 11 guests