ld cannot find -luuid

2019-08-28 01:05发布

问题:

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?

回答1:

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.



标签: cmake ld