社区
多媒体/流媒体开发
帖子详情
livemedia
wuxwe
2008-04-18 09:41:14
我在网上下了一个livemedia库并且已经编译成功,但是不知道vc6.0中如何使用该库。
...全文
457
14
打赏
收藏
livemedia
我在网上下了一个livemedia库并且已经编译成功,但是不知道vc6.0中如何使用该库。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
14 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
flyskyluck521
2010-04-16
打赏
举报
回复
运行如下编译脚本
call "D:\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
cd liveMedia
nmake /B -f liveMedia.mak
cd ../groupsock
nmake /B -f groupsock.mak
cd ../UsageEnvironment
nmake /B -f UsageEnvironment.mak
cd ../BasicUsageEnvironment
nmake /B -f BasicUsageEnvironment.mak
cd ../testProgs
nmake /B -f testProgs.mak
cd ../mediaServer
nmake /B -f mediaServer.mak
flyskyluck521
2010-04-16
打赏
举报
回复
1.修改 win32config 文件中 “TOOLS32 = ..."指向vs2008本机工作目录.
我的为 "TOOLS32 = C:\Program Files\Microsoft Visual Studio 9.0\VC"
2. 修改 win32config 中"LINK_OPTS_0 = $(linkdebug) msvicrt.lib" 为"LINK_OPTS_0 = $(linkdebug) msvcrt.lib",
否则会报VS2008 找不到 msvicrt.lib .
3.运行 genWindowsMakefiles.cmd ,生成 *.mak.
4. 修改 groupsock/Makefile.head. 由 "INCLUDES = -Iinclude -I../UsageEnvironment/include" 改为 "INCLUDES = -Iinclude -I../UsageEnvironment/include -DNO_STRSTREAM".
5. 在工程目录下创建一格.bat文件,将下面代码拷入.call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"cd liveMedia
nmake /B -f liveMedia.mak
cd ../groupsock
nmake /B -f groupsock.mak
cd ../UsageEnvironment
nmake /B -f UsageEnvironment.mak
cd ../BasicUsageEnvironment
nmake /B -f BasicUsageEnvironment.mak
cd ../testProgs
nmake /B -f testProgs.mak
cd ../mediaServer
nmake /B -f mediaServer.mak7.运行这个bat 文件 Done :)
因为没有解决方案 为调试运行 可以如下操作:
1. 注释掉 win32config 中 "NODEBUG=1"一行.
2. File->Open->Project/Solution
装载 exe 文件调试.
3. Debug->Step Over.
lignting
2010-02-05
打赏
举报
回复
9楼的问题解决没啊?怎么解决的?
msgsnd
2008-04-24
打赏
举报
回复
加上-V
wuxwe
2008-04-24
打赏
举报
回复
该怎么把lib加进去呢?
project-> add to project -> file 中将库加进去,结果错误的结果更多。
还有从网上得到的另一中方法是:在TOOLS->OPTIONS->Directories->Library files,加入你的LIB文件所在的目录,然后在Project->setting->object->Object/Library Modules中加入你的LIB文件,如you.lib
结果也不行。
你有何高招啊?
SmallBigCat
2008-04-24
打赏
举报
回复
把livemedia编译出的lib link进去
wuxwe
2008-04-24
打赏
举报
回复
我连接的时候出现了这样的错误,不知道是出现了什么原因? 该怎么解决?
openRTSP.obj : error LNK2001: unresolved external symbol "public: static class RTSPClient * __cdecl RTSPClient::createNew(class UsageEnvironment &,int,char const *,unsigned short)" (?createNew@RTSPClient@@SAPAV1@AAVUsageEnvironment@@HPBDG@Z)
openRTSP.obj : error LNK2001: unresolved external symbol "unsigned short tunnelOverHTTPPortNum" (?tunnelOverHTTPPortNum@@3GA)
openRTSP.obj : error LNK2001: unresolved external symbol "public: char * __thiscall RTSPClient::sendOptionsCmd(char const *,char *,char *,class Authenticator *)" (?sendOptionsCmd@RTSPClient@@QAEPADPBDPAD1PAVAuthenticator@@@Z)
openRTSP.obj : error LNK2001: unresolved external symbol "unsigned int statusCode" (?statusCode@@3IA)
openRTSP.obj : error LNK2001: unresolved external symbol "public: char * __thiscall RTSPClient::describeURL(char const *,class Authenticator *,unsigned int)" (?describeURL@RTSPClient@@QAEPADPBDPAVAuthenticator@@I@Z)
openRTSP.obj : error LNK2001: unresolved external symbol "public: char * __thiscall RTSPClient::describeWithPassword(char const *,char const *,char const *,unsigned int)" (?describeWithPassword@RTSPClient@@QAEPADPBD00I@Z)
openRTSP.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall RTSPClient::setupMediaSubsession(class MediaSubsession &,unsigned int,unsigned int,unsigned int)" (?setupMediaSubsession@RTSPClient@@QAEIAAVMediaSubsession@@II
I@Z)
openRTSP.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall RTSPClient::playMediaSession(class MediaSession &,float,float,float)" (?playMediaSession@RTSPClient@@QAEIAAVMediaSession@@MMM@Z)
openRTSP.obj : error LNK2001: unresolved external symbol "double duration" (?duration@@3NA)
openRTSP.obj : error LNK2001: unresolved external symbol "double scale" (?scale@@3NA)
openRTSP.obj : error LNK2001: unresolved external symbol "double initialSeekTime" (?initialSeekTime@@3NA)
openRTSP.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall RTSPClient::teardownMediaSession(class MediaSession &)" (?teardownMediaSession@RTSPClient@@QAEIAAVMediaSession@@@Z)
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/openRTSP.exe : fatal error LNK1120: 13 unresolved externals
执行 link.exe 时出错.
openRTSP.exe - 1 error(s), 0 warning(s)
wuxwe
2008-04-22
打赏
举报
回复
在文件中出现了openRTSP.exe 文件而且可以使用。我用live555mediaserver做服务器,openRTSP来接受。
结果可以接受文件。但是,当在命令行中加入命令(如G:\live\testProgs\openRTSP -a rtsp://192.168.0.5/Angels.mp3)时就什么东西都没有了,这是什么原因啊?
wuxwe
2008-04-22
打赏
举报
回复
我连接的时候出现了这样的错误,不知道是出现了什么原因? 该怎么解决?
openRTSP.obj : error LNK2001: unresolved external symbol "public: static class RTSPClient * __cdecl RTSPClient::createNew(class UsageEnvironment &,int,char const *,unsigned short)" (?createNew@RTSPClient@@SAPAV1@AAVUsageEnvironment@@HPBDG@Z)
openRTSP.obj : error LNK2001: unresolved external symbol "unsigned short tunnelOverHTTPPortNum" (?tunnelOverHTTPPortNum@@3GA)
openRTSP.obj : error LNK2001: unresolved external symbol "public: char * __thiscall RTSPClient::sendOptionsCmd(char const *,char *,char *,class Authenticator *)" (?sendOptionsCmd@RTSPClient@@QAEPADPBDPAD1PAVAuthenticator@@@Z)
openRTSP.obj : error LNK2001: unresolved external symbol "unsigned int statusCode" (?statusCode@@3IA)
openRTSP.obj : error LNK2001: unresolved external symbol "public: char * __thiscall RTSPClient::describeURL(char const *,class Authenticator *,unsigned int)" (?describeURL@RTSPClient@@QAEPADPBDPAVAuthenticator@@I@Z)
openRTSP.obj : error LNK2001: unresolved external symbol "public: char * __thiscall RTSPClient::describeWithPassword(char const *,char const *,char const *,unsigned int)" (?describeWithPassword@RTSPClient@@QAEPADPBD00I@Z)
openRTSP.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall RTSPClient::setupMediaSubsession(class MediaSubsession &,unsigned int,unsigned int,unsigned int)" (?setupMediaSubsession@RTSPClient@@QAEIAAVMediaSubsession@@II
I@Z)
openRTSP.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall RTSPClient::playMediaSession(class MediaSession &,float,float,float)" (?playMediaSession@RTSPClient@@QAEIAAVMediaSession@@MMM@Z)
openRTSP.obj : error LNK2001: unresolved external symbol "double duration" (?duration@@3NA)
openRTSP.obj : error LNK2001: unresolved external symbol "double scale" (?scale@@3NA)
openRTSP.obj : error LNK2001: unresolved external symbol "double initialSeekTime" (?initialSeekTime@@3NA)
openRTSP.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall RTSPClient::teardownMediaSession(class MediaSession &)" (?teardownMediaSession@RTSPClient@@QAEIAAVMediaSession@@@Z)
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/openRTSP.exe : fatal error LNK1120: 13 unresolved externals
执行 link.exe 时出错.
openRTSP.exe - 1 error(s), 0 warning(s)
SmallBigCat
2008-04-21
打赏
举报
回复
1:你需要先编译出live555MediaServer,或者使用real helix server;然后启动服务;
2:编译出openRTSP,或者使用Real Player打开rtsp://192.168.0.5/Angels.mp3
你部署好后,然后再试着调试程序、对照着看源代码就可以了
SmallBigCat
2008-04-21
打赏
举报
回复
openRTSP是客户端例子;live555MediaServer是服务器例子
wuxwe
2008-04-19
打赏
举报
回复
我在用openRTSP的过程中遇到了一些问题
我在运行中输入G:\live\testProgs\openRTSP rtsp://192.168.0.5/Angels.mp3
后 不能在页面中输入命令 你知道是什么原因吗?
(我感觉你在这方面比较熟悉,想向你多学习学习,我的邮箱是wuxwe@126.com,QQ:277579830 你能加我吗?)
wuxwe
2008-04-19
打赏
举报
回复
它的例子就是OpenRTSP 看它的代码呢
还是看网页上的介绍啊?
SmallBigCat
2008-04-18
打赏
举报
回复
livemedia可以做rtsp客户端,也可以做rtsp服务器端;看看他的例子
live
555
Live
Media
live
555,
Live
Media
,截止到2015年3月份的最新版本
live
Media
lib库
live
555
live
Media
32位静态库
windows下编译
live
Media
555 ,包含工程代码
windows下编译媒体开源工程
LIVE
555 ,包含工程代码;已经将该工程在vc2008下编译通过,下载后只需要编译各个库,即可
live
media
555 源代码
live
media
555库源代码。包括BasicUsageEnvironment,groupsock,
live
Media
,UsageEnvironment基本库,testProgs,
media
Server库。
live
media
流程详解
关于
live
库的详细介绍,详述服务器端和客户端之间的交互,已经各种命令的形成,解析,整个流程等等......
多媒体/流媒体开发
2,543
社区成员
20,281
社区内容
发帖
与我相关
我的任务
多媒体/流媒体开发
专题开发/技术/项目 多媒体/流媒体开发
复制链接
扫一扫
分享
社区描述
专题开发/技术/项目 多媒体/流媒体开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章