本文介绍了ld找不到-luuid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用我为mips处理器编写的工具链文件与Cmake进行交叉编译.在22%时出现此错误:

Attempting to cross-compile with Cmake using a toolchain file I've written for a mips processor. At 22% I get this error:

/usr/local/mipsisa32r2el/r23/bin/ld: cannot find -luuid

是LD缺少图书馆吗?使用mips gcc编译器时是否可以纠正?

Is it LD that is missing a library? Is it possible to rectify when using a mips gcc-compiler?

推荐答案

正如Tsyvarev所说.

Did as Tsyvarev said.

git clone https://github.com/karelzak/util-linux.git

然后执行autogen.sh创建配置文件.

Then executed the the autogen.sh to create the configure files.

最后,./configure --host=x86_64-unknown-linux-gnu --prefix=$INSTALL_DIR CC=$MIPS_GCC

make
make install

然后将lib文件复制到mips gcc库.

And then copied the lib files to the mips gcc library.

这篇关于ld找不到-luuid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-19 00:51