QT添加rtmp库的时候出现问题
刚开始出现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库,提示无法找到执行档: