0

您好,我在Visual Studio构建mongo-cxx-driver环境时报错了,因为我是新手,这个问题解决不了,希望大家帮忙解决一下。报错信息如下:

D:\Mongo-c-driver\mongo-c-driver\cmake-build>cmake -G “Visual Studio 16 2019” “-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver” “-DCMAKE_PREFIX_PATH=C:\mongo-c-driver” ..
— Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
— The C compiler identification is ;MSVC 19.25.28614.0
— Check for working C compiler: D:/visualStudio/IDE/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe
— Check for working C compiler: D:/visualStudio/IDE/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe – works
— Detecting C compiler ABI info
— Detecting C compiler ABI info – done
— Detecting C compile features
— Detecting C compile features – done
— No CMAKE_BUILD_TYPE selected, defaulting to RelWithDebInfo
— Found PythonInterp: D:/visualStudio/Shared/Python37_64/python.exe (found version “3.7.5”)
Traceback (most recent call last):
File “build/calc_release_version.py”, line 213, in <module>
RELEASE_VER = previous(main()) if PREVIOUS else main()
File “build/calc_release_version.py”, line 120, in main
head_tag_ver = check_head_tag()
File “build/calc_release_version.py”, line 81, in check_head_tag
tags = check_output([‘git’, ‘tag’, ‘-l’]).split()
File “build/calc_release_version.py”, line 51, in check_output
out = subprocess.check_output(args)
File “D:\visualStudio\Shared\Python37_64\lib\subprocess.py”, line 411, in check_output
**kwargs).stdout
File “D:\visualStudio\Shared\Python37_64\lib\subprocess.py”, line 488, in run
with Popen(*popenargs, **kwargs) as process:
File “D:\visualStudio\Shared\Python37_64\lib\subprocess.py”, line 800, in __init__
restore_signals, start_new_session)
File “D:\visualStudio\Shared\Python37_64\lib\subprocess.py”, line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
CMake Error at CMakeLists.txt:10 (_message):
BUILD_VERSION not specified and could not be calculated (script invocation
failed); specify in CMake command, -DBUILD_VERSION=<version>
Call Stack (most recent call first):
CMakeLists.txt:99 (message)

— Configuring incomplete, errors occurred!
See also “D:/Mongo-c-driver/mongo-c-driver/cmake-build/CMakeFiles/CMakeOutput.log”.

更改状态以发布