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

Build errors on Ubuntu 16.04 using PCL-1.8.0 stable version

Open s0r2637 opened this issue 9 years ago • 9 comments

Hi,

I am a Ubuntu 16.04 user with PCL-1.8.0 installed. When I run the setup.py file Python-PCL binding, I get the following error. It says that it cannot find pcl/point_cloud.h. I am wondering where is it searching for it. I appreciate your help at the earliest.

Package pcl_2d-1.8 was not found in the pkg-config search path. Perhaps you should add the directory containing pcl_2d-1.8.pc' to the PKG_CONFIG_PATH environment variable Package 'pcl_2d-1.8', required by 'pcl_features-1.8', not found Package pcl_2d-1.8 was not found in the pkg-config search path. Perhaps you should add the directory containingpcl_2d-1.8.pc' to the PKG_CONFIG_PATH environment variable Package 'pcl_2d-1.8', required by 'pcl_features-1.8', not found Package pcl_2d-1.8 was not found in the pkg-config search path. Perhaps you should add the directory containing pcl_2d-1.8.pc' to the PKG_CONFIG_PATH environment variable Package 'pcl_2d-1.8', required by 'pcl_features-1.8', not found Package pcl_2d-1.8 was not found in the pkg-config search path. Perhaps you should add the directory containingpcl_2d-1.8.pc' to the PKG_CONFIG_PATH environment variable Package 'pcl_2d-1.8', required by 'pcl_features-1.8', not found Package pcl_2d-1.8 was not found in the pkg-config search path. Perhaps you should add the directory containing `pcl_2d-1.8.pc' to the PKG_CONFIG_PATH environment variable Package 'pcl_2d-1.8', required by 'pcl_features-1.8', not found running install running build running build_py creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/pcl copying pcl/init.py -> build/lib.linux-x86_64-2.7/pcl running build_ext skipping 'pcl/_pcl.cpp' Cython extension (up-to-date) building 'pcl._pcl' extension x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET=1 -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c pcl/_pcl.cpp -o build/temp.linux-x86_64-2.7/pcl/_pcl.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from pcl/_pcl.cpp:289:0: pcl/shared_ptr_assign.h:1:29: fatal error: pcl/point_cloud.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

s0r2637 avatar Sep 14 '16 21:09 s0r2637

Hi, i ran into the same issue and it appears to be because of pcl_2d-1.8. It has been partially removed from pcl1.8 (commit c6338b25d5165bb2483403234cc1c61394b897eb) but some of its symbols are still used by pcl_features. To compile python-pcl, you can either remove pcl_2d from your pkgconfig/pcl_features-1.8.pc or recompile libpcl from github after reverting the commit in fault. Anyway, the fact that pkg-config did not stop after "Package pcl_2d-1.8 was not found in the pkg-config search path." is misleading.

albat92 avatar Sep 22 '16 15:09 albat92

Excuse me. How did you make it compatible with PCL1.8 ? It shows that :

setup.py: error: cannot find PCL, tried
    pkg-config pcl_common-1.7
    pkg-config pcl_common-1.6
    pkg-config pcl_common

When i tried to install .

tangshuran avatar Oct 28 '16 19:10 tangshuran

After modifying line 10 in /usr/local/lib/pkgconfig/pcl_features-1.8.pc as @albat92 said to

Requires: pcl_common-1.8 pcl_search-1.8 pcl_kdtree-1.8 pcl_octree-1.8 pcl_filters-1.8 #pcl_2d-1.8 pcl_2d-1.8 error disappeared

gzhang8 avatar Nov 02 '16 17:11 gzhang8

Thanks a lot to @gzhang8, My problem has been solved

xiaofanglegoc avatar Jul 12 '17 12:07 xiaofanglegoc

@tangshuran, have you solved the issue. I am facing the same issue which you got. Can you please help me in this issue. Thanks in advance setup.py: error: cannot find PCL, tried pkg-config pcl_common-1.8 pkg-config pcl_common-1.7 pkg-config pcl_common-1.6 pkg-config pcl_common

niranjanreddy891 avatar Mar 26 '18 05:03 niranjanreddy891

Hi, I got this error during pcl 1.8.0 installation: image

I had following all instruction on link bellow for installing pcl library https://askubuntu.com/questions/916260/how-to-install-point-cloud-library-v1-8-pcl-1-8-0-on-ubuntu-16-04-2-lts-for

is there any solution for my problem

Thank you.

liemwellys avatar Dec 27 '18 07:12 liemwellys

@tangshuran, have you solved the issue. I am facing the same issue which you got. Can you please help me in this issue. Thanks in advance setup.py: error: cannot find PCL, tried pkg-config pcl_common-1.8 pkg-config pcl_common-1.7 pkg-config pcl_common-1.6 pkg-config pcl_common

hi ,have you solved this issue? I meet the same issue with yours.

zcy1065670505 avatar Dec 24 '20 13:12 zcy1065670505

@zcy1065670505 Since it was not fulfill my needs, I decided to use PCL library provided in C++ for finishing my project. You can check the documentation in this link .

liemwellys avatar Dec 25 '20 03:12 liemwellys

Thank you for your kind help, I have solved this issue.

zcy1065670505 avatar Dec 28 '20 01:12 zcy1065670505