安装kdevelop 4.7插件kdev-control-flow-graph

时间:2016-12-17 02:22:36

标签: plugins visualization kdevelop4

os:centos 7; kdevelop 4.7.1;

我从https://github.com/KDE/kdev-control-flow-graph下载了源代码。它是kdevelop 4的代码可视化插件:https://liveblue.wordpress.com/2009/06/17/visualize-your-code-in-kdevelop/

使用以下命令构建它之后:“cmake .; make; make install; kbuildsycoca4;” ,它不会出现在“加载的插件”中。

  

echo $ KDEIDRS   在/ usr   我也试过“cmake。-DCMAKE_INSTALL_PREFIX = / usr”,但结果是一样的。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

我安装了预建的KDevelop 4.7.1 yum。

我通过引用https://regx.dgswa.com/html/content/how-build-and-install-plugins-kdevelop构建了“kdev-control-flow-graph”。我还通过添加以下行修改了“CMakeLists.txt”:

set(SERVICES_INSTALL_DIR /usr/share/kde4/services)
set(DATA_INSTALL_DIR /usr/share/kde4/apps)
set(PLUGIN_INSTALL_DIR /usr/lib/kde4)

但我的centos 7是64位系统,kdevelop 4的库位于“/ usr / lib64 / kde4”。我改变了之后,一切都很好。

通过以下方式查找KDevelop 4图书馆路径:

find /usr/ -type f -name "*kdev*.so*"

https://community.kde.org/KDevelop/HowToCompile_v4#2._Get_the_sources_.28assumes_.24HOME.2Fsrc_but_you_can_replace_it_with_something_else.29