Building massif-visualizer: include could not find load file CMakeFindDependencyMacro

橙三吉。 提交于 2019-11-29 12:48:02

Yes, CMake 2.8.12.2 is too old. Use CMake 3 instead:

yum install epel-release
yum install cmake3

(cd build && cmake3 .. && make && make install)
#                 ^

Now the installation complains about KChart but that's a separate issue.


In the end, here are my complete steps:

yum install epel-release
yum install subversion git cmake3 tar wget
yum install kdelibs-devel extra-cmake-modules \
   graphviz-devel kdepim-devel \
   qt5-qtsvg-devel qt5-qtxmlpatterns-devel \
   kf5-kparts-devel kf5-karchive-devel \
   kf5-kiconthemes-devel kf5-kdoctools-devel
git clone https://github.com/KDE/massif-visualizer
wget https://download.kde.org/stable/kgraphviewer/2.4.0/kgraphviewer-2.4.0.tar.xz
wget https://download.kde.org/stable/kdiagram/2.6.0/src/kdiagram-2.6.0.tar.xz
tar xf kgraphviewer-2.4.0.tar.xz
tar xf kdiagram-2.6.0.tar.xz

for DIR in kgraphviewer-2.4.0 kdiagram-2.6.0 massif-visualizer
do
   cd $DIR
   mkdir build
   (cd build && cmake3 .. && make && make install)
   cd -
done

Then valgrind --tool=massif myApp and finally massif-visualiser massif.out.<PID> from a terminal inside a KDE session.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!