error installing pcl from trunk

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

error installing pcl from trunk

mikeeepcl
This post has NOT been accepted by the mailing list yet.
Hello! I'm trying to run pcl on eclipse so reading the following guide http://pointclouds.org/documentation/tutorials/using_pcl_with_eclipse.php#using-pcl-with-eclipse and installing pcl from trunk following this http://pointclouds.org/downloads/source.html. Just a question? what "pcl from trunk" is and what is the scope of this? I'm just following the tut but I don't understand why I need it (probably it's a stupid question but I need to understand what I'm doing).

So I opened the terminal and i've done
git clone https://github.com/PointCloudLibrary/pcl pcl-trunk
cd pcl-trunk && mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
sudo make install

here's my output (I get an error after make)

michele@michele:~$ git clone https://github.com/PointCloudLibrary/pcl pcl-trunk
Cloning into 'pcl-trunk'...
remote: Counting objects: 90964, done.
remote: Compressing objects: 100% (24361/24361), done.
remote: Total 90964 (delta 58752), reused 87766 (delta 55990)
Ricezione degli oggetti: 100% (90964/90964), 201.64 MiB | 572 KiB/s, done.
Risoluzione dei delta: 100% (58752/58752), done.
michele@michele:~$ cd pcl-trunk && mkdir build && cd build
michele@michele:~/pcl-trunk/build$ cmake -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using CPU native flags for SSE optimization:  -march=native
-- Performing Test HAVE_MM_MALLOC
-- Performing Test HAVE_MM_MALLOC - Success
-- Performing Test HAVE_POSIX_MEMALIGN
-- Performing Test HAVE_POSIX_MEMALIGN - Success
-- Performing Test HAVE_SSE4_2_EXTENSIONS
-- Performing Test HAVE_SSE4_2_EXTENSIONS - Success
-- Performing Test HAVE_SSE4_1_EXTENSIONS
-- Performing Test HAVE_SSE4_1_EXTENSIONS - Success
-- Performing Test HAVE_SSE3_EXTENSIONS
-- Performing Test HAVE_SSE3_EXTENSIONS - Success
-- Performing Test HAVE_SSE2_EXTENSIONS
-- Performing Test HAVE_SSE2_EXTENSIONS - Success
-- Performing Test HAVE_SSE_EXTENSIONS
-- Performing Test HAVE_SSE_EXTENSIONS - Success
-- -- GCC > 4.3 found, enabling -Wabi
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp  
-- Found OpenMP
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   date_time
--   iostreams
-- checking for module 'eigen3'
--   found eigen3, version 3.1.2
-- Found Eigen: /usr/include/eigen3  
-- Eigen found (include: /usr/include/eigen3)
-- checking for module 'flann>=1.7.0'
--   found flann, version 1.7.1
-- Found FLANN: /usr/lib/libflann_cpp.so (Required is at least version "1.7.0")
-- FLANN found (include: /usr/include, lib: optimized;/usr/lib/libflann_cpp.so;debug;/usr/lib/libflann_cpp.so)
-- Found LIBUSB_1: /usr/lib/x86_64-linux-gnu/libusb-1.0.so  
-- checking for module 'libusb-1.0'
--   found libusb-1.0, version 1.0.12
-- Found USB_10: /usr/lib/x86_64-linux-gnu/libusb-1.0.so  
-- Found OpenNI: /usr/lib/libOpenNI.so  
-- OpenNI found (include: /usr/include/ni, lib: /usr/lib/libOpenNI.so)
-- Could NOT find FZAPI (missing:  FZAPI_LIBS FZAPI_INCLUDE_DIR)
-- Could NOT find PXCAPI (missing:  PXCAPI_LIBS PXCAPI_INCLUDE_DIRS PXCAPI_LIB_DIRS)
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.7")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.49")
-- Found Qhull: /usr/lib/libqhull.so  
-- QHULL found (include: /usr/include/qhull, lib: optimized;/usr/lib/libqhull.so;debug;/usr/lib/libqhull.so)
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found version "4.8.4")
-- Found QVTK: /usr/lib/libQVTK.so  
-- VTK found (include: /usr/local/include/vtk-6.0;/usr/include, lib: /usr/lib)
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Could NOT find PCAP (missing:  PCAP_LIBRARIES PCAP_INCLUDE_DIRS)
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
-- DOXYGEN_FOUND NO
-- HTML_HELP_COMPILER
-- checking for module 'sphinx-build'
--   package 'sphinx-build' not found
-- Found PythonInterp: /usr/bin/python (found version "2.7.4")
-- Could NOT find Sphinx (missing:  SPHINX_EXECUTABLE)
-- Found CPack generators: DEB
-- The following subsystems will be built:
--   common
--   octree
--   io
--   kdtree
--   geometry
--   search
--   visualization
--   sample_consensus
--   filters
--   2d
--   features
--   ml
--   segmentation
--   surface
--   registration
--   recognition
--   keypoints
--   tools
--   tracking
--   stereo
--   people
--   outofcore
-- The following subsystems will not be built:
--   apps: Disabled by default.
--   simulation: Disabled by default.
--   examples: Code examples are disabled by default.
--   global_tests: Disabled by default.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/michele/pcl-trunk/build
michele@michele:~/pcl-trunk/build$ make
Scanning dependencies of target pcl_common
[  0%] Building CXX object common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o
[  0%] Building CXX object common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
[  0%] Building CXX object common/CMakeFiles/pcl_common.dir/src/io.cpp.o
[  1%] Building CXX object common/CMakeFiles/pcl_common.dir/src/common.cpp.o
[  1%] Building CXX object common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o
[  1%] Building CXX object common/CMakeFiles/pcl_common.dir/src/distances.cpp.o
[  1%] Building CXX object common/CMakeFiles/pcl_common.dir/src/intersections.cpp.o
[  2%] Building CXX object common/CMakeFiles/pcl_common.dir/src/parse.cpp.o
[  2%] Building CXX object common/CMakeFiles/pcl_common.dir/src/poses_from_matches.cpp.o
[  2%] Building CXX object common/CMakeFiles/pcl_common.dir/src/print.cpp.o
[  2%] Building CXX object common/CMakeFiles/pcl_common.dir/src/projection_matrix.cpp.o
[  3%] Building CXX object common/CMakeFiles/pcl_common.dir/src/time_trigger.cpp.o
[  3%] Building CXX object common/CMakeFiles/pcl_common.dir/src/gaussian.cpp.o
[  3%] Building CXX object common/CMakeFiles/pcl_common.dir/src/range_image.cpp.o
[  4%] Building CXX object common/CMakeFiles/pcl_common.dir/src/range_image_planar.cpp.o
[  4%] Building C object common/CMakeFiles/pcl_common.dir/src/fft/kiss_fft.c.o
[  4%] Building C object common/CMakeFiles/pcl_common.dir/src/fft/kiss_fftr.c.o
Linking CXX shared library ../lib/libpcl_common.so
[  4%] Built target pcl_common
Scanning dependencies of target pcl_octree
[  5%] Building CXX object octree/CMakeFiles/pcl_octree.dir/src/octree_inst.cpp.o
Linking CXX shared library ../lib/libpcl_octree.so
[  5%] Built target pcl_octree
Scanning dependencies of target pcl_io_ply
[  6%] Building CXX object io/CMakeFiles/pcl_io_ply.dir/src/ply/ply_parser.cpp.o
Linking CXX shared library ../lib/libpcl_io_ply.so
[  6%] Built target pcl_io_ply
Scanning dependencies of target pcl_io
[  6%] Building CXX object io/CMakeFiles/pcl_io.dir/src/debayer.cpp.o
[  6%] Building CXX object io/CMakeFiles/pcl_io.dir/src/pcd_grabber.cpp.o
[  7%] Building CXX object io/CMakeFiles/pcl_io.dir/src/pcd_io.cpp.o
[  7%] Building CXX object io/CMakeFiles/pcl_io.dir/src/vtk_io.cpp.o
[  7%] Building CXX object io/CMakeFiles/pcl_io.dir/src/ply_io.cpp.o
[  7%] Building CXX object io/CMakeFiles/pcl_io.dir/src/ascii_io.cpp.o
[  8%] Building CXX object io/CMakeFiles/pcl_io.dir/src/compression.cpp.o
[  8%] Building CXX object io/CMakeFiles/pcl_io.dir/src/lzf.cpp.o
[  8%] Building CXX object io/CMakeFiles/pcl_io.dir/src/lzf_image_io.cpp.o
[  8%] Building CXX object io/CMakeFiles/pcl_io.dir/src/obj_io.cpp.o
[  9%] Building CXX object io/CMakeFiles/pcl_io.dir/src/ifs_io.cpp.o
/home/michele/pcl-trunk/io/src/ifs_io.cpp: In member function ‘int pcl::IFSReader::readHeader(const string&, pcl::PCLPointCloud2&, int&, unsigned int&)’:
/home/michele/pcl-trunk/io/src/ifs_io.cpp:65:7: warning: unused variable ‘specified_channel_count’ [-Wunused-variable]
/home/michele/pcl-trunk/io/src/ifs_io.cpp: In member function ‘int pcl::IFSReader::read(const string&, pcl::PCLPointCloud2&, int&)’:
/home/michele/pcl-trunk/io/src/ifs_io.cpp:190:16: warning: unused variable ‘nr_points’ [-Wunused-variable]
/home/michele/pcl-trunk/io/src/ifs_io.cpp: In member function ‘int pcl::IFSReader::read(const string&, pcl::PolygonMesh&, int&)’:
/home/michele/pcl-trunk/io/src/ifs_io.cpp:244:16: warning: unused variable ‘nr_points’ [-Wunused-variable]
[  9%] Building CXX object io/CMakeFiles/pcl_io.dir/src/image_grabber.cpp.o
[  9%] Building CXX object io/CMakeFiles/pcl_io.dir/src/hdl_grabber.cpp.o
[ 10%] Building CXX object io/CMakeFiles/pcl_io.dir/src/robot_eye_grabber.cpp.o
[ 10%] Building CXX object io/CMakeFiles/pcl_io.dir/src/vtk_lib_io.cpp.o
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp: In function ‘int pcl::io::savePolygonFileVTK(const string&, const pcl::PolygonMesh&)’:
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp:181:16: error: ‘class vtkPolyDataWriter’ has no member named ‘SetInput’
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp: In function ‘int pcl::io::savePolygonFilePLY(const string&, const pcl::PolygonMesh&)’:
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp:197:16: error: ‘class vtkPLYWriter’ has no member named ‘SetInput’
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp: In function ‘int pcl::io::savePolygonFileSTL(const string&, const pcl::PolygonMesh&)’:
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp:212:14: error: ‘class vtkPolyData’ has no member named ‘Update’
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp:214:16: error: ‘class vtkSTLWriter’ has no member named ‘SetInput’
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp: In function ‘void pcl::io::saveRangeImagePlanarFilePNG(const string&, const pcl::RangeImagePlanar&)’:
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp:486:39: error: no matching function for call to ‘vtkImageData::SetNumberOfScalarComponents(int)’
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp:486:39: note: candidate is:
In file included from /home/michele/pcl-trunk/io/include/pcl/io/vtk_lib_io.h:72:0,
                 from /home/michele/pcl-trunk/io/src/vtk_lib_io.cpp:38:
