Comments (6)
Have you ever installed PCL (the C++ library) on the machine? Unfortunately PyPCL now is not standalone library, it depends on the C++ version of PCL
from pcl.py.
Hi,
I get the same error even with PCL installed. Does it need to be referenced somehow?
Do you have any advice?
Thanks in advance
from pcl.py.
Hi,
I get the same error even with PCL installed. Does it need to be referenced somehow?
Do you have any advice?
Thanks in advance
You mean error showing that cannot find PCLConfig.cmake
? I guess this is due to that the path for PCL is not setup correctly. Did you install pcl using apt
?
from pcl.py.
I was eventually able to get this installed using PCL1.8
I had to patch PyPCL to respect my header location:
rev 1dd6acc
index 72d91a8..b71a1b7 100644
--- a/pypcl_build.py
+++ b/pypcl_build.py
@@ -16,7 +16,7 @@ ffibuilder.cdef(pypcl_header_source)
# To compile on another platform they need to be changed.
def pcl_header():
for version in ["1.7", "1.8"]:
- pcl_header = "/usr/include/pcl-{}".format(version)
+ pcl_header = "/usr/local/include/pcl-{}".format(version)
if os.path.exists(pcl_header):
return pcl_header
raise Exception("No valid PCL header found")
I also had to patch python-pcl at rev: d8b1fea
index cba5eb3..085a6e2 100644
--- a/setup.py
+++ b/setup.py
@@ -146,7 +146,7 @@ if platform.system() == "Windows":
break
else:
# Try to find PCL. XXX we should only do this when trying to build or install.
- PCL_SUPPORTED = ["-1.8", "-1.7", "-1.6", ""] # in order of preference
+ PCL_SUPPORTED = ["-1.7", "-1.6", ""] # in order of preference
for pcl_version in PCL_SUPPORTED:
if subprocess.call(['.\\pkg-config\\pkg-config.exe', 'pcl_common%s' % pcl_version]) == 0:
@@ -550,6 +550,7 @@ else:
# "-I/usr/include/openni"
# /usr/include/ni
ext_args['include_dirs'].append('/usr/include/ni')
+ ext_args['include_dirs'].append('/usr/local/include/vtk-7.1')
# ext_args['library_dirs'].append()
# ext_args['libraries'].append()
@@ -614,22 +615,22 @@ else:
if pcl_version == '-1.6':
module = [Extension("pcl._pcl", ["pcl/_pcl.pyx", "pcl/minipcl.cpp", "pcl/ProjectInliers.cpp"], language="c++", **ext_args),
- # Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
+ Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
# Extension("pcl.pcl_grabber", ["pcl/pcl_grabber.pyx", "pcl/grabber_callback.cpp"], language="c++", **ext_args),
# debug
# gdb_debug=True,
]
elif pcl_version == '-1.7':
module = [Extension("pcl._pcl", ["pcl/_pcl_172.pyx", "pcl/minipcl.cpp", "pcl/ProjectInliers.cpp"], language="c++", **ext_args),
- # Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
+ Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
# Extension("pcl.pcl_grabber", ["pcl/pcl_grabber.pyx", "pcl/grabber_callback.cpp"], language="c++", **ext_args),
# debug
# gdb_debug=True,
:q
uu ]
elif pcl_version == '-1.8':
module = [Extension("pcl._pcl", ["pcl/_pcl_180.pyx", "pcl/minipcl.cpp", "pcl/ProjectInliers.cpp"], language="c++", **ext_args),
- # Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
- # Extension("pcl.pcl_grabber", ["pcl/pcl_grabber.pyx", "pcl/grabber_callback.cpp"], language="c++", **ext_args),
+ Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
+ #Extension("pcl.pcl_grabber", ["pcl/pcl_grabber.pyx", "pcl/grabber_callback.cpp"], language="c++", **ext_args),
# debug
# gdb_debug=True,
]
from pcl.py.
@bfouts-kindred I didn't find the corresponding codes in my source. Where does pypcl_build.py
come from? Currently the location of PCL is determined by CMake modules, so as long as your PCL installation is able to be discovered by CMake, then it should be fine to build
from pcl.py.
The old version of pypcl has been deprecated, so this issue is going to be closed.
from pcl.py.
Related Issues (18)
- Accuracy difference between np.cov and pcl.common.compute_mean_and_covariance_matrix
- Install failed, Cannot assign type 'shared_ptr[const PCLPointCloud2]' to 'PCLPointCloud2ConstPtr' HOT 3
- Polish CI/CD
- Installing pcl-py 0.2.11 failed HOT 2
- pip installation failes HOT 2
- Using filters HOT 1
- ImportError: DLL load failed while importing PCLBase: The specified module could not be found. HOT 9
- Install failed, Cannot assign type 'shared_ptr[const PCLPointCloud2]' to 'PCLPointCloud2ConstPtr' HOT 3
- Error compiling Cython file HOT 10
- Do you have the plan to support ros2 HOT 1
- Function for point cloud registration HOT 2
- Still Usable? HOT 2
- Suggestion for Pypi information HOT 1
- from ._pcl import * HOT 3
- 请问能写个中文文档吗? HOT 4
- Installing on OSX HOT 2
- installation failed with missing files HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcl.py.