简体   繁体   English

由于缺少 Freetype 字体,RDKit 编译失败

[英]RDKit compilation fails due missing Freetype font

I'm trying to build RDKit version 2021_03_5 from source on Ubuntu 18.04 and I'm getting the error below.我正在尝试从 Ubuntu 18.04 上的源代码构建 RDKit 版本 2021_03_5,但出现以下错误。 I don't see anything about this in the official documentation .我在官方文档中没有看到任何关于此的信息。 Does anyone know what I need to install to get past this error?有谁知道我需要安装什么来克服这个错误?

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)

It turns out that simply installing 'libfreetype6-dev' got me past the error.事实证明,只需安装“libfreetype6-dev”就可以解决错误。

sudo apt-get install libfreetype6-dev

Even though this worked, I still feel like I've done something wrong since it's not listed as a prerequisite in the installation instructions.即使这有效,我仍然觉得我做错了什么,因为它没有列为安装说明中的先决条件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM