[Libav-user] linker error while compiling decoding_encoding.c
satya gowtham kudupudi
satyagowtham.k at gmail.com
Mon Sep 30 08:58:45 CEST 2013
I compiled finally after couple of days!
If its CPP application you should
extern "C" {
#include <libavutil/opt.h>
#include <libavcodec/avcodec.h>
#include <libavutil/channel_layout.h>
#include <libavutil/common.h>
#include <libavutil/imgutils.h>
#include <libavutil/mathematics.h>
#include <libavutil/samplefmt.h>
}
and my build commands are
g++ -D__STDC_CONSTANT_MACROS -c -g -Iffmpeg_build/include
-D__STDC_CONSTANT_MACROS -MMD -MP -MF build/Debug/GNU-Linux-x86/main.o.d -o
build/Debug/GNU-Linux-x86/main.o main.cpp
g++ -D__STDC_CONSTANT_MACROS -o dist/Debug/GNU-Linux-x86/test
build/Debug/GNU-Linux-x86/main.o -Lffmpeg_build/lib
-L/usr/lib/i386-linux-gnu ffmpeg_build/lib/libavformat.a
ffmpeg_build/lib/libavcodec.a ffmpeg_build/lib/libswscale.a
ffmpeg_build/lib/libavdevice.a ffmpeg_build/lib/libavfilter.a
ffmpeg_build/lib/libfdk-aac.a ffmpeg_build/lib/libpostproc.a
ffmpeg_build/lib/libswresample.a ffmpeg_build/lib/libx264.a
ffmpeg_build/lib/libavutil.a -lvpx -lvorbisenc -lvorbis -lmp3lame -lopus
-ltheora -ltheoraenc -ltheoradec -lva -ldl -lzip -lz -lpthread
we need to link heck amount of libraries
*Gowtham*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130930/20c4ce1c/attachment.html>
More information about the Libav-user
mailing list