我已经从CMake的Mac 64位网站安装了CMake 2.8.11.2软件包.我们最近将一个项目从Qt 4升级到Qt 5,并且CMake升级是强制要求CMake使用Qt 5.但是,当我键入时,cmake .我收到以下错误:
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/Applications/CMake 2.8-11.app/Contents/bin
CMake Error: Error executing cmake::LoadCache(). Aborting.
Run Code Online (Sandbox Code Playgroud)
我可以确认,bin文件夹中没有modules目录.我真的不知道如何解决这个错误,或者如何获得所需的模块.
我正在试图弄清楚如何生成带有超链接的图形,您可以单击该图形以访问图形中每个节点/边缘的更多详细信息.我发现graphviz使用URL节点属性具有此功能.使用我的测试文件......
graph G {
node [label="\N"];
graph [bb="0,0,218,108"];
king [pos="31,90", width="0.86", height="0.50"];
lord [pos="31,18", width="0.81", height="0.50"];
"boot-master" [URL="google.com"];
king -- lord [pos="31,72 31,61 31,47 31,36"];
}
Run Code Online (Sandbox Code Playgroud)
...我能够生成一个似乎包含一些有用信息的cmapx文件:
<map id="G" name="G">
<area shape="poly" href="google.com" title="boot-master" alt="" coords="297,29 292,22 279,15 258,10 233,7 204,5 175,7 150,10 129,15 116,22 111,29 116,37 129,43 150,49 175,52 204,53 233,52 258,49 279,43 292,37"/>
</map>
Run Code Online (Sandbox Code Playgroud)
这是我用来生成这个的命令:
dot -Tcmapx example1_graph.dot -o test.cmapx
Run Code Online (Sandbox Code Playgroud)
但是我不知道如何使用这个文件?graphviz的文档还提到ps2格式应该适用于URL链接,但我没有任何运气.
运行时git gc,git完成最多99%,然后锁定.我让它整夜运行,它从未完成,似乎没有进展.通常我必须硬重置机器才能恢复,因为一切都锁定了.因为机器变得完全没有反应,我无法得到top或htop统计.
我决定暂时忽略这个问题.然而今天,当运行a时git pull,git决定自动打包存储库,这会触发同样的错误.
这是它被卡住的地方:
Auto packing the repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
Counting objects: 428464, done.
Delta compression using up to 4 threads.
Compressing objects: 99% (93702/93718)
Run Code Online (Sandbox Code Playgroud)
这是Fedora 17上的Qt 4.8 C++项目.我有8GB的RAM,持有该项目的分区是33G,使用了27G(88%已满).
什么可能导致这个问题?如果机器缺乏运行资源git gc,有没有办法告诉git不要自动打包?