【发布时间】:2013-11-08 19:55:01
【问题描述】:
我正在使用 C# 进行编码。我将下面的参数发送给函数 gvLayout(gvc, g, 布局)
IntPtr gvc = gvContext();
// My string containing the graph
IntPtr g = agmemread(source);
string layout = "nop";
我已经从 graphviz 的文件夹中导入了 dll。
我得到了答案:
Error: Layout type: "nop" not recognized. Use one of:
所以我尝试了:
string layout = "dot";
得到: 错误:布局类型:“点”无法识别。使用以下之一:
我得到的gvLayout(gvc, g, layout)的int返回值为-1(应该是0)。
更新:
我将所有 dll 和 config6 文件放入我的项目中。现在我收到了 4 次消息,然后什么也没发生:
“程序无法启动,因为您的计算机中缺少 libglib-2.0-0.dll。请尝试重新安装程序以解决此问题。”
问题是文件已经存在。我还尝试将该文件的副本添加到文件夹 System32,但它也不起作用。
我已经阅读了Why does Graphviz fail on gvLayout? 并无法找到解决方案。
【问题讨论】:
标签: c# graphviz image-graphviz