strawlab / python-pcl

Python bindings to the pointcloud library (pcl)
http://strawlab.github.com/python-pcl/
Other
2.01k stars 701 forks source link

intallation problem with python-pcl #151

Open gfjiyue opened 6 years ago

gfjiyue commented 6 years ago

Anaconda3, pcl 1.8.1, vs2015 I did as instruction at https://github.com/strawlab/python-pcl, but meet a problem: (D:\Anaconda3) C:\Users\fieldphenomics>python D:\programfiles\python-pcl-master\setup.py build_ext -i set environment PKG_CONFIG_PATH=D:\programfiles\python-pcl-master\pkg-config\pkg-config.exe C:\Users\fieldphenomics\pkg-config\pkg-config.exe Traceback (most recent call last): File "D:\programfiles\python-pcl-master\setup.py", line 153, in if subprocess.call(['.\pkg-config\pkg-config.exe', 'pcl_common%s' % pcl_version]) == 0: File "D:\Anaconda3\lib\subprocess.py", line 267, in call with Popen(*popenargs, **kwargs) as p: File "D:\Anaconda3\lib\subprocess.py", line 709, in init restore_signals, start_new_session) File "D:\Anaconda3\lib\subprocess.py", line 997, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified

diyoejw commented 6 years ago

see 60# Download Gtk + for Windows before calling setup.py and copy the extracted binary to the pkg-config folder.

gfjiyue commented 6 years ago

Yes, I did as the instrucation said. I executed powershell file [Install-GTKPlus.ps1]. But still have this problem. @diyoejw

gfjiyue commented 6 years ago
59347d0d1875a8af426f3a74477caf4
Sirokujira commented 6 years ago

@gfjiyue Please change the directory to "D:\programfiles\python-pcl-master" and build it.

gfjiyue commented 6 years ago

Yes, it works! @Sirokujira. But there is another problem, can you help me? (base) D:\programfiles\python-pcl-master>python setup.py build_ext -i set environment PKG_CONFIG_PATH=C:\Users\fieldphenomics\Desktop\python-pcl-master\python-pcl-master\pkg-config\pkg-config.exe D:\programfiles\python-pcl-master\pkg-config\pkg-config.exe 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

gfjiyue commented 6 years ago

image

gfjiyue commented 6 years ago

image

gfjiyue commented 6 years ago

I reinstalled the PCL to another file "D:\programfiles\PCL1.8.1" and solved the problem mentioned above. However, new problem comes: cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET=1 -D_CRT_SECURE_NO_WARNINGS=1 -IC:\Users\fieldphenomics\Anaconda3\lib\site-packages\numpy\core\include -ID:\programfiles\PCL1.8.1\include\pcl-1.8 -ID:\programfiles\PCL1.8.1\3rdParty\Eigen\eigen3 -ID:\programfiles\PCL1.8.1\3rdParty\Boost\include\boost-1_64 -ID:\programfiles\PCL1.8.1\3rdParty\FLANN\include -ID:\programfiles\PCL1.8.1\3rdParty\VTK\include\vtk-8.0 -IC:\Users\fieldphenomics\Anaconda3\include -IC:\Users\fieldphenomics\Anaconda3\include /EHsc /Tppcl_pcl_180.cpp /Fobuild\temp.win-amd64-3.6\Release\pcl_pcl_180.obj /EHsc error: command 'cl.exe' failed: No such file or directory

gfjiyue commented 6 years ago

Maybe the reason is it includes space in the path. However, there is no option to change the path during the installation of Microsoft Visual C++ Build Tools on windows. It only can be intalled in C:\Program Files (x86).

ljc19800331 commented 6 years ago

Hi, I used the same setting as you did at the beginning but failed to solve the problem. Did you solve this problem? @gfjiyue Could you show me some guidance on how to install Gtk+ in windows and extract the binary to pkg-config folder? (It is the folder in python-pcl ?) Thanks.

opemipoVRB commented 6 years ago

