<div dir="ltr"><div><div><div><span style="font-family:tahoma,sans-serif">Hi All,<br><br></span></div><span style="font-family:tahoma,sans-serif">i have written make file to build own sample application using FFMPEG static libraries, but i'm getting more than 200+ undefined reference errors while compiling. <br></span></div><span style="font-family:tahoma,sans-serif"><b>Error exampls:</b><br>./lib/libavcodec.a(mscc.o): In function `decode_init':<br>/home/bvittalprasad/ffmpeg_sources/ffmpeg/libavcodec/mscc.c:205: undefined reference to `inflateInit_'<br>./lib/libavcodec.a(nellymoserdec.o): In function `nelly_decode_block':<br><br></span></div><div><span style="font-family:tahoma,sans-serif">From error statements looks like static library once again looking for .c files.<br><br></span></div><div><span style="font-family:tahoma,sans-serif">Makefile:<br>ROOT = .<br><br>SRC_DIR = $(ROOT)/src<br>INCLUDES = -I$(ROOT)/include<br><br><br>OBJECTS_BASE = $(ROOT)/obj<br>BIN_BASE = $(ROOT)/bin<br><br>LIBS = $(ROOT)/lib/libavdevice.a<br>LIBS+= $(ROOT)/lib/libavformat.a<br>LIBS+= $(ROOT)/lib/libavfilter.a<br>LIBS+= $(ROOT)/lib/libavcodec.a<br>LIBS+= $(ROOT)/lib/libswscale.a<br>LIBS+= $(ROOT)/lib/libavutil.a<br>#LIBS+= $(ROOT)/lib/libx264.a<br>#LIBS+= $(ROOT)/lib/libfdk-aac.a<br><br>OBJECTS+=  $(OBJECTS_BASE)/transcoding.o<br><br>#all<br>all: obj \<br>        lib \<br>        bin<br>obj:$(OBJECTS)<br>lib:<br>bin: $(BIN_BASE)/transcoding<br><br>$(OBJECTS_BASE)/%.o: $(SRC_DIR)/%.c<br>        $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@<br><br>$(BIN_BASE)/transcoding: $(OBJECTS)<br>        $(LN) $(OBJECTS)  $(LIBS)  -lrt -o $@<br><br></span></div><div><span style="font-family:tahoma,sans-serif"><br></span></div><div><span style="font-family:tahoma,sans-serif">please let me know how to link this static libraries.<br><br clear="all"></span></div><div><div><div><div><span style="font-family:tahoma,sans-serif"><br>-- <br></span><div class="gmail_signature"><span style="font-family:tahoma,sans-serif">Thanks & Regards<br>Vittal Prasad B R<br></span><br><br><br><br></div>
</div></div></div></div></div>