首页 > 代码库 > CMake:消灭error(二)

CMake:消灭error(二)

安装自己编写的动态库,出现错误:

CMake Error at lib/cmake_install.cmake:48 (file):
  file INSTALL cannot copy file
  "/home/aal/cmake/t3/build/lib/libhello.so.1.1" to
  "/usr/lib/libhello.so.1.1".
Call Stack (most recent call first):
  cmake_install.cmake:37 (include)

make: *** [install] 错误 1

解决办法:安装共享库,有时需要root密码。此时用 sudo make install.

CMake:消灭error(二)