Hi I get this error when trying to install I have installed all the requirements uninstalled and reinstalled cython also.

Error compiling Cython file:
------------------------------------------------------------
...
CythonCompareOp_Type = _CythonCompareOp_Type()

# RangeImage 
# CythonCoordinateFrame
@cython.internal
cdef class _CythonCoordinateFrame_Type:
    ^
------------------------------------------------------------

pcl/_pcl_180.pyx:89:5: C class '_CythonCoordinateFrame_Type' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
cimport pcl_sample_consensus_180 as pcl_sc
cimport pcl_defs as cpp

cimport eigen as eigen3

cdef class Segmentation:
    ^
------------------------------------------------------------

pcl/pxi/Segmentation/Segmentation_180.pxi:8:5: C class 'Segmentation' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

    def set_MaxIterations(self, int count):
        self.me.setMaxIterations (count)

cdef class Segmentation_PointXYZI:
    ^
------------------------------------------------------------

pcl/pxi/Segmentation/Segmentation_180.pxi:50:5: C class 'Segmentation_PointXYZI' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

    def set_distance_threshold(self, float d):
        self.me.setDistanceThreshold (d)

cdef class Segmentation_PointXYZRGB:
    ^
------------------------------------------------------------

pcl/pxi/Segmentation/Segmentation_180.pxi:86:5: C class 'Segmentation_PointXYZRGB' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

    def set_distance_threshold(self, float d):
        self.me.setDistanceThreshold (d)

cdef class Segmentation_PointXYZRGBA:
    ^
------------------------------------------------------------

pcl/pxi/Segmentation/Segmentation_180.pxi:122:5: C class 'Segmentation_PointXYZRGBA' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

cimport eigen as eigen3

#yeah, I can't be bothered making this inherit from SACSegmentation, I forget the rules
#for how this works in cython templated extension types anyway
cdef class SegmentationNormal:
    ^
------------------------------------------------------------

pcl/pxi/Segmentation/SegmentationNormal_180.pxi:10:5: C class 'SegmentationNormal' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        max_angle = 0.0
        self.me.getMinMaxOpeningAngle(min_angle, max_angle)
        return min_angle, max_angle

cdef class Segmentation_PointXYZI_Normal:
    ^
------------------------------------------------------------

pcl/pxi/Segmentation/SegmentationNormal_180.pxi:101:5: C class 'Segmentation_PointXYZI_Normal' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        max_angle = 0.0
        self.me.getMinMaxOpeningAngle(min_angle, max_angle)
        return min_angle, max_angle

cdef class Segmentation_PointXYZRGB_Normal:
    ^
------------------------------------------------------------

pcl/pxi/Segmentation/SegmentationNormal_180.pxi:188:5: C class 'Segmentation_PointXYZRGB_Normal' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        max_angle = 0.0
        self.me.getMinMaxOpeningAngle(min_angle, max_angle)
        return min_angle, max_angle

cdef class Segmentation_PointXYZRGBA_Normal:
    ^
------------------------------------------------------------

pcl/pxi/Segmentation/SegmentationNormal_180.pxi:278:5: C class 'Segmentation_PointXYZRGBA_Normal' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
cimport _pcl
cimport pcl_segmentation_180 as pclseg
cimport pcl_defs as cpp
from libcpp.vector cimport vector

cdef class EuclideanClusterExtraction:
    ^
------------------------------------------------------------

pcl/pxi/Segmentation/EuclideanClusterExtraction_180.pxi:7:5: C class 'EuclideanClusterExtraction' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
# -*- coding: utf-8 -*-
cimport pcl_defs as cpp
cimport pcl_filters_180 as pclfil

cdef class StatisticalOutlierRemovalFilter:
    ^
------------------------------------------------------------

pcl/pxi/Filters/StatisticalOutlierRemovalFilter_180.pxi:5:5: C class 'StatisticalOutlierRemovalFilter' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        cdef PointCloud pc = PointCloud()
        self.me.filter(pc.thisptr()[0])
        return pc

