【问题标题】:undefined reference in ImageMagickImageMagick 中未定义的引用
【发布时间】:2022-01-09 16:59:57
【问题描述】:

我在 ubuntu 中安装 ImageMagick,我错误地安装了默认的 16 位量子深度版本,但我需要 8 位版本,所以我使用源文件夹中的 make uninstall 卸载了 16 位版本,然后我配置了 8 -bit 使用./configure --with-quantum-depth=8 安装它。

现在我在构建项目时遇到这些错误。

/usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `FcWeightToOpenTypeDouble'

/usr/bin/ld: /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to `FcWeightFromOpenTypeDouble'

在卸载之前构建成功,但在再次卸载并重新安装后,对于任何量子深度配置,构建项目都失败并显示上述错误。

帮助感谢,谢谢,

【问题讨论】:

标签: imagemagick pango


【解决方案1】:

当您运行make install 时,它会检查所有代码是否已正确编译和链接,然后安装(即复制)二进制文件(magickconvertanimatecomposemogrify、@ 987654327@ 等)到/usr/local/bin 或您配置的任何位置。

当您执行 make uninstall 时,它会从 /usr/local/bin 中删除这些二进制文件,但不会清理您编译/构建二进制文件的目录。

TLDR;你需要运行:

make clean                           # clean up build area
./configure --with-quantum-depth=8   # set your desired configuration
make -j4                             # rebuild (in parallel)
make install                         # copy to /usr/local/bin

【讨论】:

    猜你喜欢
    • 2018-10-31
    • 2017-07-16
    • 1970-01-01
    • 2012-06-29
    • 2011-07-14
    • 2018-09-01
    • 2012-09-01
    • 2015-10-14
    相关资源
    最近更新 更多