gpt4 book ai didi

unix - Cmake 无法工作 - 没有当前工作目录

转载 作者:行者123 更新时间:2023-12-01 23:28:21 26 4
gpt4 key购买 nike

我是这方面的新手,我一直在尝试解决另一个问题:

Two OpenCV's are installed (with different versions) and I can't delete all traces of the past one

有人建议我这样做

cmake -D CMAKE_PREFIX_PATH = usr/local ..

我这样做了,但 cmake 现在不起作用了。当我尝试一个简单的“cmake ..”时,我得到

No current working directory
Aborted

我该如何解决这个问题?如何设置 cmake_prefix_path?

最佳答案

CMake 2.8.10(及更早版本)生成错误

No current working directory

如果当前目录无法访问(通常是删除)。可以使用命令检查

cd .

现代 CMake(自 2.8.11 起)生成另一个错误:

Current working directory cannot be established.

另请参阅this bugreport .

关于unix - Cmake 无法工作 - 没有当前工作目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34378807/

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