cdef class StatisticalOutlierRemovalFilter_PointXYZI:
    ^
------------------------------------------------------------

pcl/pxi/Filters/StatisticalOutlierRemovalFilter_180.pxi:67:5: C class 'StatisticalOutlierRemovalFilter_PointXYZI' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        cdef PointCloud_PointXYZI pc = PointCloud_PointXYZI()
        self.me.filter(pc.thisptr()[0])
        return pc

cdef class StatisticalOutlierRemovalFilter_PointXYZRGB:
    ^
------------------------------------------------------------

pcl/pxi/Filters/StatisticalOutlierRemovalFilter_180.pxi:129:5: C class 'StatisticalOutlierRemovalFilter_PointXYZRGB' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        cdef PointCloud_PointXYZRGB pc = PointCloud_PointXYZRGB()
        self.me.filter(pc.thisptr()[0])
        return pc

cdef class StatisticalOutlierRemovalFilter_PointXYZRGBA:
    ^
------------------------------------------------------------

pcl/pxi/Filters/StatisticalOutlierRemovalFilter_180.pxi:191:5: C class 'StatisticalOutlierRemovalFilter_PointXYZRGBA' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
# -*- coding: utf-8 -*-
cimport pcl_defs as cpp
cimport pcl_filters_180 as pclfil

cdef class VoxelGridFilter:
    ^
------------------------------------------------------------

pcl/pxi/Filters/VoxelGridFilter_180.pxi:5:5: C class 'VoxelGridFilter' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef PointCloud pc = PointCloud()
        self.me.filter(pc.thisptr()[0])
        return pc

cdef class VoxelGridFilter_PointXYZI:
    ^
------------------------------------------------------------

pcl/pxi/Filters/VoxelGridFilter_180.pxi:30:5: C class 'VoxelGridFilter_PointXYZI' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef PointCloud_PointXYZI pc = PointCloud_PointXYZI()
        self.me.filter(pc.thisptr()[0])
        return pc

cdef class VoxelGridFilter_PointXYZRGB:
    ^
------------------------------------------------------------

pcl/pxi/Filters/VoxelGridFilter_180.pxi:55:5: C class 'VoxelGridFilter_PointXYZRGB' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef PointCloud_PointXYZRGB pc = PointCloud_PointXYZRGB()
        self.me.filter(pc.thisptr()[0])
        return pc

cdef class VoxelGridFilter_PointXYZRGBA:
    ^
------------------------------------------------------------

pcl/pxi/Filters/VoxelGridFilter_180.pxi:80:5: C class 'VoxelGridFilter_PointXYZRGBA' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
# -*- coding: utf-8 -*-
cimport pcl_defs as cpp
cimport pcl_filters_180 as pclfil

cdef class PassThroughFilter:
    ^
------------------------------------------------------------

pcl/pxi/Filters/PassThroughFilter_180.pxi:5:5: C class 'PassThroughFilter' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        # self.me.filter (<cpp.PointCloud_t*> pc.thisptr())
        self.me.c_filter(pc.thisptr()[0])
        return pc

cdef class PassThroughFilter_PointXYZI:
    ^
------------------------------------------------------------

pcl/pxi/Filters/PassThroughFilter_180.pxi:42:5: C class 'PassThroughFilter_PointXYZI' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        cdef PointCloud_PointXYZI pc = PointCloud_PointXYZI()
        self.me.c_filter(pc.thisptr()[0])
        return pc

cdef class PassThroughFilter_PointXYZRGB:
    ^
------------------------------------------------------------

pcl/pxi/Filters/PassThroughFilter_180.pxi:76:5: C class 'PassThroughFilter_PointXYZRGB' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        cdef PointCloud_PointXYZRGB pc = PointCloud_PointXYZRGB()
        self.me.c_filter(pc.thisptr()[0])
        return pc

cdef class PassThroughFilter_PointXYZRGBA:
    ^
------------------------------------------------------------

