0

所以,我目前正在安装 Gate-9.0,它是一个基于 Geant4 的模拟套件。我正在遵循使用文档中的安装指南

ccmake ../Gate-9.0

尝试配置时,它给了我这个 CMake 错误:

CMake Error: The following variables are used in this project, but
they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: 
LIBXML2_INCLUDE_DIR(ADVANCED)
used as include directory in directory/home/art/Documents/Gate-9.0
used as include directory in directory /home/art/Documents/Gate-9.0
used as include directory in directory /home/art/Documents/Gate-9.0

我安装了 LIBXML2 库,所以我不确定该怎么做。我对 linux-mint(和一般的 linux)并不完全熟悉,所以我很感激任何建议。谢谢!:)

4

1 回答 1

0

我在使用光学光子应用程序的 GATE 8.2 安装中遇到了类似的问题。在 ccmake 中,您需要按 [t] 切换高级模式。在那里,您必须找到导致问题的行:

*LIBXML2_INCLUDE_DIR      LIBXML2_INCLUDE_DIR-NOTFOUND
*LIBXML2-LIBRARY          LIBXML2_LIBRARY-NOTFOUND

将它们更改为:

*LIBXML2_INCLUDE_DIR      (path_to_include)/include/libxml2
*LIBXML2-LIBRARY          (path_to_lib)/lib/libxml2.so

之后,您应该能够成功配置、生成和编译。

于 2021-03-08T15:35:26.500 回答