ld cannot find -luuid

2019-08-28 00:43发布

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

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

标签: cmake ld
1条回答
甜甜的少女心
2楼-- · 2019-08-28 01:05

Did as Tsyvarev said.

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

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

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

make
make install

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

查看更多
登录 后发表回答