pcl/pxi/Filters/PassThroughFilter_180.pxi:110:5: C class 'PassThroughFilter_PointXYZRGBA' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
# -*- coding: utf-8 -*-
cimport pcl_defs as cpp
cimport pcl_filters_180 as pclfil

cdef class ApproximateVoxelGrid:
    ^
------------------------------------------------------------

pcl/pxi/Filters/ApproximateVoxelGrid_180.pxi:5:5: C class 'ApproximateVoxelGrid' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef PointCloud pc = PointCloud()
        self.me.filter(pc.thisptr()[0])
        return pc

cdef class ApproximateVoxelGrid_PointXYZI:
    ^
------------------------------------------------------------

pcl/pxi/Filters/ApproximateVoxelGrid_180.pxi:35:5: C class 'ApproximateVoxelGrid_PointXYZI' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef PointCloud_PointXYZI pc = PointCloud_PointXYZI()
        self.me.filter(pc.thisptr()[0])
        return pc

cdef class ApproximateVoxelGrid_PointXYZRGB:
    ^
------------------------------------------------------------

pcl/pxi/Filters/ApproximateVoxelGrid_180.pxi:64:5: C class 'ApproximateVoxelGrid_PointXYZRGB' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        """
        cdef PointCloud_PointXYZRGB pc = PointCloud_PointXYZRGB()
        self.me.filter(pc.thisptr()[0])
        return pc

cdef class ApproximateVoxelGrid_PointXYZRGBA:
    ^
------------------------------------------------------------

pcl/pxi/Filters/ApproximateVoxelGrid_180.pxi:92:5: C class 'ApproximateVoxelGrid_PointXYZRGBA' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
# -*- coding: utf-8 -*-
cimport pcl_defs as cpp
cimport pcl_kdtree as pclkdt

cdef class KdTreeFLANN:
    ^
------------------------------------------------------------

pcl/pxi/KdTree/KdTree_FLANN.pxi:5:5: C class 'KdTreeFLANN' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

        for i in range(k):
            sqdist[i] = radius_distances[i]
            ind[i] = radius_indices[i]

cdef class KdTreeFLANN_PointXYZI:
    ^
------------------------------------------------------------

pcl/pxi/KdTree/KdTree_FLANN.pxi:101:5: C class 'KdTreeFLANN_PointXYZI' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        for i in range(k):
            sqdist[i] = k_sqr_distances[i]
            ind[i] = k_indices[i]

cdef class KdTreeFLANN_PointXYZRGB:
    ^
------------------------------------------------------------

pcl/pxi/KdTree/KdTree_FLANN.pxi:165:5: C class 'KdTreeFLANN_PointXYZRGB' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        for i in range(k):
            sqdist[i] = k_sqr_distances[i]
            ind[i] = k_indices[i]

cdef class KdTreeFLANN_PointXYZRGBA:
    ^
------------------------------------------------------------

pcl/pxi/KdTree/KdTree_FLANN.pxi:229:5: C class 'KdTreeFLANN_PointXYZRGBA' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
cimport pcl_defs as cpp
cimport pcl_octree_180 as pcloct

cimport eigen as eig

cdef class OctreePointCloud:
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloud_180.pxi:7:5: C class 'OctreePointCloud' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
    #     self.me.deleteVoxelAtPoint(to_point_t(point))
    #     # mpcl_deleteVoxelAtPoint(self.me, to_point_t(point))
    #     # mpcl_deleteVoxelAtPoint(deref(self.me), to_point_t(point))

cdef class OctreePointCloud_PointXYZI:
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloud_180.pxi:88:5: C class 'OctreePointCloud_PointXYZI' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
    #     self.me.deleteVoxelAtPoint(to_point2_t(point))
    #     # mpcl_deleteVoxelAtPoint(self.me, to_point2_t(point))
    #     # mpcl_deleteVoxelAtPoint_PointXYZI(deref(self.me), to_point2_t(point))

cdef class OctreePointCloud_PointXYZRGB:
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloud_180.pxi:170:5: C class 'OctreePointCloud_PointXYZRGB' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
    #     """
    #     # NG (minipcl?)
    #     self.me.deleteVoxelAtPoint(to_point3_t(point))

