首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Flash >

librtmp有关问题

2013-10-13 
librtmp问题不知道是我自己编译的librtmp.lib有问题还是使用方式的问题如果有大神有用过的 可以的麻烦你把

librtmp问题
不知道是我自己编译的librtmp.lib有问题还是  使用方式的问题
如果有大神有用过的 可以的  麻烦你把(所需的头文件与库)发下我的QQ944894913  感激不尽啊

我自己参照http://c1zhao.iteye.com/blog/901900 编译的静态librtmp.lib
编译好后新建一个MFC工程  添加如下
#include "rtmp_sys.h"   
#include"log.h"   
#include"amf.h" 

#pragma comment(lib,"librtmp.lib") 

在点击事件中
RTMP* rtmp;
char uri[]="rtmp://127.0.0.1/livepkgr/livestream";  
rtmp = RTMP_Alloc();   
编译报如下错误:(求指导)
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSL_CTX_set_default_verify_paths
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSL_CTX_ctrl
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSL_CTX_new
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSLv23_method
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _OpenSSL_add_all_digests
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSL_library_init
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSL_load_error_strings
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__setsockopt@20
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol __imp__setsockopt@20
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__connect@12
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol __imp__connect@12
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__socket@12
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol __imp__socket@12
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSL_connect
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol _SSL_connect
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSL_set_fd
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol _SSL_set_fd
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSL_new
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol _SSL_new
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _RC4
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__ntohl@4
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__htonl@4
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _DH_free
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_set_word
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_hex2bn
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_new
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _DH_new
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_free
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _DH_generate_key
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_value_one
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_CTX_free
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_mod_exp
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_CTX_new
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_sub_word
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_copy
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_cmp
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_bn2bin
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_num_bits
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _DH_compute_key
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _BN_bin2bn
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _RC4_set_key
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _HMAC_CTX_cleanup
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol _HMAC_CTX_cleanup
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _HMAC_Final
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol _HMAC_Final


librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _HMAC_Update
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol _HMAC_Update
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _HMAC_Init_ex
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol _HMAC_Init_ex
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _EVP_sha256
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol _EVP_sha256
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _HMAC_CTX_init
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol _HMAC_CTX_init
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__htons@4
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol __imp__htons@4
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__gethostbyname@4
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol __imp__gethostbyname@4
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__inet_addr@4
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol __imp__inet_addr@4
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__recv@16
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSL_read
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__send@16
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSL_write
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__closesocket@4
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSL_free
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol _SSL_shutdown
librtmp.lib(rtmp.obj) : error LNK2001: unresolved external symbol __imp__WSASetLastError@4
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol _inflateEnd
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol _inflateInit_
librtmp.lib(hashswf.obj) : error LNK2001: unresolved external symbol _inflate
Debug/TempRtmp.exe : fatal error LNK1120: 56 unresolved externals
执行 link.exe 时出错. rtmp SSL 库
[解决办法]
librtmp依赖两个开源库 openssl 和 zlib,你需要将这两个库和librtmp一起编译才能使用。
[解决办法]
您的程序通过了吧已经?我刚刚开始写,也遇到了您的错误,err=RTMP_ConnectStream(rtmp,0);  请问是为什么?
[解决办法]
把CRYPTO的宏定义去掉,如果你不需要支持swf下载,不许要openssl库的支持。

热点排行