gpt4 book ai didi

python - 错误 'the source does not appear to contain CMakeLists.txt'

转载 作者:太空狗 更新时间:2023-10-29 18:16:20 25 4
gpt4 key购买 nike

我正在 ubuntu 16.04 中安装 opencv。安装必要的先决条件后,我使用了以下命令:-

kvs@Hunter:~/opencv_contrib$ mkdir build
kvs@Hunter:~/opencv_contrib$ cd build
kvs@Hunter:~/opencv_contrib/build$
kvs@Hunter:~/opencv_contrib/build$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX+/usr/local -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules -D BUILD_EXAMPLES=ON ..

但它产生了一个错误:-

CMake Error: The source directory "/home/kvs/opencv_contrib" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

我使用了文件夹“模块”文档中提供的命令。我该如何解决?我在 stack-overflow 尝试了这里的答案和其他一些问题,但仍然无法弄清楚。

项目 Git 存储库 here .

最佳答案

您应该在 opencv 文件夹中执行 mkdir buildcd build,而不是 opencv-contrib 文件夹. CMakeLists.txt 就在那里。

关于python - 错误 'the source does not appear to contain CMakeLists.txt',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46448682/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com