How to Build RecastNavigation with VC2015

来源:互联网 发布:个人简历java项目 编辑:程序博客网 时间:2024/06/06 07:13


1. Download
Recast Navigation
 https://github.com/recastnavigation/recastnavigation
 recastnavigation-1.5.1.zip
libSDL
 http://www.libsdl.org/download-2.0.php
 SDL2-2.0.4.zip
Premake
 http://premake.github.io/download.html

2. Prepare and Build
set RECAST_DIR="D:\prj\recastnavigation-1.5.1"
set DOWNLOAD_DIR="G:\download\dev"
set MY7Z="D:\Program Files\7-Zip\7z.exe"

cd /d %RECAST_DIR%\..
%MY7Z% x %DOWNLOAD_DIR%\recastnavigation-*.zip

cd /d %RECAST_DIR%\RecastDemo\Contrib
%MY7Z% x %DOWNLOAD_DIR%\SDL2-*.zip
ren SDL2-2.0.4 SDL

cd /d %RECAST_DIR%\RecastDemo
%MY7Z% x %DOWNLOAD_DIR%\premake-5.*-windows.zip
premake5.exe vs2015
del premake5.exe

@ECHO Config and rebuild SDL Release/Win32 solution
%RECAST_DIR%\RecastDemo\Contrib\SDL\VisualC\SDL.sln
mkdir %RECAST_DIR%\RecastDemo\Contrib\SDL\lib\x86
copy /Y %RECAST_DIR%\RecastDemo\Contrib\SDL\VisualC\Win32\Release\*.lib %RECAST_DIR%\RecastDemo\Contrib\SDL\lib\x86
copy /Y %RECAST_DIR%\RecastDemo\Contrib\SDL\VisualC\Win32\Release\*.dll %RECAST_DIR%\RecastDemo\Contrib\SDL\lib\x86

@ECHO Config and rebuild RecastNavigation Win32 solution
%RECAST_DIR%\RecastDemo\Build\vs2015\recastnavigation.sln

3. Reference
https://github.com/recastnavigation/recastnavigation

0 0
原创粉丝点击