ld找不到-luuid

时间:2018-02-19 15:47:31

标签: cmake ld

尝试使用我为mips处理器编写的工具链文件与Cmake进行交叉编译。在22%我得到这个错误:

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

LD缺少图书馆吗?使用mips gcc-compiler时是否可以纠正?

1 个答案:

答案 0 :(得分:0)

像Tsyvarev说的那样。

autogen.sh

然后执行./configure --host=x86_64-unknown-linux-gnu --prefix=$INSTALL_DIR CC=$MIPS_GCC以创建配置文件。

最后,make

make install
""" recursive implementation """ #arr = [] def leftRotate(arr, d, n): # Return if number of elements to be rotated is zero or equal to array size if(d == 0 or d == n): return # if number of elements to be rotated if exactly half of array size/ if ( n - d == d): swap(arr, 0, n-d, d) return # if A is shorter if(d < n-d): swap(arr, 0, n-d, d) leftRotate(arr, d, n-d) else: # if B is shorter swap(arr, 0, d, n-d) leftRotate(arr[0]+n-d, 2*d-n, d) def printArray(arr, size): i = 0 for i in range(size): print("%d"% arr[i], end=' ') print("\n") def swap(arr, fi, si, d): i = 0 temp = list for i in range(d): temp = arr[fi + i] arr[fi + i] = arr[si+i] arr[si + i] = temp # Driver program to test above function arr = [1, 2, 3, 4, 5, 6, 7] leftRotate(arr, 2, 7) printArray(arr, 7)

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

相关问题