<div dir="ltr">Hi All,<div><br></div><div>There are half a dozen guides online for compiling rtmpdump on Windows but most are many years old and don't seem to be relevant.  From what I've pieced together from them though I have managed to "compile" the latest version of rtmpdump but </div><div><br></div><div>a) get some warnings during make, which I'm not sure I should be </div><div>b) get either DNS errors or "failed to create socket" errors when I try to use my build.</div><div><br></div><div>When there are no such problems when I use the last windows release.  I want to compile the latest code base as the last windows release seems to be quite a bit behind and I'm getting what appears to be buffering errors which may be fixed/addressed in newer commits.</div><div><br></div><div>I'm not great with c++ builds - I've got mingw / msys and also cygwin all installed with a variety of library dependency downloaded.  </div><div><br></div><div>Anyway my build output is as below.  If anyone can give me pointers (or is willing to write a fresh/current guide for Windows 10) it would be appreciated.</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">$ make SYS=mingw<br>make[1]: Entering directory '/cygdrive/c/Repo/rtmpdump/librtmp'<br>gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o rtmp.o rtmp.c<br>rtmp.c:1:0: warning: -fPIC ignored for target (all code is position independent)<br> /*<br> ^<br>rtmp.c: In function ‘RTMP_ReadPacket’:<br>rtmp.c:3555:7: warning: variable ‘didAlloc’ set but not used [-Wunused-but-set-variable]<br>   int didAlloc = FALSE;<br>       ^<br>gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o log.o log.c<br>log.c:1:0: warning: -fPIC ignored for target (all code is position independent)<br> /*<br> ^<br>gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o amf.o amf.c<br>amf.c:1:0: warning: -fPIC ignored for target (all code is position independent)<br> /*<br> ^<br>In file included from amf.c:33:0:<br>bytes.h:74:2: warning: #warning "Float word order not defined, assuming the same as byte order!" [-Wcpp]<br> #warning "Float word order not defined, assuming the same as byte order!"<br>  ^<br>gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o hashswf.o hashswf.c<br>hashswf.c:1:0: warning: -fPIC ignored for target (all code is position independent)<br> /*<br> ^<br>gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o parseurl.o parseurl.c<br>parseurl.c:1:0: warning: -fPIC ignored for target (all code is position independent)<br> /*<br> ^<br>ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o<br>ar: creating librtmp.a<br>gcc -shared -Wl,--out-implib,librtmp.dll.a  -o librtmp-1.dll rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz -lws2_32 -lwinmm -lgdi32<br>ln -sf librtmp-1.dll librtmp.dll<br>make[1]: Leaving directory '/cygdrive/c/Repo/rtmpdump/librtmp'<br>gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpdump.o rtmpdump.c<br>rtmpdump.c: In function ‘main’:<br>rtmpdump.c:727:16: warning: ‘optarg’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]<br>   extern char *optarg;<br>                ^<br>gcc -Wall  -o rtmpdump.exe rtmpdump.o -Llibrtmp -lrtmp -lssl -lcrypto -lz -lws2_32 -lwinmm -lgdi32<br>gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpgw.o rtmpgw.c<br>gcc -Wall  -o rtmpgw.exe rtmpgw.o thread.o  -Llibrtmp -lrtmp -lssl -lcrypto -lz -lws2_32 -lwinmm -lgdi32<br>gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpsrv.o rtmpsrv.c<br>gcc -Wall  -o rtmpsrv.exe rtmpsrv.o thread.o  -Llibrtmp -lrtmp -lssl -lcrypto -lz -lws2_32 -lwinmm -lgdi32<br>gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpsuck.o rtmpsuck.c<br>gcc -Wall  -o rtmpsuck.exe rtmpsuck.o thread.o  -Llibrtmp -lrtmp -lssl -lcrypto -lz -lws2_32 -lwinmm -lgdi32</blockquote></div><div><br></div><div>When I try to run I firstly get this error</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">C:/Repo/rtmpdump/rtmpdump.exe: error while loading shared libraries: librtmp-1.dll: cannot open shared object file: No such file or directory</blockquote></div><div><br></div><div>When I copy this DLL out of the child folder and into the rtmpdump folder it then seems to work, but then I get unexpected errors</div><div><br></div><div>If I use a DNS alias:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Connecting ...<br>ERROR: Problem accessing the DNS.<br>DEBUG: Closing connection.</blockquote></div><div><br></div><div>If I use a direct IP:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Connecting ...<br>ERROR: RTMP_Connect0, failed to create socket. Error: 22<br>DEBUG: Closing connection.</blockquote></div><div><br></div><div>Alternatively if anyone is actively developing still and can provide a new Windows release, that would be appreciated.  However I would like to build myself so I can attempt to debug/fix the errors I get.</div><div><br></div><div>Thanks,</div><div><br></div><div>Michael.</div></div>