You are not logged in.
Pages: 1
I happened to grab the source tarball of rtmpdump before the sourceforge project was deleted. However, this is what I get when I try to compile it:
AMFObject.h:93: error: 'int16_t' does not name a type
AMFObject.cpp: In member function 'int RTMP_LIB::AMFObjectProperty::Decode(const char*, int, bool)':
AMFObject.cpp:493: error: 'm_nUTCOffset' was not declared in this scope
AMFObject.cpp: In member function 'void RTMP_LIB::AMFObjectProperty::Dump() const':
AMFObject.cpp:584: error: 'm_nUTCOffset' was not declared in this scope
make: *** [AMFObject.o] Error 1
Does anyone have any idea what that means or how to fix it?
Oh, and here's the Makefile: (not sure if it will help, though)
CC=gcc
CXX=g++
LD=ld
CFLAGS=-Wall
CXXFLAGS=-Wall
LDFLAGS=-Wall
all: rtmpdump
clean:
rm -f *.o
streams: bytes.o log.o rtmp.o AMFObject.o rtmppacket.o streams.o parseurl.o dh.o
handshake.o
$(CXX) $(LDFLAGS) $^ -o $@_x86 -lpthread -lssl -lcrypto
rtmpdump: bytes.o log.o rtmp.o AMFObject.o rtmppacket.o rtmpdump.o parseurl.o dh
.o handshake.o
$(CXX) $(LDFLAGS) $^ -o $@_x86 -lssl -lcrypto
bytes.o: bytes.cpp bytes.h Makefile
log.o: log.cpp log.h Makefile
rtmp.o: rtmp.cpp rtmp.h log.h AMFObject.h Makefile
AMFObject.o: AMFObject.cpp AMFObject.h log.h rtmp.h Makefile
rtmppacket.o: rtmppacket.cpp rtmppacket.h log.h Makefile
rtmpdump.o: rtmpdump.cpp rtmp.h log.h AMFObject.h Makefile
parseurl.o: parseurl.cpp parseurl.h log.h Makefile
streams.o: streams.cpp log.h Makefile
dh.o: dh.cpp dh.h log.h Makefile
handshake.o: handshake.cpp log.h Makefile
Last edited by mrbug (2009-05-24 01:12:21)
dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)
Offline
is there anyway I could get you to email me the source? I was able to grab a older copy but havent been able to find 1.6 hosted anywhere... email is ugkbunb AT gmail DOT com
Offline
It could be a problem with gcc being too new, see for instance http://gcc.gnu.org/gcc-4.4/porting_to.html
Offline
It could be a problem with gcc being too new, see for instance http://gcc.gnu.org/gcc-4.4/porting_to.html
Ah, I see what you mean... You could be right!
Now I just have to figure out how to "translate" the old code. Any hints? =-)
is there anyway I could get you to email me the source?
A quick Google search showed that all of the major torrent sites have it now... There's also a new "clean room" implementation that has been developed and is hosted in the UK.
dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)
Offline
Add #include <stdint.h> to both AMFObject.h and rtmppacket.h.
Offline
That did it! Thanks!
I'm not familiar enough with the common C header files to have figured that out myself... I only know stuff like stdio and conio =-)
dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)
Offline
Pages: 1