☑ Error 2 while compiling CC 2.7 on Ubuntu

All about Linux portage
swiss_knight
Posts: 28
Joined: Sun Aug 30, 2015 12:11 pm

Re: Error 2 while compiling CC 2.7 on Ubuntu

Post by swiss_knight »

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
...
The third line here made me smile
:)

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'
and many more ; here are the complete last lines from the 'make' stdout :
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' :
Image

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
I do not feel I'm wrong somewhere but who knows...

Thanks a lot !
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Error 2 while compiling CC 2.7 on Ubuntu

Post by daniel »

The cmake liblas_library_file variable should point to the actual library file (.a or. so) not the folder.
Daniel, CloudCompare admin
swiss_knight
Posts: 28
Joined: Sun Aug 30, 2015 12:11 pm

Re: Error 2 while compiling CC 2.7 on Ubuntu

Post by swiss_knight »

Hello,

It's now ending correctly !!
Thanks a LOT !

( > CC is really slow.... it has taken more than 20min to compute normals on a 45 Mpts points clouds and just moving and rotating the cloud around is lags like hell )


But as I never come empty-handed here are a few new questions :

1) The changes you committed to github were on the 2.8 beta.
Will you also upgrade the 2.7 version we can found here on the release page : https://github.com/cloudcompare/trunk/releases ?

2) CC 2.8 beta comes without qCANUPO, is it normal ?
How to add this plug-in ?
Is it available in 2.7 ?
Answer is : no, it's not natively available. Here is what is in the plugin dir of the 2.7 release :

Code: Select all

$ tree -L 1 -d ./
./
├── qAnimation
├── qBlur
├── qCork
├── qCSVMatrixIO
├── qDummyPlugin
├── qEDL
├── qFacets
├── qGMMREG
├── qHPR
├── qKinect
├── qPCL
├── qPCV
├── qPoissonRecon
├── qRANSAC_SD
├── qSRA
└── qSSAO
2.5) Same question about qM3C2 which is also not there.
Answer same as above.

3) I noticed the following libraries have almost the same name :
Image
Do we need both or could we drop the two OPENNI entries (without the '2') ?


4) ☑ [FIXED BY wpqjbzwm] If I enable INSTALL_QCSF_PLUGIN in cmake-gui, configure and generating outputs seem the same as before, nothing new.
But when making the software it comes a new issue with strange characters...
As this error is related to this particular plugin I will post in a new dedicated thread in the plugins section :
viewtopic.php?f=17&t=1825&sid=5f23424f7 ... 7d9796060a


Thanks a lot again for your work ! ;-)
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: ☑ Error 2 while compiling CC 2.7 on Ubuntu

Post by daniel »

0) Slow CC: are you sure you are not compiling in debug mode? Otherwise the normals computation time highly depends on the kernel size (radius). And the display depends on your graphic card and/or driver

1) The 2.7 release corresponds to a given tag (https://github.com/cloudcompare/trunk/r ... tag/v2.7.0). It is not modified after this point. However the 2.8.beta version is online (and I update it from time to time).

2) Indeed, qCanupo and M3C2 sources are not public yet. Canupo is only shipped as a binary with the Windows version for now. Hopefully the sources will be released soon...

3) OpenNI is an optional dependency of one of the library we use (I believe it's PCL?). It is not used by CC and therefore it's not necessary to set these variables!

4) The strange characters were chinese comments ;)
Daniel, CloudCompare admin
swiss_knight
Posts: 28
Joined: Sun Aug 30, 2015 12:11 pm

Re: ☑ Error 2 while compiling CC 2.7 on Ubuntu

Post by swiss_knight »

Hi,

Yes CC is really really slow, I don't know why, there is absolutely no overloads in memory or CPU usage. (this is strange in fact).
Edit : yes 1 CPU is running at 100% during the move of the cloud for example.

Just moving the cloud or rotate it is very slow.

The compile mode was : "release".
I didn't touch any exotic features or whatever.
I compiled it as simple as can be.
I'll check if I can test the graphic card, but with the new 'radeon' driver, there is not much informations I can find to watch actual running speeds or so... And this is a pain : http://www.omgubuntu.co.uk/2016/03/ubun ... iver-16-04 :-(


Thanks for the other answers about plugins =) it's clear now.
Openni is used by PCL yes.

Regards.
Last edited by swiss_knight on Fri Jul 22, 2016 12:13 pm, edited 1 time in total.
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: ☑ Error 2 while compiling CC 2.7 on Ubuntu

Post by daniel »

What OpenGL manufacturer and version is displayed in the console? (should be near the beginning when you start)
Daniel, CloudCompare admin
swiss_knight
Posts: 28
Joined: Sun Aug 30, 2015 12:11 pm

Re: ☑ Error 2 while compiling CC 2.7 on Ubuntu

Post by swiss_knight »

When I start CloudCompare I only get this line in the terminal:

Code: Select all

$ CloudCompare 
void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "" under id 97
Otherise, I hope this may help:

Code: Select all

$ glxinfo | grep "OpenGL version"
OpenGL version string: 3.0 Mesa 11.2.0
And with more details:

Code: Select all

$ glxinfo | grep 'version'
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 4.1
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.2.0
OpenGL core profile shading language version string: 4.10
OpenGL version string: 3.0 Mesa 11.2.0
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: ☑ Error 2 while compiling CC 2.7 on Ubuntu

Post by daniel »

Sorry I was referring to CC's own console (press F8 if it doesn't appear by default)
Daniel, CloudCompare admin
swiss_knight
Posts: 28
Joined: Sun Aug 30, 2015 12:11 pm

Re: ☑ Error 2 while compiling CC 2.7 on Ubuntu

Post by swiss_knight »

Here it all what appear at launch :
Image
(clic = bigger)
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: ☑ Error 2 while compiling CC 2.7 on Ubuntu

Post by daniel »

MESA is an emulation of OpenGL... you are not using your graphic card driver here.
Daniel, CloudCompare admin
Post Reply