python-pcl icon indicating copy to clipboard operation
python-pcl copied to clipboard

setup.py: error: cannot find PCL, tried

Open lucy-yang1993 opened this issue 4 years ago • 6 comments

<setup.py: error: cannot find PCL, tried>

My Environment

  • Operating System and version: Ubuntu16.04
  • PCL Version: pcl-1.10

I have error after I input 'python setup.py build_ext',it shows: setup.py: error: cannot find PCL, tried pkg-config pcl_common-1.9 pkg-config pcl_common-1.8 pkg-config pcl_common-1.7 pkg-config pcl_common-1.6 pkg-config pcl_common

lucy-yang1993 avatar Apr 22 '20 07:04 lucy-yang1993

Hi, I have the same question, and it seems that the lastest version of PCL is 1.10, but the avaliabel version used to install python-pcl is only 1.6 - 1.9. Are you installing PCL with [sudo apt get install libpcl-dev] ? If so, maybe you need to installl PCL with the right version.

But I just don't know how to install PCL with version 1.9. Install it form the source code ?

xiaoli1368 avatar Jul 02 '20 04:07 xiaoli1368

To lucy-yang1993's question Your problem is just like xiaoli1368 say, u need to install the PCL ver in 1.6~1.9 But if you still wanted to install newer version, you need to change a lot in setup.py e.g. PCL_SUPPORTED = ["-1.9", "-1.8", "-1.7", "-1.6", ""] become PCL_SUPPORTED = ["-1.10", "-1.9", "-1.8", "-1.7", "-1.6", ""]

e.g. elif pcl_version == '-1.8': ... elif pcl_version == '-1.9': else:... become elif pcl_version == '-1.8': ... elif pcl_version == '-1.9': ... elif pcl_version == '-1.10': else:...

and others corresponding part

Note that the code relative to the 3rd party version may need to change as well. Like PCL 1.11 using VTK 8.2 not 8.1 So... If u want to install quickly in linux, using PCL-1.6~1.9 is better choice.

moonstarsky37 avatar Sep 16 '20 05:09 moonstarsky37

To xiaoli1368' question, If u install just by sudo apt get install libpcl-dev and not using other *.deb or *.ppa I think the version is 1.7 So, if you want to install 1.9 u need to using another src e.g: https://launchpad.net/ubuntu/eoan/amd64/libpcl-dev/1.9.1+dfsg1-10ubuntu2

or .... build from source code

moonstarsky37 avatar Sep 16 '20 05:09 moonstarsky37

same problem, brew install pcl default version is newest 1.11 pip is < 1.9

chunibyo-wly avatar Mar 17 '21 04:03 chunibyo-wly

so, can how can we install a 1.9 version PCL, directly use some commands?

zhangzihui247 avatar Mar 31 '22 21:03 zhangzihui247

I got the same problem. Does it mean that the PCL version has to be less than 1.9? Does it make any difference to macOS?

Garhoode avatar Sep 21 '22 06:09 Garhoode