[rtmpdump] AR=$(CROSS_COMPILE)ar

David Woodhouse dwmw2 at infradead.org
Sun Apr 18 21:10:45 CEST 2010

The makefile ignores $(CROSS_COMPILE) for the archive tool, leading to

[dwmw2 at macbook rtmpdump]$ make CROSS_COMPILE=i686-pc-mingw32- mingw
make[1]: Entering directory `/home/dwmw2/working/rtmpdump'
i686-pc-mingw32-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2c\"  -O2   -c -o rtmpdump.o rtmpdump.c
make[2]: Entering directory `/home/dwmw2/working/rtmpdump/librtmp'
i686-pc-mingw32-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2c\" -DUSE_OPENSSL -O2   -c -o rtmp.o rtmp.c
i686-pc-mingw32-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2c\" -DUSE_OPENSSL -O2   -c -o log.o log.c
i686-pc-mingw32-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2c\" -DUSE_OPENSSL -O2   -c -o amf.o amf.c
i686-pc-mingw32-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2c\" -DUSE_OPENSSL -O2   -c -o hashswf.o hashswf.c
i686-pc-mingw32-gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2c\" -DUSE_OPENSSL -O2   -c -o parseurl.o parseurl.c
ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
ar: creating librtmp.a
make[2]: Leaving directory `/home/dwmw2/working/rtmpdump/librtmp'
i686-pc-mingw32-gcc -Wall  rtmpdump.o librtmp/librtmp.a  -o rtmpdump.exe -lssl -lcrypto -lz -lws2_32 -lwinmm -lgdi32
librtmp/librtmp.a: could not read symbols: Archive has no index; run ranlib to add one
make[1]: *** [rtmpdump] Error 1

This fixes it:

--- librtmp/Makefile	(revision 432)
+++ librtmp/Makefile	(working copy)
@@ -4,6 +4,7 @@


More information about the rtmpdump mailing list