赞助

CryEngine5.7+VS2022 配置编译

转载:https://blog.csdn.net/kasteluo/article/details/62416581

1.下载VS2022安装器,联网安装

image

2.选择 使用C++的桌面开发

image

 选择C++ MFC for your build tools (Required by Sandbox)

 

image

3.解压CRYENGINE_v5.7.0_SDKs.zip

      Download the CRYENGINE_v5.7.0_SDKs.zip zip from the [releases page](https://github.com/CRYTEK/CRYENGINE_Source/releases).

    Extract the SDK zip contents to `Code/SDKs`.

 

 

 4.安装FBX SDK (Required by Sandbox)

  Download and Install the FBX SDK to the default location `C:\Program Files\Autodesk\FBX\FBX SDK\2016.1`.
  Copy `C:\Program Files\Autodesk\FBX\FBX SDK\2016.1` to `Code/SDKs` and rename it to `FbxSdk`.

image

 

5.生成解决方案

修改cmake_create_solution.bat 添加对vs2022 

image

 

 

image

 双击运行cmake_create_win64_solution.bat

执行成功会弹出CMake GUI  点击Configure--》Generate--》Open Project

生成整个解决方案

image

 6.解决编译错误

image

 缺少头文件

image

 

继续生成,错误一个一个解决

image

 和上面错误一样缺少头文件

image

 

image

 缺少头文件 #include <chrono>

image

 

image

 VS2022 默认使用 C++17 或更高,而 CRYENGINE 5.7.1 的 alembic 库使用了这个已移除的类

直接移除继承:

image

 

image

 移除继承

image

 

image

 

EditorCommon模块把警告当作错误了,修改一下属性

image

 

image

 同上  Sandbox模块修改一下属性

 

最终编译成功

image

 7.把sandbox设为启动项目 可以启动运行,Debug模式下有断言,可以点击忽略,第一次启动需要编译资源会慢些

 

image

 点击忽略

image

 8.这是 CRYENGINE Sandbox 需要 Launcher 验证。即使从源码编译,Sandbox 编辑器仍需要检测到 Launcher 的安装

image

 我们可以安装Launcher 或者修改源码,在此我们修改一下源码

IDevManager.h

image

 让这个函数直接返回true跳过检测

9.解压模版,放入到源码根目录

image

 

image

 还需配置模版的配置文件

image

需要在这个目录新建一个cryengine.json

{
  "engines": [
    {
      "id": "engine-5.7",
      "name": "CRYENGINE 5.7.1 Source",
      "version": "5.7.1"
    }
    ,
     "F:/CRYENGINE_Source-5.7.1/" 
  ]
}

这样就可以新建项目了

image

 

posted @ 2026-06-25 17:28  车臣  阅读(6)  评论(0)    收藏  举报