cdef class OctreePointCloud_PointXYZRGBA:
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloud_180.pxi:248:5: C class 'OctreePointCloud_PointXYZRGBA' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
cimport pcl_defs as cpp
cimport pcl_octree_180 as pcloct

cimport eigen as eig

cdef class OctreePointCloud2Buf:
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloud2Buf_180.pxi:7:5: C class 'OctreePointCloud2Buf' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
    #     self.me.deleteVoxelAtPoint(to_point_t(point))
    #     # mpcl_deleteVoxelAtPoint(self.me, to_point_t(point))
    #     # mpcl_deleteVoxelAtPoint(deref(self.me), to_point_t(point))

cdef class OctreePointCloud2Buf_PointXYZI:
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloud2Buf_180.pxi:85:5: C class 'OctreePointCloud2Buf_PointXYZI' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
    #     self.me.deleteVoxelAtPoint(to_point2_t(point))
    #     # mpcl_deleteVoxelAtPoint(self.me, to_point2_t(point))
    #     # mpcl_deleteVoxelAtPoint_PointXYZI(deref(self.me), to_point2_t(point))

cdef class OctreePointCloud2Buf_PointXYZRGB:
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloud2Buf_180.pxi:164:5: C class 'OctreePointCloud2Buf_PointXYZRGB' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
    #     """
    #     # NG (minipcl?)
    #     self.me.deleteVoxelAtPoint(to_point3_t(point))

cdef class OctreePointCloud2Buf_PointXYZRGBA:
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloud2Buf_180.pxi:239:5: C class 'OctreePointCloud2Buf_PointXYZRGBA' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
cimport pcl_octree_180 as pcloct

# include "PointXYZtoPointXYZ.pxi" --> multiple define ng
# include "OctreePointCloud.pxi"

cdef class OctreePointCloudSearch(OctreePointCloud):
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloudSearch_180.pxi:8:5: C class 'OctreePointCloudSearch' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        Delete leaf node / voxel at given point.
        """
        self.me2.deleteVoxelAtPoint(to_point_t(point))

cdef class OctreePointCloudSearch_PointXYZI(OctreePointCloud_PointXYZI):
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloudSearch_180.pxi:224:5: C class 'OctreePointCloudSearch_PointXYZI' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        """
        Delete leaf node / voxel at given point.
        """
        self.me2.deleteVoxelAtPoint(to_point2_t(point))

cdef class OctreePointCloudSearch_PointXYZRGB(OctreePointCloud_PointXYZRGB):
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloudSearch_180.pxi:305:5: C class 'OctreePointCloudSearch_PointXYZRGB' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        Delete leaf node / voxel at given point.
        """
        self.me2.deleteVoxelAtPoint(to_point3_t(point))

cdef class OctreePointCloudSearch_PointXYZRGBA(OctreePointCloud_PointXYZRGBA):
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloudSearch_180.pxi:387:5: C class 'OctreePointCloudSearch_PointXYZRGBA' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
# -*- coding: utf-8 -*-
cimport pcl_defs as cpp
cimport pcl_octree_180 as pcloct

cdef class OctreePointCloudChangeDetector(OctreePointCloud2Buf):
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloudChangeDetector_180.pxi:5:5: C class 'OctreePointCloudChangeDetector' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        Delete leaf node / voxel at given point.
        """
        self.me2.deleteVoxelAtPoint(to_point_t(point))

cdef class OctreePointCloudChangeDetector_PointXYZI(OctreePointCloud2Buf_PointXYZI):
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloudChangeDetector_180.pxi:76:5: C class 'OctreePointCloudChangeDetector_PointXYZI' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        Delete leaf node / voxel at given point.
        """
        self.me2.deleteVoxelAtPoint(to_point2_t(point))

