LibRTMP包含并安装

时间:2014-05-10 10:58:33

标签: c++ visual-studio-2012

我有一个C ++的visual studio解决方案。

https://github.com/jp9000/OBS/blob/master/librtmp/librtmp.vcxproj

我希望得到一些有关它设置的指导。

首先,我使用的是Visual Studio 2012.我在VS2012中打开了项目,并将工具集更改为v11.0并成功构建了解决方案。所以它在VS2012中用v11.0构建得很好。检查。

因此,有一个lib文件或项目文件。

我有一个我创建的当前应用程序。在此解决方案中,我再次添加了Rtmp项目,并将工具集更改为v11.0。

将项目添加到解决方案中。 1)将librtmp项目添加到解决方案中。 2)librtmp已添加到框架和引用中。 3)让我的主项目依赖于librtmp项目。 4)添加#include" rtmp.h"我的代码。

或者添加lib文件。 1)添加到Additional Include目录。 (../../OBS-master/librtmp) 2)添加到链接器 - >输入 - >其他库目录。 (../../OBS-master/librtmp/DEBUG)即lib文件所在的位置。 3)将librtmp.lib添加到链接器下的附加依赖 - >输入 4)添加#include" rtmp.h"我的代码。

一切都很好。但是,当我尝试实例化RTMP对象时。

RTMP *r;
char uri[]="rtmp://localhost:1935/live/desktop";
r= RTMP_Alloc();

当我现在构建时,使用包含AND来自rtmp的函数调用,我会收到许多错误,包括LNK2120和LNK2005。错误列表附有帮助。

有关于此的任何想法吗?如果您能够回忆起您在本图书馆遇到的任何问题,或者您可以提供我可以尝试解决此问题的策略,我将非常感激吗?

或者有这个。但这不只是安装应用程序吗?它会让我把它包含在我的代码中吗?

来自网站页面的信息。 http://rtmpdump.mplayerhq.hu/

As of 2.2 the main protocol code is now available in its own library, librtmp. This library is licensed under LGPL so it may be used freely in other applications. As of 2.3 the library may also be built as a shared library, not just a static library

此致

丹尼尔

错误

错误118错误LNK1120:14个未解析的外部C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ Debug \ VisionBase.exe VisionBase 错误89错误LNK2005:" void __cdecl terminate(void)" (?终止@@ YAXXZ)已经在MSVCRTD.lib(MSVCR110D.dll)中定义了C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(hooks.obj)VisionBase 错误85错误LNK2005:___crtSetUnhandledExceptionFilter已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(winapisupp.obj)VisionBase 错误86错误LNK2005:已在MSVCRTD.lib中定义___crtTerminateProcess(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(winapisupp.obj)VisionBase 错误87错误LNK2005:已在MSVCRTD.lib中定义___crtUnhandledException(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(winapisupp.obj)VisionBase 错误99错误LNK2005:___ iob_func已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(_file.obj)VisionBase 错误97错误LNK2005:___set_app_type已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(errmode.obj)VisionBase 错误94错误LNK2005:___ xc_a已在MSVCRTD.lib中定义(cinitexe.obj)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(crt0init.obj)VisionBase 错误95错误LNK2005:___ xc_z已在MSVCRTD.lib中定义(cinitexe.obj)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(crt0init.obj)VisionBase 错误92错误LNK2005:___xi_a已在MSVCRTD.lib中定义(cinitexe.obj)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(crt0init.obj)VisionBase 错误93错误LNK2005:___xi_z已在MSVCRTD.lib中定义(cinitexe.obj)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(crt0init.obj)VisionBase 错误78错误LNK2005:__amsg_exit已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(crt0dat.obj)VisionBase 错误74错误LNK2005:__calloc_dbg已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(dbgheap.obj)VisionBase 错误79错误LNK2005:已在MSVCRTD.lib中定义__cexit(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(crt0dat.obj)VisionBase 错误75错误LNK2005:__configthreadlocale已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(wsetloca.obj)VisionBase 错误77错误LNK2005:__crt_debugger_hook已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(dbghook.obj)VisionBase 错误96错误LNK2005:__CrtDbgReportW已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(dbgrptw.obj)VisionBase 错误73错误LNK2005:__CrtSetCheckCount已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(dbgheap.obj)VisionBase 错误80错误LNK2005:__ exit已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(crt0dat.obj)VisionBase 错误81错误LNK2005:__ initit_e已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(crt0dat.obj)VisionBase 错误90错误LNK2005:__invalid_parameter已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(invarg.obj)VisionBase 错误91错误LNK2005:已在MSVCRTD.lib(MSVCR110D.dll)中定义了__invoke_watson C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(invarg.obj)VisionBase 错误83错误LNK2005:__lock已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(mlock.obj)VisionBase 错误100错误LNK2005:__lock_file已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(_file.obj)VisionBase 错误84错误LNK2005:__unlock已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(mlock.obj)VisionBase 错误101错误LNK2005:__ unlock_file已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(_file.obj)VisionBase 错误88错误LNK2005:__XcptFilter已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(winxfltr.obj)VisionBase 错误82错误LNK2005:_exit已在MSVCRTD.lib中定义(MSVCR110D.dll)C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(crt0dat.obj)VisionBase 错误98错误LNK2005:_fflush已在MSVCRTD.lib(MSVCR110D.dll)中定义C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(fflush.obj)VisionBase 错误76错误LNK2005:_sprintf已在MSVCRTD.lib(MSVCR110D.dll)中定义C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ LIBCMTD.lib(sprintf.obj)VisionBase 错误104错误LNK2019:未解析的外部符号__imp__bind @ 12在函数_RTMP_Connect0中引用C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase 错误105错误LNK2019:未解析的外部符号__imp__closesocket @ 4在函数_RTMPSockBuf_Close中引用C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase 错误106错误LNK2019:未解析的外部符号__imp__connect @ 12在函数_RTMP_Connect0中引用C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase 错误114错误LNK2019:未解析的外部符号__imp__gethostbyname @ 4在函数_add_addr_info中引用C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase 错误107错误LNK2019:函数_HandShake C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase中引用了未解析的外部符号__imp__htonl @ 4 错误108错误LNK2019:函数_add_addr_info中引用的未解析的外部符号__imp__htons @ 4 C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase 错误109错误LNK2019:未解析的外部符号__imp__inet_addr @ 4在函数_add_addr_info中引用C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase 错误110错误LNK2019:函数_HandShake C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase中引用了未解析的外部符号__imp__ntohl @ 4 错误111错误LNK2019:函数_RTMPSockBuf_Fill中引用了未解析的外部符号__imp__recv @ 16 C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase 错误112错误LNK2019:未解析的外部符号__imp__send @ 16在函数_RTMPSockBuf_Send中引用C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase 错误113错误LNK2019:未解析的外部符号__imp__setsockopt @ 20在函数_RTMP_Connect0中引用C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase 错误116错误LNK2019:未解析的外部符号__imp__WSAGetLastError @ 0在函数_RTMP_Connect0中引用C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase 错误115错误LNK2019:函数_RTMP_Read中引用了未解析的外部符号__imp__WSASetLastError @ 4 C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase 错误117错误LNK2019:函数_RTMP_Connect0中引用了未解析的外部符号__imp__WSASocketW @ 24 C:\ Users \ Daniel \ Desktop \ VisionBase \ VisionBase \ VisionBase \ VisionBase \ librtmp.lib(rtmp.obj)VisionBase

0 个答案:

没有答案