Employee
Employee

Reputation: 3233

Install PCL Library on Python/Ubuntu 18.04 LTS

How do you install PCL Library on Python/Ubuntu 18.04 LTS?

I've tried different ways to do so, without luck.

Trying to import pcl results in:

ImportError: libpcl_keypoints.so.1.7: cannot open shared object file: No such file or directory

Upvotes: 1

Views: 10093

Answers (2)

Python Lover
Python Lover

Reputation: 51

I tried much to solve this issue. The drawback is here:

sudo apt-get install libpcl-dev -y

If you run this, it will install libpcl-dev with a higher version which will be conflicted with that libpcl-dev 1.7 you will install later. Here are some steps to raise the issue:

initially add Ubuntu 16 source list then run below lines one by one.

sudo apt-get update

pip install python-pcl

sudo apt-get install libpcl-keypoints1.7

sudo apt-get install libpcl-outofcore1.7

sudo apt-get install libpcl-people1.7

sudo apt-get install libpcl-recognition1.7

sudo apt-get install libpcl-registration1.7

sudo apt-get install libpcl-segmentation1.7

sudo apt-get install libpcl-surface1.7

Now, if you get error "libpng12-0", do this:

sudo add-apt-repository ppa:linuxuprising/libpng12

sudo apt update

sudo apt-get install libpng12-0

sudo apt-get install libpcl-tracking1.7

sudo apt-get install libflann1.8

sudo apt-get install libpcl-visualization1.7

finally,

python

>>> import pcl

Congratulation : PCL is successfully imported

Upvotes: 2

RightmireM
RightmireM

Reputation: 2492

Install it as a system-wide library, versus a Python module.

sudo add-apt-repository ppa:sweptlaser/python3-pcl
sudo apt update
sudo apt install python3-pcl

from here

Upvotes: 5

Related Questions