win7下编译RecastNavigation失败报错:无法打开文件SDL2.lib

  1. 下载premake5.exe(http://premake.github.io)解压到RecastDemo下
  2. 下载SDL2https://www.libsdl.org/download-2.0.php)的源码(SDL2-2.0.7.zip)到RecastDemo\Contrib下,改名SDL
  3. 进入RecastDemo\Contrib\SDL\VisualC打开SDL.sln编译
  4. 编译成功后将以下几个文件RecastDemo\Contrib\SDL\VisualC\Win32\Debug下的:
    SDL2.dll
    SDL2.lib
    SDL2main.lib
  5. 拷贝到RecastDemo\Contrib\SDL\lib\x86下(没有目录则创建)
  6. 代开CMD进入RecastDemo目录下,输入:premake5 vs2012(这里对应你装的vs版本)
  7. 进入RecastDemo\Build\vs2012打开项目recastnavigation.sln并编译
  8. 成功后进入RecastDemo\Bin运行RecastDemo.exe即可

猜你喜欢

转载自blog.csdn.net/monitor1394/article/details/79010441