ld cannot find -luuid

泪湿孤枕 提交于 2019-12-11 17:25:38

问题


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.



来源:https://stackoverflow.com/questions/48869575/ld-cannot-find-luuid

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!