gpt4 book ai didi

opencv - Cmake的CI2CV构建错误

转载 作者:行者123 更新时间:2023-12-02 17:50:30 26 4
gpt4 key购买 nike

我正在尝试在Windows上使用Cmake构建CIC2V face tracking library
我收到以下错误

Could not find a package configuration file provided by "OpenCV" with any of the following names:

OpenCVConfig.cmake
opencv-config.cmake



这是我在cmd中输入的内容:
cmake DOpenCV_PREFIX=D:\opencv\build ..

目录 D:\opencv\build包含文件OpenCVConfig.cmake,但 cmake仍然给出相同的错误。

有任何想法吗 ?

最佳答案

您在cmake定义的开头丢失了连字符,应该是:

cmake -DOpenCV_PREFIX=D:\opencv\build ..

------------ ^

关于opencv - Cmake的CI2CV构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22763512/

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