cdef class OctreePointCloudChangeDetector_PointXYZRGB(OctreePointCloud2Buf_PointXYZRGB):
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloudChangeDetector_180.pxi:145:5: C class 'OctreePointCloudChangeDetector_PointXYZRGB' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        Delete leaf node / voxel at given point.
        """
        self.me2.deleteVoxelAtPoint(to_point3_t(point))

cdef class OctreePointCloudChangeDetector_PointXYZRGBA(OctreePointCloud2Buf_PointXYZRGBA):
    ^
------------------------------------------------------------

pcl/pxi/Octree/OctreePointCloudChangeDetector_180.pxi:214:5: C class 'OctreePointCloudChangeDetector_PointXYZRGBA' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
cimport pcl_defs as cpp
cimport pcl_filters_180 as pclfil

from boost_shared_ptr cimport shared_ptr

cdef class CropHull:
    ^
------------------------------------------------------------

pcl/pxi/Filters/CropHull_180.pxi:10:5: C class 'CropHull' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

cimport eigen as eigen3

from boost_shared_ptr cimport shared_ptr

cdef class CropBox:
    ^
------------------------------------------------------------

pcl/pxi/Filters/CropBox_180.pxi:12:5: C class 'CropBox' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
# -*- coding: utf-8 -*-
cimport pcl_filters_180 as pclfil
cimport pcl_segmentation_180 as pclseg
cimport pcl_defs as cpp

cdef class ProjectInliers:
    ^
------------------------------------------------------------

pcl/pxi/Filters/ProjectInliers_180.pxi:6:5: C class 'ProjectInliers' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

cimport pcl_defs as cpp
cimport pcl_filters_180 as pclfil
cimport pcl_segmentation_180 as pclseg

cdef class RadiusOutlierRemoval:
    ^
------------------------------------------------------------

pcl/pxi/Filters/RadiusOutlierRemoval_180.pxi:9:5: C class 'RadiusOutlierRemoval' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
from pcl_filters cimport CompareOp2
from boost_shared_ptr cimport shared_ptr
from boost_shared_ptr cimport sp_assign

# cdef class ConditionAnd(ConditionBase):
cdef class ConditionAnd:
    ^
------------------------------------------------------------

pcl/pxi/Filters/ConditionAnd_180.pxi:14:5: C class 'ConditionAnd' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

cimport eigen as eigen3

from boost_shared_ptr cimport shared_ptr

cdef class ConditionalRemoval:
    ^
------------------------------------------------------------

pcl/pxi/Filters/ConditionalRemoval_180.pxi:12:5: C class 'ConditionalRemoval' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
# -*- coding: utf-8 -*-
cimport pcl_surface_180 as pclsf
cimport pcl_defs as cpp

cdef class ConcaveHull:
    ^
------------------------------------------------------------

pcl/pxi/Surface/ConcaveHull_180.pxi:5:5: C class 'ConcaveHull' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        return pc

    def set_Alpha(self, double d):
        self.me.setAlpha (d)

cdef class ConcaveHull_PointXYZI:
    ^
------------------------------------------------------------

pcl/pxi/Surface/ConcaveHull_180.pxi:27:5: C class 'ConcaveHull_PointXYZI' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

    def set_Alpha(self, double d):
        self.me.setAlpha (d)

cdef class ConcaveHull_PointXYZRGB:
    ^
------------------------------------------------------------

pcl/pxi/Surface/ConcaveHull_180.pxi:50:5: C class 'ConcaveHull_PointXYZRGB' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

    def set_Alpha(self, double d):
        self.me.setAlpha (d)

cdef class ConcaveHull_PointXYZRGBA:
    ^
------------------------------------------------------------

pcl/pxi/Surface/ConcaveHull_180.pxi:73:5: C class 'ConcaveHull_PointXYZRGBA' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
cimport _pcl
cimport pcl_defs as cpp
cimport pcl_surface_180 as pclsf
cimport pcl_kdtree_180 as pclkdt

cdef class MovingLeastSquares:
    ^
------------------------------------------------------------

pcl/pxi/Surface/MovingLeastSquares_180.pxi:7:5: C class 'MovingLeastSquares' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
#         cdef PointCloud_PointXYZI pc = PointCloud_PointXYZI()
#         self.me.process(pc.thisptr()[0])
#         return pc

cdef class MovingLeastSquares_PointXYZRGB:
    ^
------------------------------------------------------------

pcl/pxi/Surface/MovingLeastSquares_180.pxi:105:5: C class 'MovingLeastSquares_PointXYZRGB' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
        return pc
        # cdef PointCloud_PointNormal pcNormal = PointCloud_PointNormal()
        # self.me.process(pcNormal.thisptr()[0])
        # return pcNormal

cdef class MovingLeastSquares_PointXYZRGBA:
    ^
------------------------------------------------------------

pcl/pxi/Surface/MovingLeastSquares_180.pxi:149:5: C class 'MovingLeastSquares_PointXYZRGBA' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

from eigen cimport Matrix4f

np.import_array()

cdef class GeneralizedIterativeClosestPoint:
    ^
------------------------------------------------------------

pcl/pxi/registration/GeneralizedIterativeClosestPoint_180.pxi:12:5: C class 'GeneralizedIterativeClosestPoint' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

from eigen cimport Matrix4f

np.import_array()

cdef class IterativeClosestPoint:
    ^
------------------------------------------------------------

pcl/pxi/registration/IterativeClosestPoint_180.pxi:16:5: C class 'IterativeClosestPoint' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

from eigen cimport Matrix4f

np.import_array()

cdef class IterativeClosestPointNonLinear:
    ^
------------------------------------------------------------

pcl/pxi/registration/IterativeClosestPointNonLinear_180.pxi:12:5: C class 'IterativeClosestPointNonLinear' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

cimport pcl_defs as cpp
cimport pcl_sample_consensus as pcl_sac

cdef class RandomSampleConsensus:
    ^
------------------------------------------------------------

pcl/pxi/SampleConsensus/RandomSampleConsensus.pxi:8:5: C class 'RandomSampleConsensus' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

cimport pcl_defs as cpp
cimport pcl_features_180 as pclftr

cdef class NormalEstimation:
    ^
------------------------------------------------------------

pcl/pxi/Features/NormalEstimation_180.pxi:10:5: C class 'NormalEstimation' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

cimport pcl_defs as cpp
cimport pcl_features_180 as pclftr

cdef class VFHEstimation:
    ^
------------------------------------------------------------

pcl/pxi/Features/VFHEstimation_180.pxi:10:5: C class 'VFHEstimation' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
    void mpcl_features_NormalEstimationMethod_AVERAGE_DEPTH_CHANGE(pclftr.IntegralImageNormalEstimation_t ) except +
    void mpcl_features_NormalEstimationMethod_SIMPLE_3D_GRADIENT(pclftr.IntegralImageNormalEstimation_t ) except +
    void mpcl_features_NormalEstimationMethod_compute(pclftr.IntegralImageNormalEstimation_t, cpp.PointCloud_Normal_t ) except +

cdef class IntegralImageNormalEstimation:
    ^
------------------------------------------------------------

pcl/pxi/Features/IntegralImageNormalEstimation_180.pxi:19:5: C class 'IntegralImageNormalEstimation' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...

cimport pcl_defs as cpp
cimport pcl_features_180 as pclftr

cdef class MomentOfInertiaEstimation:
    ^
------------------------------------------------------------

pcl/pxi/Features/MomentOfInertiaEstimation_180.pxi:9:5: C class 'MomentOfInertiaEstimation' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
# Types
###############################################################################

### base class ###

cdef class HarrisKeypoint3D:
    ^
------------------------------------------------------------

pcl/pxi/KeyPoint/HarrisKeypoint3D_180.pxi:22:5: C class 'HarrisKeypoint3D' is declared but not defined

Error compiling Cython file:
------------------------------------------------------------
...
# -*- coding: utf-8 -*-
# pcl version 1.8.0
cimport pcl_defs as cpp
cimport pcl_registration_180 as pclreg

cdef class NormalDistributionsTransform:
    ^
------------------------------------------------------------

pcl/pxi/registration/NormalDistributionsTransform_180.pxi:6:5: C class 'NormalDistributionsTransform' is declared but not defined
building 'pcl._pcl' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-VMbIga/python3.6-3.6.4=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET=1 -I/root/PycharmProjects/vectorian_point_cloud_visualizer/vectorian_point_cloud_enviroment/lib/python3.6/site-packages/numpy/core/include -I/usr/include/ni -I/usr/include/vtk-5.8 -I/usr/local/include/vtk-8.0 -I/usr/local/Cellar/vtk/8.0.1/include -I/root/PycharmProjects/vectorian_point_cloud_visualizer/vectorian_point_cloud_enviroment/include -I/usr/include/python3.6m -c pcl/_pcl_180.cpp -o build/temp.linux-x86_64-3.6/pcl/_pcl_180.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
pcl/_pcl_180.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
 #error Do not use this file, it is the result of a failed Cython compilation.
niranjanreddy891 commented 6 years ago

@gfjiyue, try to install newer version of anaconda from here, Then try to use this command conda install -c sirokujira python-pcl It will work I guess :)

xiuliren commented 6 years ago

@niranjanreddy891 the installation is a success, but got an error while using it.

In [1]: import pcl
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-1e2e5cb12ae8> in <module>()
----> 1 import pcl

~/lib/anaconda3/lib/python3.6/site-packages/pcl/__init__.py in <module>()
      1 # XXX do a more specific import!
----> 2 from ._pcl import *
      3 # vtkSmartPointer.h error (Linux)
      4 # from .pcl_visualization import *
      5 # from .pcl_grabber import *

ImportError: /usr/people/jingpeng/lib/anaconda3/lib/python3.6/site-packages/pcl/../../../libpcl_visualization.so.1.8: undefined symbol: _ZN5boost11this_thread6hidden11sleep_untilERK8timespec

It looks like a python version incompatibility. I am using it in python 3.6.

niranjanreddy891 commented 6 years ago

@jingpengw, can you please share the following

  1. Operating system version
  2. Commands used to create & build the workspace
  3. Version of boost installed
xiuliren commented 6 years ago

sure, ubuntu 14.04 I manually built the pcl 1.8.1 from source. libboost 1.55

niranjanreddy891 commented 6 years ago

@jingpengw, Try upgrading boost to the latest version here I guess this will solve the problem. Also try to reinstall the python-pcl. :)

xiuliren commented 6 years ago

@niranjanreddy891 thanks, I tried to upgrade to latest boost 1.67, but got worse. The pcl 1.8.1 was not compiled successfully.

niranjanreddy891 commented 6 years ago

@jingpengw, You are using older version of ubuntu. PCL-1.8.1 supports Ubuntu > 16.04. Try to upgrade your O.S. Also make sure that jdk is installed properly. If you want to install jdk, try this command sudo add-apt-repository -y ppa:webupd8team/java && sudo apt update && sudo apt -y install oracle-java8-installer Sorry for informing late about o.s problem. :)

xiuliren commented 6 years ago

@niranjanreddy891 Thanks, it is a hard decision to upgrade since I have a lot of work configuration and installation there.

niranjanreddy891 commented 6 years ago

@jingpengw, try to use pcl-1.7.1. :)

shenqildr commented 4 years ago

@niranjanreddy891 Thanks, it is a hard decision to upgrade since I have a lot of work configuration and installation there. Have you solved the problem?

niranjanreddy891 commented 4 years ago

Yes. Could you please tell me on which environment you are working on including version?

shenqildr commented 4 years ago

ubuntu 16.04 python3.5 pcl-1.8.1 I have installed libboost already,but it shows
from ._pcl import * ImportError: libboost_system.so.1.66.0: cannot open shared object file: No such file or directory what's more, i have tried all the commends : conda config --add channels conda-forge conda install -c sirokujira python-pcl