问题描述
所以,我目前正在安装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)并不完全熟悉,所以我很感谢任何建议。谢谢! :)
解决方法
我在 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
之后,您应该能够成功配置、生成和编译。