Code: Select all
...
[ 49%] Building CXX object libs/qCC_io/CMakeFiles/QCC_IO_LIB.dir/PVFilter.cpp.o
[ 50%] Building CXX object libs/qCC_io/CMakeFiles/QCC_IO_LIB.dir/DepthMapFileFilter.cpp.o
[ 50%] Building CXX object libs/qCC_io/CMakeFiles/QCC_IO_LIB.dir/RasterGridFilter.cpp.o
[ 50%] Building CXX object libs/qCC_io/CMakeFiles/QCC_IO_LIB.dir/DxfFilter.cpp.o
[ 50%] Building CXX object libs/qCC_io/CMakeFiles/QCC_IO_LIB.dir/FileIOFilter.cpp.o
[ 50%] Building CXX object libs/qCC_io/CMakeFiles/QCC_IO_LIB.dir/VTKFilter.cpp.o
[ 51%] Building CXX object libs/qCC_io/CMakeFiles/QCC_IO_LIB.dir/PTXFilter.cpp.o
[ 51%] Building CXX object libs/qCC_io/CMakeFiles/QCC_IO_LIB.dir/AsciiOpenDlg.cpp.o
...
:)
But... at the very end :
Code: Select all
(...)
[100%] Linking CXX executable CloudCompare
../libs/qCC_io/libQCC_IO_LIB.so: undefined reference to `liblas::Header::GetMinZ() const'
../libs/qCC_io/libQCC_IO_LIB.so: undefined reference to `liblas::Classification::GetClass() const'
../libs/qCC_io/libQCC_IO_LIB.so: undefined reference to `liblas::Header::Compressed() const'
../libs/qCC_io/libQCC_IO_LIB.so: undefined reference to `liblas::Point::GetY() const'
http://pastebin.com/raw/8MjVWiaR
Ending with the related error :
"collect2: error: ld returned 1 exit status"
It seems that the linking step in the build process encountered some issues.
Exactly the same error appears when Linking CXX executable for ccViewer.
Some more informations :
This was the cmake-gui entries containing the word 'las' :
Here are the contents of these two directories :
$ tree /usr/include/liblas/
http://pastebin.com/raw/k97XM40Q
and :
$ find /usr/lib -iname "*liblas*"
/usr/lib/liblas.so
/usr/lib/python2.7/dist-packages/liblas
/usr/lib/python2.7/dist-packages/libLAS-1.8.0.egg-info
/usr/lib/liblas.so.2.3.0
/usr/lib/liblas_c.so.3
/usr/lib/liblas_c.so.2.3.0
/usr/lib/liblas_c.so
/usr/lib/liblas.so.3
It's liblas1.8.0, freshly installed from the Xenial official repositories. All theses packages are installed :
Code: Select all
$ sudo apt-cache search liblas | grep -i lidar
liblas-bin - ASPRS LiDAR data translation toolset
liblas-c-dev - ASPRS LiDAR data translation library - C development files
liblas-c3 - ASPRS LiDAR data translation library - C version
liblas-dev - ASPRS LiDAR data translation library - C++ development files
liblas3 - ASPRS LiDAR data translation library - C++ version
python-liblas - Python module to use the ASPRS LiDAR data translation library
Thanks a lot !