Search code examples
cmakeld

ld cannot find -luuid


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?


Solution

  • 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.