/usr/local/include/vtk-6.0/vtkImageData.h:298:15: note: static void vtkImageData::SetNumberOfScalarComponents(int, vtkInformation*)
/usr/local/include/vtk-6.0/vtkImageData.h:298:15: note:   candidate expects 2 arguments, 1 provided
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp:487:10: error: ‘class vtkImageData’ has no member named ‘SetScalarTypeToFloat’
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp:488:26: error: no matching function for call to ‘vtkImageData::AllocateScalars()’
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp:488:26: note: candidates are:
In file included from /home/michele/pcl-trunk/io/include/pcl/io/vtk_lib_io.h:72:0,
                 from /home/michele/pcl-trunk/io/src/vtk_lib_io.cpp:38:
/usr/local/include/vtk-6.0/vtkImageData.h:237:16: note: virtual void vtkImageData::AllocateScalars(int, int)
/usr/local/include/vtk-6.0/vtkImageData.h:237:16: note:   candidate expects 2 arguments, 0 provided
/usr/local/include/vtk-6.0/vtkImageData.h:244:16: note: virtual void vtkImageData::AllocateScalars(vtkInformation*)
/usr/local/include/vtk-6.0/vtkImageData.h:244:16: note:   candidate expects 1 argument, 0 provided
/home/michele/pcl-trunk/io/src/vtk_lib_io.cpp:507:47: error: ‘class vtkImageData’ has no member named ‘GetProducerPort’
make[2]: *** [io/CMakeFiles/pcl_io.dir/src/vtk_lib_io.cpp.o] Errore 1
make[1]: *** [io/CMakeFiles/pcl_io.dir/all] Errore 2
make: *** [all] Errore 2
michele@michele:~/pcl-trunk/build$

