[FFmpeg-user] Compile FFpaly on Ubuntu 13.10 and Eclipse

João Machado joao_m_s_m at hotmail.com
Thu Apr 3 14:04:45 CEST 2014


Hi all,

I did manage to compile it with the following commands:

gcc -I. -I./ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/absolutePathTo/ffmpeg_build/include -std=c99 -fomit-frame-pointer -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/absolutePathTo/ffmpeg_build/include/opus -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wno-maybe-uninitialized  -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -MMD -MF ffplay.d -MT ffplay.o -c -o ffplay.o ffplay.c

gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -L/absolutePathTo/ffmpeg_build/lib  -Wl,--as-needed -Wl,--warn-common -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample  -o ffplay_g cmdutils.o ffplay.o   -lavdevice -lavfilter -lavformat -lavcodec -lpostproc -lswresample -lswscale -lavutil -lva -lXfixes -lXext -lX11 -lasound -lSDL -lx264 -lvpx -lvpx -lvpx -lvpx -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -L/home/joao/ffmpeg_build/lib -lopus -lmp3lame -lfdk-aac -lass -lm -lz -pthread -ldl  -lSDL

cp -p ffplay_g ffplay

strip ffplay

Cheers,

João M.
> From: joao_m_s_m at hotmail.com
> To: ffmpeg-user at ffmpeg.org
> Date: Wed, 2 Apr 2014 14:07:12 +0000
> Subject: Re: [FFmpeg-user] Compile FFpaly on Ubuntu 13.10 and Eclipse
> 
> Hi again,
> 
> I have this huge command line:
> 
> gcc -I. -I./ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/home/joao/ffmpeg_build/include -std=c99 -fomit-frame-pointer -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/home/joao/ffmpeg_build/include/opus -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wno-maybe-uninitialized  -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -MMD -MF ffplay.d -MT ffplay.o -c -o ffplay.o ffplay.c
> 
> Is everything mandatory?
> 
> Can you tell me what I need to add to GCC C++-> Compiler and  GCC C++-> Linker?
> 
> Thanks in advance,
> JM.
> 
> 
> > Date: Tue, 1 Apr 2014 22:10:30 +0100
> > From: naveen.mr at gmail.com
> > To: ffmpeg-user at ffmpeg.org
> > Subject: Re: [FFmpeg-user] Compile FFpaly on Ubuntu 13.10 and Eclipse
> > 
> > Joao,
> > if there is no way out - suggest you to look at the command line compiler
> > and linker options for ffplay.c
> > use verbose method to see these options:
> > 
> > make V=s
> > 
> > It should give fair bit of info required to populate "project -> properties
> > -> c/c++ build -> settings" in eclipse
> > I did manage to compile this way sometime ago
> > 
> > 
> > 
> > 
> > On Tue, Apr 1, 2014 at 9:58 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> > 
> > > João Machado <joao_m_s_m <at> hotmail.com> writes:
> > >
> > > > Now I am trying to compile the ffplay.c using the eclipse,
> > > > so I can debud, change and compile it.
> > >
> > > > I also found this link which I'll try after
> > > > https://trac.ffmpeg.org/wiki/Setup_Eclipse_IDE_for_FFmpeg_%28Linux%29.
> > >
> > > I suggest you ask here if anything does not work as
> > > explained in the wiki.
> > >
> > > Carl Eugen
> > >
> > > _______________________________________________
> > > ffmpeg-user mailing list
> > > ffmpeg-user at ffmpeg.org
> > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > >
> > 
> > 
> > 
> > -- 
> > ,
> > Naveen Rudrappa
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>  		 	   		  
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
 		 	   		  


More information about the ffmpeg-user mailing list