Libtool 认为“库已移动”但事实并非如此

发布于 2024-09-25 16:24:48 字数 1088 浏览 6 评论 0原文

我目前正在从源代码重新编译 gtk+ 和依赖项(我没有其他选择)。

我的所有自定义包都安装在特定的自定义点(我们称之为 /packages)(这看起来很奇怪,但这一次,我没有其他选择)。

当我尝试重新编译pango时,它需要freetype。 Freetype 已安装在 /packages/freetype/2.1.10/amd64-linux 中(lib、include ... 在此目录中),并且设置了不同的配置路径 (LD_LIBRARY_PATH代码>、<代码>LIBRARY_PATH、<代码>CPLUS_INCLUDE_PATH、<代码>INCLUDE_PATH、<代码>PKG_CONFIG_PATH)。 pango的配置运行良好。它找到 freetype 并生成 Makefile。 当我尝试 make 时,出现以下错误:

libtool: link: warning: library `/packages/freetype/2.1.10/amd64-linux//lib/libfreetype.la' was moved.
grep: /usr/local/lib/libfreetype.la: No such file or directory

libtool 我的 lib 有问题(但 libfreetype.la 存在于目录 /packages/freetype/2.1.10/amd64-linux//lib/并且不存在访问问题)。所以 libtool 尝试在 /usr/... 这样的“经典地方”找到它,但没有找到。

一开始,我认为 libtool 与两个斜杠混淆了(可能是由于在编译 freetype 期间 --prefix 标志出现错误),所以我重新编译了 freetype,没有出现拼写错误,但它没有改变任何东西。

有人有想法可以帮助我吗?我以前从未在我的个人项目中使用过 libtool,所以我不知道是否有办法解决这种奇怪的行为......(这可能无关紧要,但 libtool 是版本 1.5.22)

提前致谢。

I am currently recompiling gtk+ and dependencies from source (I have no other choices).

All my custom packages are installed in a specific custom point (let's call it /packages) (it can seem odd but this time again, I have no other choices).

When I try to recompile pango, it needs freetype.
Freetype is already installed in /packages/freetype/2.1.10/amd64-linux (lib, include ... are in this directory) and the different config path are set (LD_LIBRARY_PATH, LIBRARY_PATH, CPLUS_INCLUDE_PATH, INCLUDE_PATH, PKG_CONFIG_PATH).
configuration of pango run well. It find freetype and generate the Makefile.
When I try to make, I get the following error :

libtool: link: warning: library `/packages/freetype/2.1.10/amd64-linux//lib/libfreetype.la' was moved.
grep: /usr/local/lib/libfreetype.la: No such file or directory

libtool has a problem with my lib (but libfreetype.la exists in the directory /packages/freetype/2.1.10/amd64-linux//lib/and there's no problem of access). So libtool try to find it in the "classic places" like /usr/... and don't find it.

At the beginning, I thought that libtool get confused with the two slashes (probably due to an error in the --prefix flag during the compilation of freetype) so I did recompile freetype without the typo but it didn't change anything.

Has anybody an idea to help me ? I have never used libtool in my personnal projects before so I don't know if there's a way to solve this strange behavior... (It's maybe irrelevant but libtool is version 1.5.22)

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

舞袖。长 2024-10-02 16:24:48

您查看过 libfreetype.la 文件吗? Libtool .la 文件只是描述库的文本文件。默认情况下,它们会被注释。搜索 libdirdependency_libs 设置并检查它们是否指向正确的位置。

Have you looked inside the libfreetype.la file? Libtool .la files are just text files describing libraries. By default, they are commented. Search for the libdir and dependency_libs settings and check if they point to the right places.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文