剛開始出現undefined reference to `__chkstk的錯誤。
然后在vc里面找到chkstk.obj放到相關目錄下并在工程文件直接添加:
LIBS += "E:\QTProjects\RTMP\RTMPDelayTest\librtmp\lib\chkstk.obj"
又出現了新的錯誤
E:\QTProjects\RTMP\RTMPDelayTest\librtmp\lib\librtmp.lib(tmp32\rand_win.obj):-1: error: undefined reference to `@__security_check_cookie@4'
E:\QTProjects\RTMP\RTMPDelayTest\librtmp\lib\librtmp.lib(tmp32\rand_win.obj):-1: error: undefined reference to `_except_handler4'
?
另一個建議是在mingw的shell中運行:
mingw-get?upgrade?"mingwrt=3.20.*"
?
重新編譯rtmpdump,新建include和lib文件夾,然后分別拷入zlib和openSSL的頭文件和靜態庫文件,如下圖所示:
然后試圖編譯生成librtmp庫,提示無法找到執行檔:
?