困扰我们很久的问题。

znmaster 2003-10-16 03:26:45
我从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
(见:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdkintro/sdkintro/installing_the_platform_sdk_with_visual_studio.asp)
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 时刻在线等待
...全文
49 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lsl7909 2003-10-16
  • 打赏
  • 举报
回复
UP
FlyYang 2003-10-16
  • 打赏
  • 举报
回复
用nmake就可搞定,如下
nmake makefile文件

---------
++C++
---------

16,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

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