strawlab / python-pcl

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

setup issue #372

Open mmahdavian opened 4 years ago

mmahdavian commented 4 years ago

Your Environment

Context

Hi. I am trying to build the package with python3 and I am getting following errors while building it. I have tested different versions of pcl and vtk, but I get the error all the time. Do you know how can I solve it, and what are suitable pcl and vtk versions to work with each other?

Thank You

x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -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/home/mohammad/.local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include/pcl-1.8 -I/usr/local/include/eigen3 -I/usr/include/ni -I/usr/include/ni -I/usr/include/openni2 -I/usr/include/vtk-7.0 -I/usr/include/python3.7m -c pcl/minipcl.cpp -o build/temp.linux-x86_64-3.7/pcl/minipcl.o -std=c++11
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -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/home/mohammad/.local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include/pcl-1.8 -I/usr/local/include/eigen3 -I/usr/include/ni -I/usr/include/ni -I/usr/include/openni2 -I/usr/include/vtk-7.0 -I/usr/include/python3.7m -c pcl/ProjectInliers.cpp -o build/temp.linux-x86_64-3.7/pcl/ProjectInliers.o -std=c++11
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.7/pcl/_pcl_180.o build/temp.linux-x86_64-3.7/pcl/minipcl.o build/temp.linux-x86_64-3.7/pcl/ProjectInliers.o -L/usr/lib/x86_64-linux-gnu/ -L/usr/local/lib -lvtkalglib-7.0 -lvtkChartsCore-7.0 -lvtkCommonColor-7.0 -lvtkCommonComputationalGeometry-7.0 -lvtkCommonCore-7.0 -lvtkCommonDataModel-7.0 -lvtkCommonExecutionModel-7.0 -lvtkCommonMath-7.0 -lvtkCommonMisc-7.0 -lvtkCommonSystem-7.0 -lvtkCommonTransforms-7.0 -lvtkDICOMParser-7.0 -lvtkDomainsChemistry-7.0 -lvtkexoIIc-7.0 -lvtkexpat-7.0 -lvtkFiltersAMR-7.0 -lvtkFiltersCore-7.0 -lvtkFiltersExtraction-7.0 -lvtkFiltersFlowPaths-7.0 -lvtkFiltersGeneral-7.0 -lvtkFiltersGeneric-7.0 -lvtkFiltersGeometry-7.0 -lvtkFiltersHybrid-7.0 -lvtkFiltersHyperTree-7.0 -lvtkFiltersImaging-7.0 -lvtkFiltersModeling-7.0 -lvtkFiltersParallel-7.0 -lvtkFiltersParallelImaging-7.0 -lvtkFiltersProgrammable-7.0 -lvtkFiltersSelection-7.0 -lvtkFiltersSMP-7.0 -lvtkFiltersSources-7.0 -lvtkFiltersStatistics-7.0 -lvtkFiltersTexture-7.0 -lvtkFiltersVerdict-7.0 -lvtkfreetype-7.0 -lvtkGeovisCore-7.0 -lvtkgl2ps-7.0 -lvtkhdf5-7.0 -lvtkhdf5_hl-7.0 -lvtkImagingColor-7.0 -lvtkImagingCore-7.0 -lvtkImagingFourier-7.0 -lvtkImagingGeneral-7.0 -lvtkImagingHybrid-7.0 -lvtkImagingMath-7.0 -lvtkImagingMorphological-7.0 -lvtkImagingSources-7.0 -lvtkImagingStatistics-7.0 -lvtkImagingStencil-7.0 -lvtkInfovisCore-7.0 -lvtkInfovisLayout-7.0 -lvtkInteractionImage-7.0 -lvtkInteractionStyle-7.0 -lvtkInteractionWidgets-7.0 -lvtkIOAMR-7.0 -lvtkIOCore-7.0 -lvtkIOEnSight-7.0 -lvtkIOExodus-7.0 -lvtkIOExport-7.0 -lvtkIOGeometry-7.0 -lvtkIOImage-7.0 -lvtkIOImport-7.0 -lvtkIOInfovis-7.0 -lvtkIOLegacy-7.0 -lvtkIOLSDyna-7.0 -lvtkIOMINC-7.0 -lvtkIOMovie-7.0 -lvtkIONetCDF-7.0 -lvtkIOParallel-7.0 -lvtkIOParallelXML-7.0 -lvtkIOPLY-7.0 -lvtkIOSQL-7.0 -lvtkIOVideo-7.0 -lvtkIOXML-7.0 -lvtkIOXMLParser-7.0 -lvtkjpeg-7.0 -lvtkjsoncpp-7.0 -lvtklibxml2-7.0 -lvtkmetaio-7.0 -lvtkNetCDF-7.0 -lvtkoggtheora-7.0 -lvtkParallelCore-7.0 -lvtkpng-7.0 -lvtkproj4-7.0 -lvtkRenderingAnnotation-7.0 -lvtkRenderingContext2D-7.0 -lvtkRenderingContextOpenGL-7.0 -lvtkRenderingCore-7.0 -lvtkRenderingFreeType-7.0 -lvtkRenderingGL2PS-7.0 -lvtkRenderingImage-7.0 -lvtkRenderingLabel-7.0 -lvtkRenderingLIC-7.0 -lvtkRenderingLOD-7.0 -lvtkRenderingOpenGL-7.0 -lvtkRenderingVolume-7.0 -lvtkRenderingVolumeOpenGL-7.0 -lvtksqlite-7.0 -lvtksys-7.0 -lvtktiff-7.0 -lvtkverdict-7.0 -lvtkViewsContext2D-7.0 -lvtkViewsCore-7.0 -lvtkViewsInfovis-7.0 -lvtkzlib-7.0 -lpcl_keypoints -lpcl_outofcore -lpcl_people -lpcl_recognition -lpcl_registration -lpcl_segmentation -lpcl_features -lpcl_2d -lpcl_ml -lpcl_stereo -lpcl_surface -lpcl_tracking -lpcl_filters -lpcl_sample_consensus -lpcl_visualization -lpcl_io -lOpenNI -lpcl_search -lpcl_kdtree -lflann_cpp -lpcl_octree -lpcl_common -o /home/mohammad/Mohammad_ws/python-pcl/pcl/_pcl.cpython-37m-x86_64-linux-gnu.so
/usr/bin/ld: cannot find -lvtkgl2ps-7.0
/usr/bin/ld: cannot find -lvtkRenderingContextOpenGL-7.0
/usr/bin/ld: cannot find -lvtkRenderingGL2PS-7.0
/usr/bin/ld: cannot find -lvtkRenderingLIC-7.0
/usr/bin/ld: cannot find -lvtkRenderingOpenGL-7.0
/usr/bin/ld: cannot find -lvtkRenderingVolumeOpenGL-7.0
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-g++' failed with exit status 1
ouceduxzk commented 2 years ago

same here