python-pcl
python-pcl copied to clipboard
collect2: error: ld returned 1 exit status error: command 'g++' failed with exit status 1
Your Environment
- Operating System and version: Ubuntu 18.04
- Compiler: gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
- PCL Version: 1.8
- Cython Version: 0.26.1-0.4
Context
when I install the python module following the introduction with "python setup.py build_ext -i", it shows many packages cannot be found. /usr/bin/ld: cannot find -lvtkalglib-7.0 /usr/bin/ld: cannot find -lvtkChartsCore-7.0 /usr/bin/ld: cannot find -lvtkCommonColor-7.0 /usr/bin/ld: cannot find -lvtkCommonComputationalGeometry-7.0 /usr/bin/ld: cannot find -lvtkCommonCore-7.0 /usr/bin/ld: cannot find -lvtkCommonDataModel-7.0 /usr/bin/ld: cannot find -lvtkCommonExecutionModel-7.0 /usr/bin/ld: cannot find -lvtkCommonMath-7.0 /usr/bin/ld: cannot find -lvtkCommonMisc-7.0 /usr/bin/ld: cannot find -lvtkCommonSystem-7.0 /usr/bin/ld: cannot find -lvtkCommonTransforms-7.0 /usr/bin/ld: cannot find -lvtkDICOMParser-7.0 /usr/bin/ld: cannot find -lvtkDomainsChemistry-7.0 /usr/bin/ld: cannot find -lvtkexoIIc-7.0 /usr/bin/ld: cannot find -lvtkexpat-7.0 /usr/bin/ld: cannot find -lvtkFiltersAMR-7.0 /usr/bin/ld: cannot find -lvtkFiltersCore-7.0 /usr/bin/ld: cannot find -lvtkFiltersExtraction-7.0 /usr/bin/ld: cannot find -lvtkFiltersFlowPaths-7.0 /usr/bin/ld: cannot find -lvtkFiltersGeneral-7.0 /usr/bin/ld: cannot find -lvtkFiltersGeneric-7.0 /usr/bin/ld: cannot find -lvtkFiltersGeometry-7.0 /usr/bin/ld: cannot find -lvtkFiltersHybrid-7.0 /usr/bin/ld: cannot find -lvtkFiltersHyperTree-7.0 /usr/bin/ld: cannot find -lvtkFiltersImaging-7.0 /usr/bin/ld: cannot find -lvtkFiltersModeling-7.0 /usr/bin/ld: cannot find -lvtkFiltersParallel-7.0 /usr/bin/ld: cannot find -lvtkFiltersParallelImaging-7.0 /usr/bin/ld: cannot find -lvtkFiltersProgrammable-7.0 /usr/bin/ld: cannot find -lvtkFiltersSelection-7.0 /usr/bin/ld: cannot find -lvtkFiltersSMP-7.0 /usr/bin/ld: cannot find -lvtkFiltersSources-7.0 /usr/bin/ld: cannot find -lvtkFiltersStatistics-7.0 /usr/bin/ld: cannot find -lvtkFiltersTexture-7.0 /usr/bin/ld: cannot find -lvtkFiltersVerdict-7.0 /usr/bin/ld: cannot find -lvtkfreetype-7.0 /usr/bin/ld: cannot find -lvtkGeovisCore-7.0 /usr/bin/ld: cannot find -lvtkgl2ps-7.0 /usr/bin/ld: cannot find -lvtkhdf5-7.0 /usr/bin/ld: cannot find -lvtkhdf5_hl-7.0 /usr/bin/ld: cannot find -lvtkImagingColor-7.0 /usr/bin/ld: cannot find -lvtkImagingCore-7.0 /usr/bin/ld: cannot find -lvtkImagingFourier-7.0 /usr/bin/ld: cannot find -lvtkImagingGeneral-7.0 /usr/bin/ld: cannot find -lvtkImagingHybrid-7.0 /usr/bin/ld: cannot find -lvtkImagingMath-7.0 /usr/bin/ld: cannot find -lvtkImagingMorphological-7.0 /usr/bin/ld: cannot find -lvtkImagingSources-7.0 /usr/bin/ld: cannot find -lvtkImagingStatistics-7.0 /usr/bin/ld: cannot find -lvtkImagingStencil-7.0 /usr/bin/ld: cannot find -lvtkInfovisCore-7.0 /usr/bin/ld: cannot find -lvtkInfovisLayout-7.0 /usr/bin/ld: cannot find -lvtkInteractionImage-7.0 /usr/bin/ld: cannot find -lvtkInteractionStyle-7.0 /usr/bin/ld: cannot find -lvtkInteractionWidgets-7.0 /usr/bin/ld: cannot find -lvtkIOAMR-7.0 /usr/bin/ld: cannot find -lvtkIOCore-7.0 /usr/bin/ld: cannot find -lvtkIOEnSight-7.0 /usr/bin/ld: cannot find -lvtkIOExodus-7.0 /usr/bin/ld: cannot find -lvtkIOExport-7.0 /usr/bin/ld: cannot find -lvtkIOGeometry-7.0 /usr/bin/ld: cannot find -lvtkIOImage-7.0 /usr/bin/ld: cannot find -lvtkIOImport-7.0 /usr/bin/ld: cannot find -lvtkIOInfovis-7.0 /usr/bin/ld: cannot find -lvtkIOLegacy-7.0 /usr/bin/ld: cannot find -lvtkIOLSDyna-7.0 /usr/bin/ld: cannot find -lvtkIOMINC-7.0 /usr/bin/ld: cannot find -lvtkIOMovie-7.0 /usr/bin/ld: cannot find -lvtkIONetCDF-7.0 /usr/bin/ld: cannot find -lvtkIOParallel-7.0 /usr/bin/ld: cannot find -lvtkIOParallelXML-7.0 /usr/bin/ld: cannot find -lvtkIOPLY-7.0 /usr/bin/ld: cannot find -lvtkIOSQL-7.0 /usr/bin/ld: cannot find -lvtkIOVideo-7.0 /usr/bin/ld: cannot find -lvtkIOXML-7.0 /usr/bin/ld: cannot find -lvtkIOXMLParser-7.0 /usr/bin/ld: cannot find -lvtkjpeg-7.0 /usr/bin/ld: cannot find -lvtkjsoncpp-7.0 /usr/bin/ld: cannot find -lvtklibxml2-7.0 /usr/bin/ld: cannot find -lvtkmetaio-7.0 /usr/bin/ld: cannot find -lvtkNetCDF-7.0 /usr/bin/ld: cannot find -lvtkoggtheora-7.0 /usr/bin/ld: cannot find -lvtkParallelCore-7.0 /usr/bin/ld: cannot find -lvtkpng-7.0 /usr/bin/ld: cannot find -lvtkproj4-7.0 /usr/bin/ld: cannot find -lvtkRenderingAnnotation-7.0 /usr/bin/ld: cannot find -lvtkRenderingContext2D-7.0 /usr/bin/ld: cannot find -lvtkRenderingContextOpenGL-7.0 /usr/bin/ld: cannot find -lvtkRenderingCore-7.0 /usr/bin/ld: cannot find -lvtkRenderingFreeType-7.0 /usr/bin/ld: cannot find -lvtkRenderingGL2PS-7.0 /usr/bin/ld: cannot find -lvtkRenderingImage-7.0 /usr/bin/ld: cannot find -lvtkRenderingLabel-7.0 /usr/bin/ld: cannot find -lvtkRenderingLIC-7.0 /usr/bin/ld: cannot find -lvtkRenderingLOD-7.0 /usr/bin/ld: cannot find -lvtkRenderingOpenGL-7.0 /usr/bin/ld: cannot find -lvtkRenderingVolume-7.0 /usr/bin/ld: cannot find -lvtkRenderingVolumeOpenGL-7.0 /usr/bin/ld: cannot find -lvtksqlite-7.0 /usr/bin/ld: cannot find -lvtksys-7.0 /usr/bin/ld: cannot find -lvtktiff-7.0 /usr/bin/ld: cannot find -lvtkverdict-7.0 /usr/bin/ld: cannot find -lvtkViewsContext2D-7.0 /usr/bin/ld: cannot find -lvtkViewsCore-7.0 /usr/bin/ld: cannot find -lvtkViewsInfovis-7.0 /usr/bin/ld: cannot find -lvtkzlib-7.0 collect2: error: ld returned 1 exit status error: command 'g++' failed with exit status 1
I wonder how I can fix this problem. Thank you
same problem here
same problem,have you solved it? @JiahaoXia
have you solved it? @surprisedong @LeonardoRez @JiahaoXia
have you solved it? @surprisedong @LeonardoRez @JiahaoXia @Xiangzhaohong
have you solved it? @surprisedong @LeonardoRez @JiahaoXia @Xiangzhaohong @pyni
@hetolin @pyni sudo apt-get install libpcl-dev sudo apt-get install python3-pcl I didn't slove the probIem but I try comands above and install suesscsfully. Use the native python of the system for python-pcl.
I solved, but i forget what i have done。。。。 sorry! But i remember I change some code
I solved, but i forget what i have done。。。。 sorry! But i remember I change some code
说了又好像没说
- check your VTK version in /usr/include/vtk-xx, I think you don't have VTK-7.0
- follow this patch to rewrite your setup.py
I find a method and solve it, you can see https://blog.csdn.net/zsssrs/article/details/108492750