Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Build errors on Ubuntu 16.04 using PCL-1.8.0 stable version #97

Open
s0r2637 opened this issue Sep 14, 2016 · 9 comments
Open

Build errors on Ubuntu 16.04 using PCL-1.8.0 stable version #97

s0r2637 opened this issue Sep 14, 2016 · 9 comments

Comments

@s0r2637
Copy link

s0r2637 commented Sep 14, 2016

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

@albat92
Copy link

albat92 commented Sep 22, 2016

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.

@tangshuran
Copy link

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 .

@gzhang8
Copy link

gzhang8 commented Nov 2, 2016

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

@xiaofanglegoc
Copy link

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

@niranjanreddy891
Copy link
Contributor

niranjanreddy891 commented Mar 26, 2018

@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

@liemwellys
Copy link

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.

@zcy1065670505
Copy link

@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.

@liemwellys
Copy link

@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 .

@zcy1065670505
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants