cannot open shared object file

1. setup LD_LIBRARY_PATH

1
export LD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATH

2. modify /etc/ld.so.conf,add /where/you/install/lib, then

1
sudo ldconfig

cmake 显示编译命令

1
make VERBOSE=1

或者CMakeLists.txt中加上:

1
set(CMAKE_VERBOSE_MAKEFILE ON)