Ubuntu 下一些库的安装及资源

1.  生成三维点云需要用到 pcl ,ubuntu下安装方式点击打开链接

sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update
sudo apt-get install libpcl-all

2. ubuntu安装opencv,有时需要用到多个opencv版本,此时可参考该链接进行多版本opencv安装。另外近日在TX1上做项目开发,在先装了cuda8后再安装opencv3,按博客教程安装,在make -j4 install 时出现如下错误:

/opencv-3.1.0/modules/cudalegacy/src/graphcuts.cpp:120:54: error: ‘NppiGraphcutState’ has not been declared  
      typedef NppStatus (*init_func_t)(NppiSize oSize, NppiGraphcutState** ppStat  
                                                       ^  
 /opencv-3.1.0/modules/cudalegacy/src/graphcuts.cpp:135:18: error: ‘NppiGraphcutState’ does not name a type  
          operator NppiGraphcutState*()  
                   ^  
 /opencv-3.1.0/modules/cudalegacy/src/graphcuts.cpp:141:9: error: ‘NppiGraphcutState’ does not name a type  
          NppiGraphcutState* pState; 
此时解决办法是,在源码中找到graphcuts.cpp文件,并将文件中
#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER) 改为  
#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER) || (CUDART_VERSION >= 8000)
然后重新执行make -j4 install 即可


你可能感兴趣的:(配置应用库,编程知识点)