嵌入SDK

1.1 下载SDK

下载SDK,其中包括

starrtccoreDll_release.lib
CCallbackResult.h
CChatManager.h
CChatroomManager.h
cchatroomtype.h
CCodecManager.h
CGroupInfo.h
CGroupManager.h
ChatroomInfo.h
CIMMessage.h
CLiveManager.h
CLogin.h
CMeetingManager.h
CropType.h
CServiceParam.h
CSrcManager.h
CSuperRoomManager.h
CUserManager.h
CUtil.h
CVdnManager.h
CVoipP2PManager.h
IChatManagerListener.h
IChatroomGetListListener.h
IChatroomManagerListener.h
IGroupGetListListener.h
IGroupListener.h
IGroupManagerListener.h
ILiveInterface.h
ILiveManagerListener.h
ILoginListener.h
ILoginManagerListener.h
IMeetingManagerListener.h
IRecvDataListener.h
ISrcListener.h
ISrcManagerListener.h
IStarIMC2CListener.h
IStarIMChatroomListener.h
IStarVoipListener.h
IStarVoipP2PListener.h
ISuperRoomManagerListener.h
IVdnListener.h
IVdnManagerListener.h
IVoipManagerListener.h
IVoipP2PManagerListener.h
StarIMMessageBuilder.h
StarRtcCore.h
XHChatManager.h
XHChatroomManager.h
XHGroupManager.h
XHLiveManager.h
XHMeetingManager.h
XHSuperRoomManager.h
XHVoipManager.h
XHVoipP2PManager.h


1.2 导入SDK文件

使用visual studio 2017 创建一个新工程,将下载到的库文件复制到工程目录下。

依赖文件配置

头文件:

“配置属性页”->”c/c++”->”常规”->”附加包含目录”,添加下载库文件中的third目录下对应的头文件目录,

..\..\third\sqlite;..\..\third\json\include;..\..\third\opencv\build32\include;..\..\third\starrtccoredll\include

lib文件:

“配置属性页”->”链接器”->”常规”->”附加库目录”,添加下载库文件中的third目录下对应的lib文件目录,

..\..\third\opencv\build32\lib\Release;..\..\third\opencv\build32\bin\Release;..\..\third\sqlite;..\..\third\starrtccoredll\lib;..\..\third\json\lib

“配置属性页”->”链接器”->”输入”->”附加依赖项”

starrtccoreDll_release.lib;json_release.lib;opencv_core341.lib;opencv_highgui341.lib;opencv_imgcodecs341.lib;opencv_videoio341.lib;sqlite3.lib

具体配置可参考starrtcdemo.sln解决方案

请使用release模式进行编译。