ubuntu安装DSO的时候出现问题 No rule to make target '/usr/lib/libOpenNI2.so'

make[2]: *** No rule to make target '/usr/lib/libOpenNI2.so', needed by 'bin

一般出现这个问题就是系统没有找到libOpenNI2.so这个东西,或者没有安装OpenNI2,但是我是知道自己的电脑有安装的,然后再去翻一下,觉得是自己pangolin没装好,因为我是之前就装了的,不知道是不是自己做了些啥改动,然后再次编译pangolin,这里我前几次是按照网上别人的步骤来做的,但是我装了几次都在make过程中出现错误,说找不到OPENNI,后面我就按照pangolin自带的步骤去做,


## Building ##

Pangolin uses the CMake portable pre-build tool. To checkout and build pangolin in the
directory 'build', execute the following at a shell (or the equivelent using a GUI):

```
git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build
cd build
cmake ..
cmake --build .
```

要在cmake ..之后再加一步 cmake --build .(而这个是我看到过得所有教程都没有的),加了这步之后pangolin就编译成功了,make install是看你想不想安装到系统路径下(如 /usr/bin),这无关紧要。pangolin成功,后面的DSO按照cmake+ make就ok了~

猜你喜欢

转载自blog.csdn.net/qq_24509229/article/details/82850704
今日推荐