c++ - 编译期间的 libtool 错误

标签 c++ libtool

我正在使用 skerlet gcc 编译器为 Intel 环境交叉编译我的源代码包

我收到一个 libtool 错误:

../libtool: line 6412: cd: =/usr/lib: No such file or directory
libtool: link: warning: cannot determine absolute directory name of `=/usr/lib'
/usr/bin/grep: =/usr/lib/liblber.la: No such file or directory

额外的“=”是怎么加的?

最佳答案

听起来像是某种 makefile 中的拼写错误或无效的 bash 变量赋值:

$BLAH=/usr/lib

打印 bash: =/usr/lib: 没有那个文件或目录

在我的机器上。

找到问题的最快方法可能是像这样搜索包的来源:

grep -Hnir "=/usr/lib"

这将显示任何匹配项的文件名和行号。如果找不到任何东西,请尝试在工具链安装目录中搜索。

当您获得匹配项时,请尝试将其追溯到您在安装期间提供的任何输入。

关于c++ - 编译期间的 libtool 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29919584/

相关文章:

macos - MacOS 上的 glibtoolize 告诉我考虑将 `-I m4' 添加到 ACLOCAL_AMFLAGS,但这会产生错误

centos - Libtool - 不匹配的版本

makefile - 如何在 include 的子目录中安装 automake 安装头文件

c++ - 接收参数的 lambda 函数类型

makefile - 找不到 Ranlib

gdb - 整个程序中库的调试符号缺少行号,但不是单独的

c++ - DEV C++ 行 69 [错误] 'i' 的名称查找已更改为 ISO 'for' 范围 [-fpermissive]

c++ - 在什么情况下我可以在 C++ 中使用 == 直接比较两个 float 变量?

c++ - 如何使用概念将参数传递给类方法?

c++ - 为什么我不能构建opencv WITH_QT?