gpt4 book ai didi

cmake - 建筑地 block 可视化器 : include could not find load file CMakeFindDependencyMacro

转载 作者:太空宇宙 更新时间:2023-11-03 17:15:36 24 4
gpt4 key购买 nike

我正在尝试构建 massif-visualizer在 CentOS 7 上。不幸的是,我不得不尝试猜测依赖项,因为它们并未全部列在 INSTALL 文件中。到目前为止:

yum install git
yum install kdelibs-devel extra-cmake-modules \
qt5-qtsvg-devel qt5-qtxmlpatterns-devel \
kf5-kparts-devel kf5-karchive-devel
git clone https://github.com/KDE/massif-visualizer
cd massif-visualizer
mkdir build
(cd build && cmake .. && make && make install)

那些 Qt5 和 KF5 包主要是通过反复试验和 CMake 错误消息中的一些模式匹配添加到 yum 命令中的……但我似乎无法弄清楚如何解决这些最后的错误:

-- Could not set up the appstream test. appstreamcli is missing.
CMake Error at /usr/lib64/cmake/KF5Archive/KF5ArchiveConfig.cmake:37 (include):
include could not find load file:

CMakeFindDependencyMacro
Call Stack (most recent call first):
/usr/share/ECM/find-modules/FindKF5.cmake:74 (find_package)
CMakeLists.txt:34 (find_package)


CMake Error at /usr/lib64/cmake/KF5Archive/KF5ArchiveConfig.cmake:38 (find_dependency):
Unknown CMake command "find_dependency".
Call Stack (most recent call first):
/usr/share/ECM/find-modules/FindKF5.cmake:74 (find_package)
CMakeLists.txt:34 (find_package)

这是因为在 CentOS 7 上,CMake (2.8.12.2) 太旧了吗?还是别的?

最佳答案

是的,CMake 2.8.12.2 太旧了。请改用 CMake 3:

yum install epel-release
yum install cmake3

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

现在安装提示 KChart 但这是一个单独的问题。


最后,这是我的完整步骤:

yum install epel-release
yum install subversion git cmake3 tar wget
yum install boost boost-devel
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

然后 valgrind --tool=massif myApp最后 massif-visualiser massif.out.<PID>从 KDE session 中的终端。

关于cmake - 建筑地 block 可视化器 : include could not find load file CMakeFindDependencyMacro,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49340691/

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