strawlab / python-pcl

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

Fails to install when followed instruction (windows 10) #301

Closed Junggy closed 5 years ago

Junggy commented 5 years ago

I am using windows 10. (python 3.6.3, pcl 1.8.1)

when I follow the instruction, it gives error when I do python setup.py install.

(base) C:\Users\kkk\Documents\python-pcl>python setup.py install cannot find environment PKG_CONFIG_PATH set environment PKG_CONFIG_PATH=C:\Program Files\PCL 1.8.1\lib\pkgconfig;C:\Program Files\PCL 1.8.1\3rdParty\FLANN\lib\pkgconfig;C:\Program Files\PCL 1.8.1\3rdParty\Eigen\lib\pkgconfig; C:\Users\kkk\Documents\python-pcl\pkg-config\pkg-config.exe -1.8 running install running bdist_egg running egg_info writing python_pcl.egg-info\PKG-INFO writing dependency_links to python_pcl.egg-info\dependency_links.txt writing requirements to python_pcl.egg-info\requires.txt writing top-level names to python_pcl.egg-info\top_level.txt reading manifest file 'python_pcl.egg-info\SOURCES.txt' writing manifest file 'python_pcl.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py running build_ext skipping 'pcl_pcl_180.cpp' Cython extension (up-to-date) building 'pcl._pcl' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX86\x64\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\kkk\Anaconda3\lib\site-packages\numpy\core\include "-IC:\Program Files\PCL 1.8.1\include\pcl-1.8" "-IC:\Program Files\PCL 1.8.1\3rdParty\Eigen\eigen3" "-IC:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-1_64" "-IC:\Program Files\PCL 1.8.1\3rdParty\FLANN\include" "-IC:\Program Files\PCL 1.8.1\3rdParty\Qhull\include" "-IC:\Program Files\PCL 1.8.1\3rdParty\VTK\include\vtk-8.0" -IC:\Users\kkk\Anaconda3\include -IC:\Users\kkk\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" /EHsc /Tppcl_pcl_180.cpp /Fobuild\temp.win-amd64-3.6\Release\pcl_pcl_180.obj /EHsc /MD _pcl_180.cpp Unknown compiler version - please run the configure tests and report the results C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/point_traits.h: warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss C:\Program Files\PCL 1.8.1\3rdParty\FLANN\include\flann/algorithms/dist.h: warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/sample_consensus/prosac.h: warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/sample_consensus/ransac.h: warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/sample_consensus/sac_model_registration.h: warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/sample_consensus/sac_model_registration.h: warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss c:\users\kkk\anaconda3\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/features/our_cvfh.h: warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/registration/bfgs.h: warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/registration/ndt.h: warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/filters/voxel_grid_covariance.h: warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/registration/ndt_2d.h: warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/io/boost.h(81): warning C4005: 'BOOST_PARAMETER_MAX_ARITY': macro redefinition C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-1_64\boost/parameter/config.hpp(10): note: see previous definition of 'BOOST_PARAMETER_MAX_ARITY' C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-164\boost/mpl/aux/preprocessed/plain/inherit.hpp(22): error C2248: 'pcl::io::ply::ply_parser::scalar_property_definition_callbacks_type::callbacks_element': cannot access private struct declared in class 'pcl::io::ply::ply_parser::scalar_property_definition_callbacks_type' with [ U1=double ] C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-164\boost/mpl/aux/preprocessed/plain/quote.hpp(35): note: see declaration of 'pcl::io::ply::ply_parser::scalar_property_definition_callbacks_type::callbacks_element' with [ U1=double ] C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/io/ply/ply_parser.h(117): note: see declaration of 'pcl::io::ply::ply_parser::scalar_property_definition_callbacks_type' C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-164\boost/mpl/aux/preprocessed/plain/inherit.hpp(22): note: This diagnostic occurred in the compiler generated function 'boost::mpl::inherit2<T1,T2> &boost::mpl::inherit2<T1,T2>::operator =(const boost::mpl::inherit2<T1,T2> &)' with [ T1=boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<boost::mpl::inherit2<pcl::io::ply::ply_parser::scalar_property_definition_callbacks_type::callbacks_element,pcl::io::ply::ply_parser::scalar_property_definition_callbacks_type::callbacks_element>,pcl::io::ply::ply_parser::scalar_property_definition_callbacks_type::callbacks_element>,pcl::io::ply::ply_parser::scalar_property_definition_callbacks_type::callbacks_element>,pcl::io::ply::ply_parser::scalar_property_definition_callbacks_type::callbacks_element>,pcl::io::ply::ply_parser::scalar_property_definition_callbacks_type::callbacks_element>,pcl::io::ply::ply_parser::scalar_property_definition_callbacks_type::callbacks_element>, T2=pcl::io::ply::ply_parser::scalar_property_definition_callbacks_type::callbacks_element ] pcl_pcl_180.cpp(54289): warning C4996: 'pcl::ConditionalRemoval::ConditionalRemoval': ConditionalRemoval(ConditionBasePtr condition, bool extract_removed_indices = false) is deprecated, please use the setCondition (ConditionBasePtr condition) function instead. C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/filters/conditional_removal.h(632): note: see declaration of 'pcl::ConditionalRemoval::ConditionalRemoval' C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/registration/gicp.h(129): warning C4996: 'pcl::Registration<pcl::PointXYZ,pcl::PointXYZ,float>::setInputCloud': [pcl::registration::Registration::setInputCloud] setInputCloud is deprecated. Please use setInputSource instead. C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/registration/registration.h(183): note: see declaration of 'pcl::Registration<pcl::PointXYZ,pcl::PointXYZ,float>::setInputCloud' pcl_pcl_180.cpp(58303): note: see reference to class template instantiation 'pcl::GeneralizedIterativeClosestPoint<pcl::PointXYZ,pcl::PointXYZ>' being compiled C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-1_64\boost/bind/placeholders.hpp(54): note: see reference to class template instantiation 'boost::arg<9>' being compiled C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-1_64\boost/bind/placeholders.hpp(53): note: see reference to class template instantiation 'boost::arg<8>' being compiled C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-1_64\boost/bind/placeholders.hpp(52): note: see reference to class template instantiation 'boost::arg<7>' being compiled C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-1_64\boost/bind/placeholders.hpp(51): note: see reference to class template instantiation 'boost::arg<6>' being compiled C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-1_64\boost/bind/placeholders.hpp(50): note: see reference to class template instantiation 'boost::arg<5>' being compiled C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-1_64\boost/bind/placeholders.hpp(49): note: see reference to class template instantiation 'boost::arg<4>' being compiled C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-1_64\boost/bind/placeholders.hpp(48): note: see reference to class template instantiation 'boost::arg<3>' being compiled C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-1_64\boost/bind/placeholders.hpp(47): note: see reference to class template instantiation 'boost::arg<2>' being compiled C:\Program Files\PCL 1.8.1\3rdParty\Boost\include\boost-1_64\boost/bind/placeholders.hpp(46): note: see reference to class template instantiation 'boost::arg<1>' being compiled pcl_pcl_180.cpp(58740): warning C4996: 'pcl::GeneralizedIterativeClosestPoint<pcl::PointXYZ,pcl::PointXYZ>::setInputCloud': [pcl::registration::GeneralizedIterativeClosestPoint::setInputCloud] setInputCloud is deprecated. Please use setInputSource instead. C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/registration/gicp.h(129): note: see declaration of 'pcl::GeneralizedIterativeClosestPoint<pcl::PointXYZ,pcl::PointXYZ>::setInputCloud' pcl_pcl_180.cpp(59415): warning C4996: 'pcl::Registration<pcl::PointXYZ,pcl::PointXYZ,float>::setInputCloud': [pcl::registration::Registration::setInputCloud] setInputCloud is deprecated. Please use setInputSource instead. C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/registration/registration.h(183): note: see declaration of 'pcl::Registration<pcl::PointXYZ,pcl::PointXYZ,float>::setInputCloud' pcl_pcl_180.cpp(60034): warning C4996: 'pcl::Registration<pcl::PointXYZ,pcl::PointXYZ,float>::setInputCloud': [pcl::registration::Registration::setInputCloud] setInputCloud is deprecated. Please use setInputSource instead. C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/registration/registration.h(183): note: see declaration of 'pcl::Registration<pcl::PointXYZ,pcl::PointXYZ,float>::setInputCloud' pcl_pcl_180.cpp(73866): warning C4996: 'pcl::GeneralizedIterativeClosestPoint<pcl::PointXYZ,pcl::PointXYZ>::setInputCloud': [pcl::registration::GeneralizedIterativeClosestPoint::setInputCloud] setInputCloud is deprecated. Please use setInputSource instead. C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/registration/gicp.h(129): note: see declaration of 'pcl::GeneralizedIterativeClosestPoint<pcl::PointXYZ,pcl::PointXYZ>::setInputCloud' pcl_pcl_180.cpp(73966): warning C4996: 'pcl::Registration<pcl::PointXYZ,pcl::PointXYZ,float>::setInputCloud': [pcl::registration::Registration::setInputCloud] setInputCloud is deprecated. Please use setInputSource instead. C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/registration/registration.h(183): note: see declaration of 'pcl::Registration<pcl::PointXYZ,pcl::PointXYZ,float>::setInputCloud' pcl_pcl_180.cpp(74066): warning C4996: 'pcl::Registration<pcl::PointXYZ,pcl::PointXYZ,float>::setInputCloud': [pcl::registration::Registration::setInputCloud] setInputCloud is deprecated. Please use setInputSource instead. C:\Program Files\PCL 1.8.1\include\pcl-1.8\pcl/registration/registration.h(183): note: see declaration of 'pcl::Registration<pcl::PointXYZ,pcl::PointXYZ,float>::setInputCloud' error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX86\x64\cl.exe' failed with exit status 2)

Junggy commented 5 years ago

Okay. doing with https://python-pcl-fork.readthedocs.io/en/rc_patches4/install.html doesn't work. but doing with instruction in git page works. I think documentation need to be updated to prevent someone else to waste huge amount of time