当前位置: 首页 > news >正文

ps做网站的常用素材广州seo顾问

ps做网站的常用素材,广州seo顾问,合肥建设有限公司,常州手机网站建设关于开源的RTP——jrtplib的使用 首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包 http://research.edm.uhasselt.be/~jori/page/index.php?nCS.Jrtplib 然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工…


关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:



关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:


关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:

关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:



关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
[cpp]  view plain copy print ?
  1. #include"stdafx.h"  
  2. #include"rtpsession.h"  
  3. #include<iostream>  
  4. #include<stdio.h>  
  5.    
  6. usingnamespace std;  
  7.    
  8. void CheckError(int inErrNum)  
  9. {  
  10.     if(inErrNum < 0)  
  11.     {  
  12.         cout<<"Error:"<<RTPGetErrorString(inErrNum)<<endl;  
  13.         exit(-1);  
  14.     }  
  15. }  
  16.    
  17. int _tmain(int argc, _TCHAR* argv[])  
  18. {  
  19.     RTPSession sess;  
  20.    
  21.     return 0;  
  22. }  
在我们生成解决方案的时候我们会得到以下错误:
------ 已启动全部重新生成: 项目: RTPSender, 配置: Debug Win32 ------
正在删除项目“RTPSender”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
stdafx.cpp
正在编译...
RTPSender.cpp
正在编译资源清单...
正在链接...
RTPSender.obj : error LNK2019: 无法解析的外部符号"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl RTPGetErrorString(int)" (?RTPGetErrorString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z),该符号在函数"void __cdecl CheckError(int)" (?CheckError@@YAXH@Z) 中被引用
RTPSender.obj : error LNK2019: 无法解析的外部符号"public: virtual __thiscall RTPSession::~RTPSession(void)" (??1RTPSession@@UAE@XZ),该符号在函数_wmain 中被引用
RTPSender.obj : error LNK2019: 无法解析的外部符号"public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z),该符号在函数_wmain 中被引用
F:/Programming/AV_Programs/RTPSender/Debug/RTPSender.exe : fatal error LNK1120: 3 个无法解析的外部命令
生成日志保存在“file://f:/Programming/AV_Programs/RTPSender/RTPSender/Debug/BuildLog.htm”
RTPSender - 4 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
 
