[URGENT] PCL Instalation

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[URGENT] PCL Instalation

lucasamparo
I can't reproduce the PCL install...

I've tryed to install from the Ubuntu repository, but in the compilation time, errors occurs.
So, I tryed to install from the source code, and the make -j2 don't finish.

Error from "make -j2"
[ 22%] Linking CXX shared library ../lib/libpcl_sample_consensus.so
[ 22%] Built target pcl_sample_consensus
Makefile:160: recipe for target 'all' failed

Error from compilation
[ 50%] Linking CXX executable pcd_write
CMakeFiles/pcd_write.dir/pcd_write.cpp.o: na função `pcl::PCDWriter::write(std::string const&, pcl::PCLPointCloud2 const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&, bool)':
pcd_write.cpp:(.text._ZN3pcl9PCDWriter5writeERKSsRKNS_14PCLPointCloud2ERKN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEERKNS6_10QuaternionIfLi0EEEb[_ZN3pcl9PCDWriter5writeERKSsRKNS_14PCLPointCloud2ERKN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEERKNS6_10QuaternionIfLi0EEEb]+0x43): referência indefinida para `pcl::PCDWriter::writeBinary(std::string const&, pcl::PCLPointCloud2 const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&)'
pcd_write.cpp:(.text._ZN3pcl9PCDWriter5writeERKSsRKNS_14PCLPointCloud2ERKN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEERKNS6_10QuaternionIfLi0EEEb[_ZN3pcl9PCDWriter5writeERKSsRKNS_14PCLPointCloud2ERKN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEERKNS6_10QuaternionIfLi0EEEb]+0x6a): referência indefinida para `pcl::PCDWriter::writeASCII(std::string const&, pcl::PCLPointCloud2 const&, Eigen::Matrix<float, 4, 1, 0, 4, 1> const&, Eigen::Quaternion<float, 0> const&, int)'
CMakeFiles/pcd_write.dir/pcd_write.cpp.o: na função `int pcl::PCDWriter::writeBinary<pcl::PointXYZ>(std::string const&, pcl::PointCloud<pcl::PointXYZ> const&)':
pcd_write.cpp:(.text._ZN3pcl9PCDWriter11writeBinaryINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EE[_ZN3pcl9PCDWriter11writeBinaryINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EE]+0x3bd): referência indefinida para `pcl::PCDWriter::setLockingPermissions(std::string const&, boost::interprocess::file_lock&)'
pcd_write.cpp:(.text._ZN3pcl9PCDWriter11writeBinaryINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EE[_ZN3pcl9PCDWriter11writeBinaryINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EE]+0x60d): referência indefinida para `pcl::PCDWriter::resetLockingPermissions(std::string const&, boost::interprocess::file_lock&)'
pcd_write.cpp:(.text._ZN3pcl9PCDWriter11writeBinaryINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EE[_ZN3pcl9PCDWriter11writeBinaryINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EE]+0x7ca): referência indefinida para `pcl::PCDWriter::resetLockingPermissions(std::string const&, boost::interprocess::file_lock&)'
pcd_write.cpp:(.text._ZN3pcl9PCDWriter11writeBinaryINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EE[_ZN3pcl9PCDWriter11writeBinaryINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EE]+0x972): referência indefinida para `pcl::PCDWriter::resetLockingPermissions(std::string const&, boost::interprocess::file_lock&)'
pcd_write.cpp:(.text._ZN3pcl9PCDWriter11writeBinaryINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EE[_ZN3pcl9PCDWriter11writeBinaryINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EE]+0xcd1): referência indefinida para `pcl::PCDWriter::resetLockingPermissions(std::string const&, boost::interprocess::file_lock&)'
pcd_write.cpp:(.text._ZN3pcl9PCDWriter11writeBinaryINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EE[_ZN3pcl9PCDWriter11writeBinaryINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EE]+0xe2b): referência indefinida para `pcl::PCDWriter::resetLockingPermissions(std::string const&, boost::interprocess::file_lock&)'
CMakeFiles/pcd_write.dir/pcd_write.cpp.o: na função `int pcl::PCDWriter::writeASCII<pcl::PointXYZ>(std::string const&, pcl::PointCloud<pcl::PointXYZ> const&, int)':
pcd_write.cpp:(.text._ZN3pcl9PCDWriter10writeASCIIINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EEi[_ZN3pcl9PCDWriter10writeASCIIINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EEi]+0x4c4): referência indefinida para `pcl::PCDWriter::setLockingPermissions(std::string const&, boost::interprocess::file_lock&)'
pcd_write.cpp:(.text._ZN3pcl9PCDWriter10writeASCIIINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EEi[_ZN3pcl9PCDWriter10writeASCIIINS_8PointXYZEEEiRKSsRKNS_10PointCloudIT_EEi]+0xeb7): referência indefinida para `pcl::PCDWriter::resetLockingPermissions(std::string const&, boost::interprocess::file_lock&)'
collect2: error: ld returned 1 exit status
CMakeFiles/pcd_write.dir/build.make:364: recipe for target 'pcd_write' failed
make[2]: *** [pcd_write] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pcd_write.dir/all' failed
make[1]: *** [CMakeFiles/pcd_write.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [URGENT] PCL Instalation

lucasamparo
Still not working...
Now I erase the apt-get installation and compile from github.

[  3%] Built target pcl_common
[  4%] Built target pcl_kdtree
[  4%] Built target pcl_octree
[  5%] Built target pcl_search
[  8%] Built target pcl_sample_consensus
[ 14%] Built target pcl_filters
[ 14%] Built target pcl_io_ply
[ 21%] Built target pcl_io
[ 22%] Built target pcl_pcd_convert_NaN_nan
[ 22%] Linking CXX executable ../../bin/pcl_openni_grabber_example
../../lib/libpcl_io.so.1.8.0: referência indefinida para `boost::this_thread::hidden::sleep_until(timespec const&)'
collect2: error: ld returned 1 exit status
io/tools/CMakeFiles/pcl_openni_grabber_example.dir/build.make:129: recipe for target 'bin/pcl_openni_grabber_example' failed
make[2]: *** [bin/pcl_openni_grabber_example] Error 1
CMakeFiles/Makefile2:623: recipe for target 'io/tools/CMakeFiles/pcl_openni_grabber_example.dir/all' failed
make[1]: *** [io/tools/CMakeFiles/pcl_openni_grabber_example.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [URGENT] PCL Instalation

PG1337
I think compile and install from GitHub is the better way. You get version PCL 1.8/trunk instead of PCL 1.7 from Ubuntu repositories.

Start with "git clone https://github.com/PointCloudLibrary/pcl.git" and then just follow the tutorial http://www.pointclouds.org/documentation/tutorials/compiling_pcl_posix.php 
Do not forget to install the dependences first! They are listed in the tutorial website also.
Hint: I made a good experience with "ccmake" instead of "cmake". So you can enable/disable components on your own needs.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [URGENT] PCL Instalation

lucasamparo
It's fails in 19%

[ 19%] Building CXX object search/CMakeFiles/pcl_search.dir/src/octree.cpp.o
[ 19%] Linking CXX shared library ../lib/libpcl_search.so
[ 19%] Built target pcl_search
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [URGENT] PCL Instalation

lucasamparo
Problem solved installing the version 1.7.2 from the pre built.
Loading...