- 下载premake5.exe(http://premake.github.io)解压到RecastDemo下
- 下载SDL2(https://www.libsdl.org/download-2.0.php)的源码(SDL2-2.0.7.zip)到RecastDemo\Contrib下,改名SDL
- 进入RecastDemo\Contrib\SDL\VisualC打开SDL.sln编译
- 编译成功后将以下几个文件RecastDemo\Contrib\SDL\VisualC\Win32\Debug下的:
SDL2.dll SDL2.lib SDL2main.lib
- 拷贝到RecastDemo\Contrib\SDL\lib\x86下(没有目录则创建)
- 代开CMD进入RecastDemo目录下,输入:premake5 vs2012(这里对应你装的vs版本)
- 进入RecastDemo\Build\vs2012打开项目recastnavigation.sln并编译
- 成功后进入RecastDemo\Bin运行RecastDemo.exe即可
win7下编译RecastNavigation失败报错:无法打开文件SDL2.lib
最新推荐文章于 2024-06-05 19:31:51 发布