这是我们要加上 jrtplib.lib
但在我们再次生成解决方案时还会出现以下错误:
------ 已启动全部重新生成: 项目: RTPSender, 配置: Debug Win32 ------
正在删除项目“RTPSender”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
stdafx.cpp
正在编译...
RTPSender.cpp
正在编译资源清单...
正在链接...
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ),该符号在函数__unwindfunclet$??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z$0 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ),该符号在函数"public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ),该符号在函数"private: int __thiscall RTPSession::InternalCreate(class RTPSessionParams const &)" (?InternalCreate@RTPSession@@AAEHABVRTPSessionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ),该符号在函数"public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ),该符号在函数"public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号__imp__gethostname@8,该符号在函数"private: int __thiscall RTPSession::CreateCNAME(unsigned char *,unsigned int *,bool)" (?CreateCNAME@RTPSession@@AAEHPAEPAI_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号__imp__gethostname@8
jrtplib.lib(rtpsources.obj) : error LNK2019: 无法解析的外部符号__imp__ntohl@4,该符号在函数"public: unsigned int __thiscall RTCPSDESPacket::GetChunkSSRC(void)const " (?GetChunkSSRC@RTCPSDESPacket@@QBEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号__imp__ntohl@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohl@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__bind@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__htonl@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: 无法解析的外部符号__imp__htonl@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__htonl@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__htons@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: 无法解析的外部符号__imp__htons@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__htons@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__setsockopt@20,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__closesocket@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__socket@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__gethostbyaddr@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::GetLocalHostName(unsigned char *,unsigned int *)" (?GetLocalHostName@RTPUDPv4Transmitter@@UAEHPAEPAI@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__recv@16,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号___WSAFDIsSet@8,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__select@20,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__sendto@24,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::SendRTPData(void const *,unsigned int)" (?SendRTPData@RTPUDPv4Transmitter@@UAEHPBXI@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__ntohs@4,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohs@4
jrtplib.lib(rtcpcompoundpacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohs@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__recvfrom@24,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__ioctlsocket@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__accept@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__connect@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__inet_addr@4,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__listen@8,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__getsockname@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__WSAIoctl@36,该符号在函数"private: bool __thiscall RTPUDPv4Transmitter::GetLocalIPList_Interfaces(void)" (?GetLocalIPList_Interfaces@RTPUDPv4Transmitter@@AAE_NXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__gethostbyname@4,该符号在函数"private: void __thiscall RTPUDPv4Transmitter::GetLocalIPList_DNS(void)" (?GetLocalIPList_DNS@RTPUDPv4Transmitter@@AAEXXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__send@16,该符号在函数"private: void __thiscall RTPUDPv4Transmitter::AbortWaitInternal(void)" (?AbortWaitInternal@RTPUDPv4Transmitter@@AAEXXZ) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: virtual __thiscall JThread::~JThread(void)" (??1JThread@@UAE@XZ),该符号在函数__unwindfunclet$??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z$0 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JThread::JThread(void)" (??0JThread@@QAE@XZ),该符号在函数"public: __thiscall RTPPollThread::RTPPollThread(class RTPSession &,class RTCPScheduler &)" (??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JThread::Start(void)" (?Start@JThread@@QAEHXZ),该符号在函数"public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: bool __thiscall JThread::IsRunning(void)" (?IsRunning@JThread@@QAE_NXZ),该符号在函数"public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JThread::Kill(void)" (?Kill@JThread@@QAEHXZ),该符号在函数"public: void __thiscall RTPPollThread::Stop(void)" (?Stop@RTPPollThread@@QAEXXZ) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"protected: void __thiscall JThread::ThreadStarted(void)" (?ThreadStarted@JThread@@IAEXXZ),该符号在函数"private: virtual void * __thiscall RTPPollThread::Thread(void)" (?Thread@RTPPollThread@@EAEPAXXZ) 中被引用
F:/Programming/AV_Programs/RTPSender/Debug/RTPSender.exe : fatal error LNK1120: 35 个无法解析的外部命令
生成日志保存在“file://f:/Programming/AV_Programs/RTPSender/RTPSender/Debug/BuildLog.htm”
RTPSender - 55 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
 
这是我们要加上 ws2_32.lib 和 jthread.lib这两个库,这样我们就会成功了。
到这里我们jrtplib基本配置的差不多了,当然我们可能在用特定的函数是还需要一些特定的库。


关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:



关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:


关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:

关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:

关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
[cpp]  view plain copy print ?
  1. #include"stdafx.h"  
  2. #include"rtpsession.h"  
  3. #include<iostream>  
  4. #include<stdio.h>  
  5.    
  6. usingnamespace std;  
  7.    
  8. void CheckError(int inErrNum)  
  9. {  
  10.     if(inErrNum < 0)  
  11.     {  
  12.         cout<<"Error:"<<RTPGetErrorString(inErrNum)<<endl;  
  13.         exit(-1);  
  14.     }  
  15. }  
  16.    
  17. int _tmain(int argc, _TCHAR* argv[])  
  18. {  
  19.     RTPSession sess;  
  20.    
  21.     return 0;  
  22. }  
在我们生成解决方案的时候我们会得到以下错误:
------ 已启动全部重新生成: 项目: RTPSender, 配置: Debug Win32 ------
正在删除项目“RTPSender”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
stdafx.cpp
正在编译...
RTPSender.cpp
正在编译资源清单...
正在链接...
RTPSender.obj : error LNK2019: 无法解析的外部符号"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl RTPGetErrorString(int)" (?RTPGetErrorString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z),该符号在函数"void __cdecl CheckError(int)" (?CheckError@@YAXH@Z) 中被引用
RTPSender.obj : error LNK2019: 无法解析的外部符号"public: virtual __thiscall RTPSession::~RTPSession(void)" (??1RTPSession@@UAE@XZ),该符号在函数_wmain 中被引用
RTPSender.obj : error LNK2019: 无法解析的外部符号"public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z),该符号在函数_wmain 中被引用
F:/Programming/AV_Programs/RTPSender/Debug/RTPSender.exe : fatal error LNK1120: 3 个无法解析的外部命令
生成日志保存在“file://f:/Programming/AV_Programs/RTPSender/RTPSender/Debug/BuildLog.htm”
RTPSender - 4 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
 
这是我们要加上 jrtplib.lib
但在我们再次生成解决方案时还会出现以下错误:
------ 已启动全部重新生成: 项目: RTPSender, 配置: Debug Win32 ------
正在删除项目“RTPSender”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
stdafx.cpp
正在编译...
RTPSender.cpp
正在编译资源清单...
正在链接...
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ),该符号在函数__unwindfunclet$??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z$0 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ),该符号在函数"public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ),该符号在函数"private: int __thiscall RTPSession::InternalCreate(class RTPSessionParams const &)" (?InternalCreate@RTPSession@@AAEHABVRTPSessionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ),该符号在函数"public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ),该符号在函数"public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号__imp__gethostname@8,该符号在函数"private: int __thiscall RTPSession::CreateCNAME(unsigned char *,unsigned int *,bool)" (?CreateCNAME@RTPSession@@AAEHPAEPAI_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号__imp__gethostname@8
jrtplib.lib(rtpsources.obj) : error LNK2019: 无法解析的外部符号__imp__ntohl@4,该符号在函数"public: unsigned int __thiscall RTCPSDESPacket::GetChunkSSRC(void)const " (?GetChunkSSRC@RTCPSDESPacket@@QBEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号__imp__ntohl@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohl@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__bind@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__htonl@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: 无法解析的外部符号__imp__htonl@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__htonl@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__htons@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: 无法解析的外部符号__imp__htons@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__htons@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__setsockopt@20,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__closesocket@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__socket@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__gethostbyaddr@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::GetLocalHostName(unsigned char *,unsigned int *)" (?GetLocalHostName@RTPUDPv4Transmitter@@UAEHPAEPAI@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__recv@16,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号___WSAFDIsSet@8,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__select@20,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__sendto@24,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::SendRTPData(void const *,unsigned int)" (?SendRTPData@RTPUDPv4Transmitter@@UAEHPBXI@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__ntohs@4,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohs@4
jrtplib.lib(rtcpcompoundpacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohs@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__recvfrom@24,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__ioctlsocket@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__accept@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__connect@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__inet_addr@4,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__listen@8,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__getsockname@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__WSAIoctl@36,该符号在函数"private: bool __thiscall RTPUDPv4Transmitter::GetLocalIPList_Interfaces(void)" (?GetLocalIPList_Interfaces@RTPUDPv4Transmitter@@AAE_NXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__gethostbyname@4,该符号在函数"private: void __thiscall RTPUDPv4Transmitter::GetLocalIPList_DNS(void)" (?GetLocalIPList_DNS@RTPUDPv4Transmitter@@AAEXXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__send@16,该符号在函数"private: void __thiscall RTPUDPv4Transmitter::AbortWaitInternal(void)" (?AbortWaitInternal@RTPUDPv4Transmitter@@AAEXXZ) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: virtual __thiscall JThread::~JThread(void)" (??1JThread@@UAE@XZ),该符号在函数__unwindfunclet$??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z$0 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JThread::JThread(void)" (??0JThread@@QAE@XZ),该符号在函数"public: __thiscall RTPPollThread::RTPPollThread(class RTPSession &,class RTCPScheduler &)" (??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JThread::Start(void)" (?Start@JThread@@QAEHXZ),该符号在函数"public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: bool __thiscall JThread::IsRunning(void)" (?IsRunning@JThread@@QAE_NXZ),该符号在函数"public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JThread::Kill(void)" (?Kill@JThread@@QAEHXZ),该符号在函数"public: void __thiscall RTPPollThread::Stop(void)" (?Stop@RTPPollThread@@QAEXXZ) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"protected: void __thiscall JThread::ThreadStarted(void)" (?ThreadStarted@JThread@@IAEXXZ),该符号在函数"private: virtual void * __thiscall RTPPollThread::Thread(void)" (?Thread@RTPPollThread@@EAEPAXXZ) 中被引用
F:/Programming/AV_Programs/RTPSender/Debug/RTPSender.exe : fatal error LNK1120: 35 个无法解析的外部命令
生成日志保存在“file://f:/Programming/AV_Programs/RTPSender/RTPSender/Debug/BuildLog.htm”
RTPSender - 55 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
 
这是我们要加上 ws2_32.lib 和 jthread.lib这两个库,这样我们就会成功了。
到这里我们jrtplib基本配置的差不多了,当然我们可能在用特定的函数是还需要一些特定的库。



关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
[cpp]  view plain copy print ?
  1. #include"stdafx.h"  
  2. #include"rtpsession.h"  
  3. #include<iostream>  
  4. #include<stdio.h>  
  5.    
  6. usingnamespace std;  
  7.    
  8. void CheckError(int inErrNum)  
  9. {  
  10.     if(inErrNum < 0)  
  11.     {  
  12.         cout<<"Error:"<<RTPGetErrorString(inErrNum)<<endl;  
  13.         exit(-1);  
  14.     }  
  15. }  
  16.    
  17. int _tmain(int argc, _TCHAR* argv[])  
  18. {  
  19.     RTPSession sess;  
  20.    
  21.     return 0;  
  22. }  
在我们生成解决方案的时候我们会得到以下错误:
------ 已启动全部重新生成: 项目: RTPSender, 配置: Debug Win32 ------
正在删除项目“RTPSender”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
stdafx.cpp
正在编译...
RTPSender.cpp
正在编译资源清单...
正在链接...
RTPSender.obj : error LNK2019: 无法解析的外部符号"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl RTPGetErrorString(int)" (?RTPGetErrorString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z),该符号在函数"void __cdecl CheckError(int)" (?CheckError@@YAXH@Z) 中被引用
RTPSender.obj : error LNK2019: 无法解析的外部符号"public: virtual __thiscall RTPSession::~RTPSession(void)" (??1RTPSession@@UAE@XZ),该符号在函数_wmain 中被引用
RTPSender.obj : error LNK2019: 无法解析的外部符号"public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z),该符号在函数_wmain 中被引用
F:/Programming/AV_Programs/RTPSender/Debug/RTPSender.exe : fatal error LNK1120: 3 个无法解析的外部命令
生成日志保存在“file://f:/Programming/AV_Programs/RTPSender/RTPSender/Debug/BuildLog.htm”
RTPSender - 4 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
 
这是我们要加上 jrtplib.lib
但在我们再次生成解决方案时还会出现以下错误:
------ 已启动全部重新生成: 项目: RTPSender, 配置: Debug Win32 ------
正在删除项目“RTPSender”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
stdafx.cpp
正在编译...
RTPSender.cpp
正在编译资源清单...
正在链接...
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ),该符号在函数__unwindfunclet$??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z$0 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ),该符号在函数"public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ),该符号在函数"private: int __thiscall RTPSession::InternalCreate(class RTPSessionParams const &)" (?InternalCreate@RTPSession@@AAEHABVRTPSessionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ),该符号在函数"public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ),该符号在函数"public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号__imp__gethostname@8,该符号在函数"private: int __thiscall RTPSession::CreateCNAME(unsigned char *,unsigned int *,bool)" (?CreateCNAME@RTPSession@@AAEHPAEPAI_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号__imp__gethostname@8
jrtplib.lib(rtpsources.obj) : error LNK2019: 无法解析的外部符号__imp__ntohl@4,该符号在函数"public: unsigned int __thiscall RTCPSDESPacket::GetChunkSSRC(void)const " (?GetChunkSSRC@RTCPSDESPacket@@QBEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号__imp__ntohl@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohl@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__bind@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__htonl@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: 无法解析的外部符号__imp__htonl@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__htonl@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__htons@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: 无法解析的外部符号__imp__htons@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__htons@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__setsockopt@20,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__closesocket@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__socket@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__gethostbyaddr@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::GetLocalHostName(unsigned char *,unsigned int *)" (?GetLocalHostName@RTPUDPv4Transmitter@@UAEHPAEPAI@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__recv@16,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号___WSAFDIsSet@8,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__select@20,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__sendto@24,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::SendRTPData(void const *,unsigned int)" (?SendRTPData@RTPUDPv4Transmitter@@UAEHPBXI@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__ntohs@4,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohs@4
jrtplib.lib(rtcpcompoundpacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohs@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__recvfrom@24,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__ioctlsocket@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__accept@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__connect@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__inet_addr@4,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__listen@8,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__getsockname@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__WSAIoctl@36,该符号在函数"private: bool __thiscall RTPUDPv4Transmitter::GetLocalIPList_Interfaces(void)" (?GetLocalIPList_Interfaces@RTPUDPv4Transmitter@@AAE_NXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__gethostbyname@4,该符号在函数"private: void __thiscall RTPUDPv4Transmitter::GetLocalIPList_DNS(void)" (?GetLocalIPList_DNS@RTPUDPv4Transmitter@@AAEXXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__send@16,该符号在函数"private: void __thiscall RTPUDPv4Transmitter::AbortWaitInternal(void)" (?AbortWaitInternal@RTPUDPv4Transmitter@@AAEXXZ) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: virtual __thiscall JThread::~JThread(void)" (??1JThread@@UAE@XZ),该符号在函数__unwindfunclet$??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z$0 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JThread::JThread(void)" (??0JThread@@QAE@XZ),该符号在函数"public: __thiscall RTPPollThread::RTPPollThread(class RTPSession &,class RTCPScheduler &)" (??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JThread::Start(void)" (?Start@JThread@@QAEHXZ),该符号在函数"public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: bool __thiscall JThread::IsRunning(void)" (?IsRunning@JThread@@QAE_NXZ),该符号在函数"public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JThread::Kill(void)" (?Kill@JThread@@QAEHXZ),该符号在函数"public: void __thiscall RTPPollThread::Stop(void)" (?Stop@RTPPollThread@@QAEXXZ) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"protected: void __thiscall JThread::ThreadStarted(void)" (?ThreadStarted@JThread@@IAEXXZ),该符号在函数"private: virtual void * __thiscall RTPPollThread::Thread(void)" (?Thread@RTPPollThread@@EAEPAXXZ) 中被引用
F:/Programming/AV_Programs/RTPSender/Debug/RTPSender.exe : fatal error LNK1120: 35 个无法解析的外部命令
生成日志保存在“file://f:/Programming/AV_Programs/RTPSender/RTPSender/Debug/BuildLog.htm”
RTPSender - 55 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
 
这是我们要加上 ws2_32.lib 和 jthread.lib这两个库,这样我们就会成功了。
到这里我们jrtplib基本配置的差不多了,当然我们可能在用特定的函数是还需要一些特定的库。


关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:



关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:


关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:

关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:



关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
[cpp]  view plain copy print ?
  1. #include"stdafx.h"  
  2. #include"rtpsession.h"  
  3. #include<iostream>  
  4. #include<stdio.h>  
  5.    
  6. usingnamespace std;  
  7.    
  8. void CheckError(int inErrNum)  
  9. {  
  10.     if(inErrNum < 0)  
  11.     {  
  12.         cout<<"Error:"<<RTPGetErrorString(inErrNum)<<endl;  
  13.         exit(-1);  
  14.     }  
  15. }  
  16.    
  17. int _tmain(int argc, _TCHAR* argv[])  
  18. {  
  19.     RTPSession sess;  
  20.    
  21.     return 0;  
  22. }  
在我们生成解决方案的时候我们会得到以下错误:
------ 已启动全部重新生成: 项目: RTPSender, 配置: Debug Win32 ------
正在删除项目“RTPSender”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
stdafx.cpp
正在编译...
RTPSender.cpp
正在编译资源清单...
正在链接...
RTPSender.obj : error LNK2019: 无法解析的外部符号"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl RTPGetErrorString(int)" (?RTPGetErrorString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z),该符号在函数"void __cdecl CheckError(int)" (?CheckError@@YAXH@Z) 中被引用
RTPSender.obj : error LNK2019: 无法解析的外部符号"public: virtual __thiscall RTPSession::~RTPSession(void)" (??1RTPSession@@UAE@XZ),该符号在函数_wmain 中被引用
RTPSender.obj : error LNK2019: 无法解析的外部符号"public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z),该符号在函数_wmain 中被引用
F:/Programming/AV_Programs/RTPSender/Debug/RTPSender.exe : fatal error LNK1120: 3 个无法解析的外部命令
生成日志保存在“file://f:/Programming/AV_Programs/RTPSender/RTPSender/Debug/BuildLog.htm”
RTPSender - 4 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
 
这是我们要加上 jrtplib.lib
但在我们再次生成解决方案时还会出现以下错误:
------ 已启动全部重新生成: 项目: RTPSender, 配置: Debug Win32 ------
正在删除项目“RTPSender”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
stdafx.cpp
正在编译...
RTPSender.cpp
正在编译资源清单...
正在链接...
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ),该符号在函数__unwindfunclet$??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z$0 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ),该符号在函数"public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ),该符号在函数"private: int __thiscall RTPSession::InternalCreate(class RTPSessionParams const &)" (?InternalCreate@RTPSession@@AAEHABVRTPSessionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ),该符号在函数"public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ),该符号在函数"public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号__imp__gethostname@8,该符号在函数"private: int __thiscall RTPSession::CreateCNAME(unsigned char *,unsigned int *,bool)" (?CreateCNAME@RTPSession@@AAEHPAEPAI_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号__imp__gethostname@8
jrtplib.lib(rtpsources.obj) : error LNK2019: 无法解析的外部符号__imp__ntohl@4,该符号在函数"public: unsigned int __thiscall RTCPSDESPacket::GetChunkSSRC(void)const " (?GetChunkSSRC@RTCPSDESPacket@@QBEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号__imp__ntohl@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohl@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__bind@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__htonl@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: 无法解析的外部符号__imp__htonl@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__htonl@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__htons@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: 无法解析的外部符号__imp__htons@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__htons@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__setsockopt@20,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__closesocket@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__socket@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__gethostbyaddr@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::GetLocalHostName(unsigned char *,unsigned int *)" (?GetLocalHostName@RTPUDPv4Transmitter@@UAEHPAEPAI@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__recv@16,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号___WSAFDIsSet@8,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__select@20,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__sendto@24,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::SendRTPData(void const *,unsigned int)" (?SendRTPData@RTPUDPv4Transmitter@@UAEHPBXI@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__ntohs@4,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohs@4
jrtplib.lib(rtcpcompoundpacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohs@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__recvfrom@24,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__ioctlsocket@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__accept@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__connect@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__inet_addr@4,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__listen@8,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__getsockname@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__WSAIoctl@36,该符号在函数"private: bool __thiscall RTPUDPv4Transmitter::GetLocalIPList_Interfaces(void)" (?GetLocalIPList_Interfaces@RTPUDPv4Transmitter@@AAE_NXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__gethostbyname@4,该符号在函数"private: void __thiscall RTPUDPv4Transmitter::GetLocalIPList_DNS(void)" (?GetLocalIPList_DNS@RTPUDPv4Transmitter@@AAEXXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__send@16,该符号在函数"private: void __thiscall RTPUDPv4Transmitter::AbortWaitInternal(void)" (?AbortWaitInternal@RTPUDPv4Transmitter@@AAEXXZ) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: virtual __thiscall JThread::~JThread(void)" (??1JThread@@UAE@XZ),该符号在函数__unwindfunclet$??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z$0 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JThread::JThread(void)" (??0JThread@@QAE@XZ),该符号在函数"public: __thiscall RTPPollThread::RTPPollThread(class RTPSession &,class RTCPScheduler &)" (??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JThread::Start(void)" (?Start@JThread@@QAEHXZ),该符号在函数"public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: bool __thiscall JThread::IsRunning(void)" (?IsRunning@JThread@@QAE_NXZ),该符号在函数"public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JThread::Kill(void)" (?Kill@JThread@@QAEHXZ),该符号在函数"public: void __thiscall RTPPollThread::Stop(void)" (?Stop@RTPPollThread@@QAEXXZ) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"protected: void __thiscall JThread::ThreadStarted(void)" (?ThreadStarted@JThread@@IAEXXZ),该符号在函数"private: virtual void * __thiscall RTPPollThread::Thread(void)" (?Thread@RTPPollThread@@EAEPAXXZ) 中被引用
F:/Programming/AV_Programs/RTPSender/Debug/RTPSender.exe : fatal error LNK1120: 35 个无法解析的外部命令
生成日志保存在“file://f:/Programming/AV_Programs/RTPSender/RTPSender/Debug/BuildLog.htm”
RTPSender - 55 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
 
这是我们要加上 ws2_32.lib 和 jthread.lib这两个库,这样我们就会成功了。
到这里我们jrtplib基本配置的差不多了,当然我们可能在用特定的函数是还需要一些特定的库。


关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:



关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:


关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
[cpp]  view plain copy print ?
  1. #include"stdafx.h"  
  2. #include"rtpsession.h"  
  3. #include<iostream>  
  4. #include<stdio.h>  
  5.    
  6. usingnamespace std;  
  7.    
  8. void CheckError(int inErrNum)  
  9. {  
  10.     if(inErrNum < 0)  
  11.     {  
  12.         cout<<"Error:"<<RTPGetErrorString(inErrNum)<<endl;  
  13.         exit(-1);  
  14.     }  
  15. }  
  16.    
  17. int _tmain(int argc, _TCHAR* argv[])  
  18. {  
  19.     RTPSession sess;  
  20.    
  21.     return 0;  
  22. }  
在我们生成解决方案的时候我们会得到以下错误:
------ 已启动全部重新生成: 项目: RTPSender, 配置: Debug Win32 ------
正在删除项目“RTPSender”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
stdafx.cpp
正在编译...
RTPSender.cpp
正在编译资源清单...
正在链接...
RTPSender.obj : error LNK2019: 无法解析的外部符号"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl RTPGetErrorString(int)" (?RTPGetErrorString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z),该符号在函数"void __cdecl CheckError(int)" (?CheckError@@YAXH@Z) 中被引用
RTPSender.obj : error LNK2019: 无法解析的外部符号"public: virtual __thiscall RTPSession::~RTPSession(void)" (??1RTPSession@@UAE@XZ),该符号在函数_wmain 中被引用
RTPSender.obj : error LNK2019: 无法解析的外部符号"public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z),该符号在函数_wmain 中被引用
F:/Programming/AV_Programs/RTPSender/Debug/RTPSender.exe : fatal error LNK1120: 3 个无法解析的外部命令
生成日志保存在“file://f:/Programming/AV_Programs/RTPSender/RTPSender/Debug/BuildLog.htm”
RTPSender - 4 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
 
这是我们要加上 jrtplib.lib
但在我们再次生成解决方案时还会出现以下错误:
------ 已启动全部重新生成: 项目: RTPSender, 配置: Debug Win32 ------
正在删除项目“RTPSender”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
stdafx.cpp
正在编译...
RTPSender.cpp
正在编译资源清单...
正在链接...
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ),该符号在函数__unwindfunclet$??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z$0 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ),该符号在函数"public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ),该符号在函数"private: int __thiscall RTPSession::InternalCreate(class RTPSessionParams const &)" (?InternalCreate@RTPSession@@AAEHABVRTPSessionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ),该符号在函数"public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ),该符号在函数"public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号__imp__gethostname@8,该符号在函数"private: int __thiscall RTPSession::CreateCNAME(unsigned char *,unsigned int *,bool)" (?CreateCNAME@RTPSession@@AAEHPAEPAI_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号__imp__gethostname@8
jrtplib.lib(rtpsources.obj) : error LNK2019: 无法解析的外部符号__imp__ntohl@4,该符号在函数"public: unsigned int __thiscall RTCPSDESPacket::GetChunkSSRC(void)const " (?GetChunkSSRC@RTCPSDESPacket@@QBEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号__imp__ntohl@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohl@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__bind@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__htonl@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: 无法解析的外部符号__imp__htonl@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__htonl@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__htons@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: 无法解析的外部符号__imp__htons@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__htons@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__setsockopt@20,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__closesocket@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__socket@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__gethostbyaddr@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::GetLocalHostName(unsigned char *,unsigned int *)" (?GetLocalHostName@RTPUDPv4Transmitter@@UAEHPAEPAI@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__recv@16,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号___WSAFDIsSet@8,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__select@20,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__sendto@24,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::SendRTPData(void const *,unsigned int)" (?SendRTPData@RTPUDPv4Transmitter@@UAEHPBXI@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__ntohs@4,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohs@4
jrtplib.lib(rtcpcompoundpacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohs@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__recvfrom@24,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__ioctlsocket@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__accept@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__connect@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__inet_addr@4,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__listen@8,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__getsockname@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__WSAIoctl@36,该符号在函数"private: bool __thiscall RTPUDPv4Transmitter::GetLocalIPList_Interfaces(void)" (?GetLocalIPList_Interfaces@RTPUDPv4Transmitter@@AAE_NXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__gethostbyname@4,该符号在函数"private: void __thiscall RTPUDPv4Transmitter::GetLocalIPList_DNS(void)" (?GetLocalIPList_DNS@RTPUDPv4Transmitter@@AAEXXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__send@16,该符号在函数"private: void __thiscall RTPUDPv4Transmitter::AbortWaitInternal(void)" (?AbortWaitInternal@RTPUDPv4Transmitter@@AAEXXZ) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: virtual __thiscall JThread::~JThread(void)" (??1JThread@@UAE@XZ),该符号在函数__unwindfunclet$??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z$0 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JThread::JThread(void)" (??0JThread@@QAE@XZ),该符号在函数"public: __thiscall RTPPollThread::RTPPollThread(class RTPSession &,class RTCPScheduler &)" (??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JThread::Start(void)" (?Start@JThread@@QAEHXZ),该符号在函数"public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: bool __thiscall JThread::IsRunning(void)" (?IsRunning@JThread@@QAE_NXZ),该符号在函数"public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JThread::Kill(void)" (?Kill@JThread@@QAEHXZ),该符号在函数"public: void __thiscall RTPPollThread::Stop(void)" (?Stop@RTPPollThread@@QAEXXZ) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"protected: void __thiscall JThread::ThreadStarted(void)" (?ThreadStarted@JThread@@IAEXXZ),该符号在函数"private: virtual void * __thiscall RTPPollThread::Thread(void)" (?Thread@RTPPollThread@@EAEPAXXZ) 中被引用
F:/Programming/AV_Programs/RTPSender/Debug/RTPSender.exe : fatal error LNK1120: 35 个无法解析的外部命令
生成日志保存在“file://f:/Programming/AV_Programs/RTPSender/RTPSender/Debug/BuildLog.htm”
RTPSender - 55 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
 
这是我们要加上 ws2_32.lib 和 jthread.lib这两个库,这样我们就会成功了。
到这里我们jrtplib基本配置的差不多了,当然我们可能在用特定的函数是还需要一些特定的库。
关于开源的RTP——jrtplib的使用
 
首先,我向我们应该先到下面的链接网站上下载jrtplib和jthread这两个包
http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib
 
然后,我们要对这两个包进行编译,首先是编译jthread这个包里面的工程,编译成功后(我编译了,没有问题),现在我们可以编译jrtplib了。在我们编译这个工程之前,我们要将先前编译成功后的jthread后的得到的jthread.lib和jthread目录../src下的.h文件加到jrtplib这个工程中再编译,不然会出现找不到xxx.h的错误和非法的引用等的编译或连接错误。
 
好了,当我们成功了以上的步骤后,就可以向配置directshow的baseclass那样来配置我们的编译器。
 
下面是vs 2005下一个简单的控制台工程的一部分:
[cpp]  view plain copy print ?
  1. #include"stdafx.h"  
  2. #include"rtpsession.h"  
  3. #include<iostream>  
  4. #include<stdio.h>  
  5.    
  6. usingnamespace std;  
  7.    
  8. void CheckError(int inErrNum)  
  9. {  
  10.     if(inErrNum < 0)  
  11.     {  
  12.         cout<<"Error:"<<RTPGetErrorString(inErrNum)<<endl;  
  13.         exit(-1);  
  14.     }  
  15. }  
  16.    
  17. int _tmain(int argc, _TCHAR* argv[])  
  18. {  
  19.     RTPSession sess;  
  20.    
  21.     return 0;  
  22. }  
在我们生成解决方案的时候我们会得到以下错误:
------ 已启动全部重新生成: 项目: RTPSender, 配置: Debug Win32 ------
正在删除项目“RTPSender”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
stdafx.cpp
正在编译...
RTPSender.cpp
正在编译资源清单...
正在链接...
RTPSender.obj : error LNK2019: 无法解析的外部符号"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl RTPGetErrorString(int)" (?RTPGetErrorString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z),该符号在函数"void __cdecl CheckError(int)" (?CheckError@@YAXH@Z) 中被引用
RTPSender.obj : error LNK2019: 无法解析的外部符号"public: virtual __thiscall RTPSession::~RTPSession(void)" (??1RTPSession@@UAE@XZ),该符号在函数_wmain 中被引用
RTPSender.obj : error LNK2019: 无法解析的外部符号"public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z),该符号在函数_wmain 中被引用
F:/Programming/AV_Programs/RTPSender/Debug/RTPSender.exe : fatal error LNK1120: 3 个无法解析的外部命令
生成日志保存在“file://f:/Programming/AV_Programs/RTPSender/RTPSender/Debug/BuildLog.htm”
RTPSender - 4 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
 
这是我们要加上 jrtplib.lib
但在我们再次生成解决方案时还会出现以下错误:
------ 已启动全部重新生成: 项目: RTPSender, 配置: Debug Win32 ------
正在删除项目“RTPSender”(配置“Debug|Win32”)的中间文件和输出文件
正在编译...
stdafx.cpp
正在编译...
RTPSender.cpp
正在编译资源清单...
正在链接...
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ),该符号在函数__unwindfunclet$??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z$0 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::~JMutex(void)" (??1JMutex@@QAE@XZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ),该符号在函数"public: __thiscall RTPSession::RTPSession(class RTPMemoryManager *)" (??0RTPSession@@QAE@PAVRTPMemoryManager@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: __thiscall JMutex::JMutex(void)" (??0JMutex@@QAE@XZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ),该符号在函数"private: int __thiscall RTPSession::InternalCreate(class RTPSessionParams const &)" (?InternalCreate@RTPSession@@AAEHABVRTPSessionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Init(void)" (?Init@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ),该符号在函数"public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Unlock(void)" (?Unlock@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ),该符号在函数"public: unsigned int __thiscall RTPSession::GetLocalSSRC(void)" (?GetLocalSSRC@RTPSession@@QAEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ)
jrtplib.lib(rtppollthread.obj) : error LNK2001: 无法解析的外部符号"public: int __thiscall JMutex::Lock(void)" (?Lock@JMutex@@QAEHXZ)
jrtplib.lib(rtpsession.obj) : error LNK2019: 无法解析的外部符号__imp__gethostname@8,该符号在函数"private: int __thiscall RTPSession::CreateCNAME(unsigned char *,unsigned int *,bool)" (?CreateCNAME@RTPSession@@AAEHPAEPAI_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号__imp__gethostname@8
jrtplib.lib(rtpsources.obj) : error LNK2019: 无法解析的外部符号__imp__ntohl@4,该符号在函数"public: unsigned int __thiscall RTCPSDESPacket::GetChunkSSRC(void)const " (?GetChunkSSRC@RTCPSDESPacket@@QBEIXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2001: 无法解析的外部符号__imp__ntohl@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohl@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__bind@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__htonl@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: 无法解析的外部符号__imp__htonl@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__htonl@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__htons@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtcpcompoundpacketbuilder.obj) : error LNK2001: 无法解析的外部符号__imp__htons@4
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__htons@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__setsockopt@20,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__closesocket@4,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__socket@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::Create(unsigned int,class RTPTransmissionParams const *)" (?Create@RTPUDPv4Transmitter@@UAEHIPBVRTPTransmissionParams@@@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__gethostbyaddr@12,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::GetLocalHostName(unsigned char *,unsigned int *)" (?GetLocalHostName@RTPUDPv4Transmitter@@UAEHPAEPAI@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__recv@16,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号___WSAFDIsSet@8,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__select@20,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::WaitForIncomingData(class RTPTime const &,bool *)" (?WaitForIncomingData@RTPUDPv4Transmitter@@UAEHABVRTPTime@@PA_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__sendto@24,该符号在函数"public: virtual int __thiscall RTPUDPv4Transmitter::SendRTPData(void const *,unsigned int)" (?SendRTPData@RTPUDPv4Transmitter@@UAEHPBXI@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__ntohs@4,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtppacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohs@4
jrtplib.lib(rtcpcompoundpacket.obj) : error LNK2001: 无法解析的外部符号__imp__ntohs@4
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__recvfrom@24,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__ioctlsocket@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::PollSocket(bool)" (?PollSocket@RTPUDPv4Transmitter@@AAEH_N@Z) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__accept@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__connect@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__inet_addr@4,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__listen@8,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__getsockname@12,该符号在函数"private: int __thiscall RTPUDPv4Transmitter::CreateAbortDescriptors(void)" (?CreateAbortDescriptors@RTPUDPv4Transmitter@@AAEHXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__WSAIoctl@36,该符号在函数"private: bool __thiscall RTPUDPv4Transmitter::GetLocalIPList_Interfaces(void)" (?GetLocalIPList_Interfaces@RTPUDPv4Transmitter@@AAE_NXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__gethostbyname@4,该符号在函数"private: void __thiscall RTPUDPv4Transmitter::GetLocalIPList_DNS(void)" (?GetLocalIPList_DNS@RTPUDPv4Transmitter@@AAEXXZ) 中被引用
jrtplib.lib(rtpudpv4transmitter.obj) : error LNK2019: 无法解析的外部符号__imp__send@16,该符号在函数"private: void __thiscall RTPUDPv4Transmitter::AbortWaitInternal(void)" (?AbortWaitInternal@RTPUDPv4Transmitter@@AAEXXZ) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: virtual __thiscall JThread::~JThread(void)" (??1JThread@@UAE@XZ),该符号在函数__unwindfunclet$??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z$0 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: __thiscall JThread::JThread(void)" (??0JThread@@QAE@XZ),该符号在函数"public: __thiscall RTPPollThread::RTPPollThread(class RTPSession &,class RTCPScheduler &)" (??0RTPPollThread@@QAE@AAVRTPSession@@AAVRTCPScheduler@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JThread::Start(void)" (?Start@JThread@@QAEHXZ),该符号在函数"public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: bool __thiscall JThread::IsRunning(void)" (?IsRunning@JThread@@QAE_NXZ),该符号在函数"public: int __thiscall RTPPollThread::Start(class RTPTransmitter *)" (?Start@RTPPollThread@@QAEHPAVRTPTransmitter@@@Z) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"public: int __thiscall JThread::Kill(void)" (?Kill@JThread@@QAEHXZ),该符号在函数"public: void __thiscall RTPPollThread::Stop(void)" (?Stop@RTPPollThread@@QAEXXZ) 中被引用
jrtplib.lib(rtppollthread.obj) : error LNK2019: 无法解析的外部符号"protected: void __thiscall JThread::ThreadStarted(void)" (?ThreadStarted@JThread@@IAEXXZ),该符号在函数"private: virtual void * __thiscall RTPPollThread::Thread(void)" (?Thread@RTPPollThread@@EAEPAXXZ) 中被引用
F:/Programming/AV_Programs/RTPSender/Debug/RTPSender.exe : fatal error LNK1120: 35 个无法解析的外部命令
生成日志保存在“file://f:/Programming/AV_Programs/RTPSender/RTPSender/Debug/BuildLog.htm”
RTPSender - 55 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
 
这是我们要加上 ws2_32.lib 和 jthread.lib这两个库,这样我们就会成功了。
到这里我们jrtplib基本配置的差不多了,当然我们可能在用特定的函数是还需要一些特定的库。
http://www.hkea.cn/news/581208/

相关文章:

  • 做网站的费用 优帮云百度广告代运营
  • wordpress儿童卡通主题兰州网站seo服务
  • 8网站建设做网站sem优化师是什么意思
  • 设计师个人网站怎么做百度优化培训
  • 广东海外建设监理有限公司官方网站2345网址导航是病毒吗
  • 深圳网站制作培训宁波网络营销公司
  • 网站建设方案书 模板长清区seo网络优化软件
  • 简述网站的推广策略产品设计
  • 商贸有限公司网站建设此网站服务器不在国内维护
  • 常州个人做网站制作小程序的软件
  • 郑州做网站公司dz论坛如何seo
  • 十堰商城网站建设网络营销seo优化
  • 小欢喜林磊儿什么网站做家教福州seo推广外包
  • 许昌网站开发博客营销
  • 做网站用jquery爱站网关键词挖掘
  • wordpress手动裁剪seo营销推广服务公司
  • 英文网站建设网站海南网站制作公司
  • 网页设计与网站建设主要内容软文营销的特点
  • 一起做网站17广州最新小组排名
  • 最专业的网站设计公司有哪些论坛企业推广
  • 单页网站怎么做外链个人网页
  • 宁波城乡住房建设局网站有效的网络推广
  • 网站建设 深圳销售crm客户管理系统
  • 高端网站开发设计站长之家字体
  • 免费网站建站工具购买域名的网站
  • 淘宝联盟怎么做网站百度网站提交
  • 前端做用vue做后台多还是做网站多青岛网站快速排名优化
  • 岳阳网站开发公司海淀区seo多少钱
  • 2017年做网站维护总结百度搜索软件
  • 南京网站建设公司点击器原理