重裝ubuntu後的第3~6天——主要是pcl的安裝

    http://www.cnblogs.com/ChrisCoder/p/7222430.html#_label2

    首先是裝了Uget,過程略去,稍微廢了點功夫,不過在CSDN上能搜到具體的方法。

http://blog.csdn.net/fuchaosz/article/details/51882935?locationNum=8&fps=1

    以下 感覺太長不看的,直接拖到最後紅色鏈接就行,除此之外的都只是我個人隨便寫寫的,不看也損失不大。

………………………………………………………………………………………………………………………………………………

    三天時間,主要是安裝PCL(點雲庫)

    高博的《十四講》對於PCL的安裝一帶而過,其實安裝過程也不是多複雜,只是比較麻煩。

    下面這個是官網:

    http://pointclouds.org/downloads/linux.html

   

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

    問題出在第一條指令,輸入後Terminal顯示如下:

×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××

This only exists for history reasons. Please use the PCL version included in Ubuntu:

sudo apt install libpcl-dev

---


The Point Cloud Library (or PCL) is a large scale, open project for point cloud processing.
The PCL framework contains numerous state-of-the art algorithms including filtering, feature estimation, surface reconstruction, registration, model fitting and segmentation.
PCL is released under the terms of the BSD license and is open source software. It is free for commercial and research use. We are financially supported by Willow Garage, NVidia, and Google.
 更多信息: https://launchpad.net/~v-launchpad-jochen-sprickerhof-de/+archive/ubuntu/pcl
按回車繼續或者 Ctrl+c 取消添加


××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××

    第一次我直接複製了    sudo apt install libpcl-dev    指令,結果一圈下來,到最後我都不知道我幹了些什麼……就像我上一次使用ubuntu的感覺,迷迷糊糊的,而且結果好象還沒有把PCL這個庫裝好。


    看看更多信息那個鏈接說了些什麼,好奇心是個好東西。新奇而難以預料的事情,纔是這個有時候略顯無聊的世界上最寶貴的東西和體驗。






add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl-1.7

根據提示,重新輸入正確指令,想看看pcl18是不是pcl1.8,所以在那個網站搜了搜,確定是pcl1.8以後,把命令改爲


 add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl18


×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××



 更多信息: https://launchpad.net/~v-launchpad-jochen-sprickerhof-de/+archive/ubuntu/pcl18
按回車繼續或者 Ctrl+c 取消添加

gpg: 鑰匙環‘/tmp/tmp2bgxyevf/secring.gpg’已建立
gpg: 鑰匙環‘/tmp/tmp2bgxyevf/pubring.gpg’已建立
gpg: 下載密鑰‘19274DEF’,從 hkp 服務器 keyserver.ubuntu.com
gpg: /tmp/tmp2bgxyevf/trustdb.gpg:建立了信任度數據庫
gpg: 密鑰 19274DEF:公鑰“Launchpad PPA for Jochen Sprickerhof”已導入
gpg: 合計被處理的數量:1
gpg:               已導入:1  (RSA: 1)
OK
root@gakkifun-Lenovo-C560:/home/gakkifun/文檔/pcd#



×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××



    之後卡到了第三步:

    無法定位軟件包  libpcl-all

    重新update,發現原來pcl沒下下來。


    ……最後的最後,還是回到github上搜pcl源碼搞吧……


https://github.com/PointCloudLibrary/pcl/releases


下好以後,打開README看說明,可以看到下面的網址:


http://www.pointclouds.org/documentation/tutorials/compiling_pcl_posix.php


這兩個一直到cmake  ..完,看看都缺什麼庫(從cmake指令之後終端上刷出來的就可以看到,耐心點),然後一個一個去github上搜,然後再裝……


比如:我裝的時候缺  libusb  ,搜了搜裝上了 http://blog.csdn.net/fervor_heart/article/details/8002124

                       又缺metslib,搜了搜裝上了    http://freecode.com/projects/metslib

                       OpenNI2     http://blog.csdn.net/u013294888/article/details/51244736                        

                                        加上   https://stackoverflow.com/questions/28835794/undefined-reference-to-libusb-get-parent-compiling-freenect   的第二個答案                                                 

                       ……

                      



我裝好了,祝你好運。


curiosity makes you strong .


——————————————————————————————————————————————————————————————————————————————————————————————現在是2017年07月26日19:08:50,已經是第三次重裝了,先是重裝了win10,然後重裝了ubuntu……PS:裝庫的時候,不是特殊需求,別新建build文件夾了,就在源代碼文件夾裏直接cmake吧,省的clion找不到

發佈了22 篇原創文章 · 獲贊 8 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章