我已按照此处OSRM 后端 GitHub 的说明进行操作,当我运行命令build-local.bat
时,我收到以下消息“CMAKE NOT OK - download new CMake 3.9.2”
我试过可以从他们的网站下载的 x64 和 x86 版本的 cmake 3.15.0-rc2 和 3.14.5 。
当我build-local.dat
按照[GitHub](https://github.com/Project-OSRM/osrm-backend/wiki/Windows-Compilation
)上的项目OSRM指令运行时,输出如下:
C:\Users\Derek\Documents\osrm\osrm-backend>build-local.bat
APPVEYOR_REPO_BRANCH: master
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\Derek\Documents\osrm\osrm-backend\appveyor-build.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PROJECT_DIR: C:\Users\Derek\Documents\osrm\osrm-backend
NUMBER_OF_PROCESSORS: 4
cmake:
cmake version 3.14.5
CMake suite maintained and supported by Kitware (kitware.com/cmake).
CMAKE NOT OK - downloading new CMake 3.9.2
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.
At line:1 char:1
+ Invoke-WebRequest https://cmake.org/files/v3.9/cmake-3.9.2-win32-x86. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
~~~~~~~~~~~~~~~~~~~~~~ ERROR C:\Users\Derek\Documents\osrm\osrm-backend\appveyor-build.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERRORLEVEL: 1
~~~~~~~~~~~~~~~~~~~~~~ DONE C:\Users\Derek\Documents\osrm\osrm-backend\appveyor-build.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~ ERROR C:\Users\Derek\Documents\osrm\osrm-backend\build-local.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERRORLEVEL: 1
~~~~~~~~~~~~~~~~~~~~~~ DONE C:\Users\Derek\Documents\osrm\osrm-backend\build-local.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~