我在这里按照OSRM后端GitHub的说明进行操作,当我去运行命令build-local.bat
时,我收到以下消息"CMAKE 不正常 - 下载新的CMake 3.9.2">
我已经尝试了 x64 和 x86 版本的 cmake 3.15.0-rc2 和 3.14.5,可以从他们的网站下载。
build-local.dat
当我按照项目OSRM指令在[GitHub](https://github.com/Project-OSRM/osrm-backend/wiki/Windows-Compilation(,输出如下:
C:\Users\Derek\Documents\osrm\osrm-backend>build-local.bat
APPVEYOR_REPO_BRANCH: master
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:UsersDerekDocumentsosrmosrm-backendappveyor-build.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PROJECT_DIR: C:UsersDerekDocumentsosrmosrm-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:UsersDerekDocumentsosrmosrm-backendappveyor-build.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERRORLEVEL: 1
~~~~~~~~~~~~~~~~~~~~~~ DONE C:UsersDerekDocumentsosrmosrm-backendappveyor-build.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~ ERROR C:UsersDerekDocumentsosrmosrm-backendbuild-local.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERRORLEVEL: 1
~~~~~~~~~~~~~~~~~~~~~~ DONE C:UsersDerekDocumentsosrmosrm-backendbuild-local.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
这是因为您安装了新版本的 cmake 3.15.0 和 3.14。但在 appveyor build 上.bat它只检查 CMake 版本 3.9.2。您可以转到 appveyor-build.bat 编辑SET CMAKE_VERSION=3.15.0