How can I solve this? thank u for the availability
Reply | Threaded
Open this post in threaded view
|

Re: error installing pcl from trunk

Friedrich Politz
The trunk is the current working copy of PCLs source code as you find it on Github. Trunk is not a released version. In fact compiling "from trunk" is the most current (but probably untested) version you can get. So you can either rely on previous stable releases or go with the latest update by using the trunk.

The error could be VTK related. I'd suggest installing 5.8 instead of using 6.
Cheers,
Fred
Reply | Threaded
Open this post in threaded view
|

Re: error installing pcl from trunk

mikeeepcl
This post has NOT been accepted by the mailing list yet.
thank you for the reply.
Just a question: when I use this code

sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update
sudo apt-get install libpcl-all

from http://pointclouds.org/downloads/linux.html to install, It install automatically all this stuff included here http://pointclouds.org/downloads/source.html (openni, vtk, the trunk folder, etc)?
Reply | Threaded
Open this post in threaded view
|

Re: error installing pcl from trunk

james
Administrator
sudo apt-get install libpcl-all will result in the installation of all dependencies, such as vtk.
It will be the latest RELEASE of PCL (e.g. 1.7, or whatever is current at the time). It will not install the trunk. The trunk is the current development of PCL that must be compiled, not the stable release.
Reply | Threaded
Open this post in threaded view
|

Re: error installing pcl from trunk

mikeeepcl
This post has NOT been accepted by the mailing list yet.
thank you! everything clear, everything solved