File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -32,17 +32,18 @@ git clone https://github.com/netease-im/NIM_PC_Demo.git --depth 10
3232> 首次初始化 Debug 或 Release 工程时会自动下载并编译依赖的三方库代码,这个过程可能相对较慢,请耐心等待。当您再次编译时,将不再重复下载和编译三方库代码而是使用上一次编译后的产物。
3333
3434``` bash
35- # 生成 32 位 Debug 工程,如果您未指定 Visual Studio 版本将默认使用本机安装的最新版本
36- cmake -Bbuild -AWin32 -DCMAKE_BUILD_TYPE=Debug
37-
38- # 生成 64 位 Debug 工程
35+ # 生成 64 位 Debug 工程,如果您未指定 Visual Studio 版本将默认使用本机安装的最新版本
3936cmake -Bbuild -Ax64 -DCMAKE_BUILD_TYPE=Debug
37+
38+ # 生成 32 位 Debug 工程
39+ cmake -Bbuild -AWin32 -DCMAKE_BUILD_TYPE=Debug
4040```
4141
4242> [ !TIP]
4343> Visual Studio 2017 以下版本工具链不支持使用 cmake -A 参数来指定目标产物架构,您可以使用如下命令分别生成 32 位和 64 位的工程
4444>
4545> ` cmake -Bbuild -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Debug `
46+ >
4647> ` cmake -Bbuild -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Debug `
4748
4849您可以通过打开 build 目录下的 ` nim_win_demo.sln ` 来进行调试或通过 CMake 命令直接编译:
@@ -56,6 +57,11 @@ cmake --build build --config Debug
5657如您需要编译 Release 版本,则将上面的命令中 Debug 修改为 Release 即可:
5758
5859``` bash
60+ # 生成 64 位 Release 工程,
61+ cmake -Bbuild -Ax64 -DCMAKE_BUILD_TYPE=Release
62+ cmake --build build --config Release
63+
64+ # 生成 32 位 Release 工程,
5965cmake -Bbuild -AWin32 -DCMAKE_BUILD_TYPE=Release
6066cmake --build build --config Release
6167```
You can’t perform that action at this time.
0 commit comments