困扰我很久的问题:如何编译SDK中的例子

znmaster 2003-10-16 03:21:38
我从Microsoft下载了一个开发包,即RTC Client API V1.2 SDK. 里面有几个例子。每个例子里只有 .h、.cpp文件,没有工程文件,但是有一个makefile文件。我试图编译例子,但是试了很多次,都不行。下面是SDK 的帮助文档里说的步骤,请过目。

How to compile and run the RTC Client API v1.2 samples

1. Install the Windows platform SDK
In order to compile and run the sample programs, you must have the SDK installed on your computer, or have Visual Studio C++ .NET installed. You can download the SDK from http://www.microsoft.com/msdownload/platformsdk/sdkupdate/default.htm
Follow Core SDK à Install this SDK à Continue à Accept, and then install the
SDK.
Click Install SDK with Visual Studio for more information.
2.Run RtcApiSDK.msi
Verify that “%ProgramFiles%\RTC Client API v1.2 SDK” directory is created

3 Run% ProgramFiles%\RTC Client API v1.2 SDK\Installation\RtcApiSetup.exe.
This Windows Installer setup package installs RTC Client API v1.2 on a machine that is used for development. It installs the merge module onto the computer, and allows the Side-by-Side RTC Client API v1.2 DLLs to be used on the machine.
Installing the package is essential to obtain and use the samples included within the RtcApiSdk.msi.

4.If you are using Visual Studio, Redirect INCLUDE and LIB path
Make sure the SDK include directory is listed before the Visual C++ include directory.

IMPORTANT: Add %ProgramFiles%\RTC Client API v1.2 SDK\SDK\inc before all other directories.

Make sure the SDK lib directory is listed before the Visual C++ lib directory. For command-line builds, check the LIB environment variable using the SET command. For builds within Visual Studio, you must update the directory settings.

5.To compile samples in an SDK window, click Start Button à Programs à Microsoft Platform SDK à Open build environment window à XP 32 build environment; then type NMake in the "Microsoft Platform SDK Windows XP 32-bit" command window,

6. Two samples, RtcIncoming and RtcOutgoing, use an internal resource manifest (the recommended way of using a manifest file).
Other samples use external manifest files. For those samples, you must copy the manifest file to the same directory as the .EXE file.
7. If you get errors while following the above instructions, please refer to the Troubleshooting section.
我严格按照这些步骤试了,还是不能把例子跑起来。
我有几个问题不明白:
a. 是否必须在Windows platform SDK的命令窗口中,用nmake命令运行makefile,在VisualStudio.net2003中也可以把?我在命令窗口中用nmake /f makefile 命令时,总提示:

'cl' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
NMAKE : fatal error U1077: “cl” : 返回代码“0x1”
Stop.
b. 如果使用VS.net2003,上面的步骤4 If you are using Visual Studio, Redirect INCLUDE and LIB path ,也没有完全搞清楚。Make sure the SDK lib directory is listed before the Visual C++ lib directory.不知道此处的SDK是指Windows platform SDK还是指RTC Client API v1.2 SDK?
c. 建什么样的工程。我尝试过空白项目,控制台项目,等等,都不行。可能是我不会设置那些编译环境什么的。
d. 我在VC6.0中打开makefile文件,结果只打开了它本身,没有自动产生什么工程文件。
e. 上面的废话归纳起来就是,这个开发包是肯定能用的,里面的makefile也是有作用的,到底如何编译这些例子。
我刚参加工作,这个问题困扰我很久。渴望得到高手的指点。
如果你需要的话,我可以把RTC Client API V1.2 SDK 发给你。
我的QQ:6232061 时刻在线等待!!
...全文
224 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
MasterGo 2003-10-30
  • 打赏
  • 举报
回复
cl是VC的编译程序,你可能是没有装VC,或者没有注册环境变量
wshcdr 2003-10-30
  • 打赏
  • 举报
回复
MARK
znmaster 2003-10-16
  • 打赏
  • 举报
回复
我是在要编译的程序的目录下用nmake命令的,出现了:
'cl' 不是内部或外部命令,也不是可运行的程序或批处理文件。
NMAKE : fatal error U1077: “cl” : 返回代码“0x1”
top.
netrouter 2003-10-16
  • 打赏
  • 举报
回复
你可以在命令行下使用nmake来编译。注意目录是你要编译的程序的目录。
nmake会根据makefile的定义来编译程序。

3,245

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