我遵循了OSRM后端GitHub here上的说明,当我去运行命令build-local.bat
时,出现以下消息“ CMAKE不好-下载新的CMake 3.9.2”
我已经尝试了可以从其website下载的cmake 3.15.0-rc2和3.14.5的x64和x86版本。
当我按照[GitHub](https://github.com/Project-OSRM/osrm-backend/wiki/Windows-Compilation上的项目OSRM说明运行build-local.dat
时
),输出如下:
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
答案 0 :(得分:0)
那是因为您安装了cmake 3.15.0和3.14的新版本。但是在appveyor-build.bat上,它仅检查CMake 3.9.2版。
您可以转到appveyor-build.bat来编辑SET CMAKE_VERSION=3.15.0