微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

生成错误:构建 mongo c 驱动程序 1.17.3

如何解决生成错误:构建 mongo c 驱动程序 1.17.3

我正在尝试使用 latest release 构建一个 mongocxx c 驱动程序。我正在使用 minGW makefile 执行此操作并使用 cmake-gui。

我的 cmake 配置是:

源输入:

C:/****/mongo-c-driver-1.17.3/build

构建目标:

C:/mongo-c-driver

输出如下:

CMake Warning (dev) in CMakeLists.txt:

CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal,direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file,but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

The C compiler identification is GNU 4.8.0
The CXX compiler identification is GNU 4.8.0
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: C:/Qt5.2.1/Tools/mingw48_32/bin/gcc.exe - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: C:/Qt5.2.1/Tools/mingw48_32/bin/g++.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
CMake Error at cmake/make_dist/CMakeLists.txt:7 (set_dist_list):
  UnkNown CMake command "set_dist_list".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.19)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

Configuring incomplete,errors occurred!
See also "C:/mongo-c-driver/CMakeFiles/CMakeOutput.log".

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。