1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Mon, 27 Jan 2020 10:35:32 +0100
X-Dgit-Generated: 0.3.0~rc1+dfsg-8 590c1a7ffabfccfcec92a431f5a786da416e2e4a
Subject: Add support for PCL 1.10
---
--- python-pcl-0.3.0~rc1+dfsg.orig/setup.py
+++ python-pcl-0.3.0~rc1+dfsg/setup.py
@@ -510,7 +510,7 @@ else:
os.environ['ARCHFLAGS'] = ''
# Try to find PCL. XXX we should only do this when trying to build or install.
- PCL_SUPPORTED = ["-1.9", "-1.8", "-1.7", "-1.6", ""] # in order of preference
+ PCL_SUPPORTED = ["-1.10", "-1.9", "-1.8", "-1.7", "-1.6", ""] # in order of preference
for pcl_version in PCL_SUPPORTED:
if subprocess.call(['pkg-config', 'pcl_common%s' % pcl_version]) == 0:
@@ -620,6 +620,13 @@ else:
# Extension("pcl.pcl_grabber", ["pcl/pcl_grabber.pyx", "pcl/grabber_callback.cpp"], language="c++", **ext_args),
# debug
# gdb_debug=True,
+ ]
+ elif pcl_version == '-1.10':
+ 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++", extra_compile_args=['-fno-strict-aliasing'], **ext_args),
+ # Extension("pcl.pcl_grabber", ["pcl/pcl_grabber.pyx", "pcl/grabber_callback.cpp"], language="c++", **ext_args),
+ # debug
+ # gdb_debug=True,
]
else:
print('no pcl install or pkg-config missed.')
|