编译 recastnavigation

3. 下载premake5工具,premake5.exe
下载 Source Code 解压到 ecastnavigation-masterRecastDemoContribSDL  (无路径则手动创建)
下载 Development Libraries,并解压里面的lib目录到 ecastnavigation-masterRecastDemoContribSDLlib
<lib也可以通过VS打开SDLVisualC目录下的解决方案,自己编译出来.(Debug/Release or x86/x64)
4. 打开VS 命令提示工具,cd到RecastDemo目录,使用premake5.exe执行vs2015, 如下图2
5. 打开recastnavigation-masterRecastDemoBuildvs2015下 recastnavigation.sln,使用VS2015编译RecastDemo即可

 <如果有SDL找不到的情况,检查项目配置页里的链接配置. 如下示例,Debug x64平台下,依赖的SDL2.dll库所在目录(自己通过源码编译出来的Debug x64 SDL2.dll)

<注意在编译Debug版本的RecastDemo.exe时,务必手动将对应的Debug版本SDL2.dll拷贝到RecastDemo.exe目录下,或者环境变量指定目录.并且拷贝相关资源: DroidSans.ttf 否则RecastDemo.exe无法运行>

原文地址:https://www.cnblogs.com/wmalloc/p/5590050.html