【问题标题】:RDKit compilation fails due missing Freetype font由于缺少 Freetype 字体,RDKit 编译失败
【发布时间】:2021-10-07 18:15:52
【问题描述】:

我正在尝试在 Ubuntu 18.04 上从源代码构建 RDKit 版本 2021_03_5,但出现以下错误。我在official documentation 中没有看到任何关于此的内容。有谁知道我需要安装什么才能克服这个错误?

Downloading https://fonts.google.com/download?family=Comic%20Neue...
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.16/Modules/FindFreetype.cmake:157 (find_package_handle_standard_args)
  Code/GraphMol/MolDraw2D/CMakeLists.txt:81 (find_package)

【问题讨论】:

    标签: freetype rdkit


    【解决方案1】:

    事实证明,简单地安装 'libfreetype6-dev' 让我克服了这个错误。

    sudo apt-get install libfreetype6-dev
    

    即使这有效,我仍然觉得我做错了什么,因为它没有在安装说明中列为先决条件。

    【讨论】:

      猜你喜欢
      • 2010-11-11
      • 1970-01-01
      • 1970-01-01
      • 2013-11-30
      • 1970-01-01
      • 1970-01-01
      • 2022-08-24
      • 2020-06-02
      • 1970-01-01
      相关资源
      最近更新 更多