Page 1 of 1

☑ qCSF compile (make) error on Ubuntu 16.04

Posted: Fri Jul 15, 2016 9:35 pm
by swiss_knight
Hi,

after a completed compilation without this plugin, I ended up with an error when trying to compile while enabling INSTALL_QCSF_PLUGIN in cmake-gui.
Here is the last lines of the 'make' process :

Code: Select all

[ 56%] Generating qrc_qCSF.cpp
[ 56%] Generating ui_CSFDlg.h
Scanning dependencies of target QCSF_PLUGIN
[ 56%] Building CXX object plugins/qCSF/CMakeFiles/QCSF_PLUGIN.dir/Cloud2CloudDist.cpp.o
In file included from /home/username/Downloads/CloudCompare/trunk/plugins/qCSF/Cloth.h:28:0,
                 from /home/username/Downloads/CloudCompare/trunk/plugins/qCSF/Cloud2CloudDist.h:4,
                 from /home/username/Downloads/CloudCompare/trunk/plugins/qCSF/Cloud2CloudDist.cpp:1:
/home/username/Downloads/CloudCompare/trunk/plugins/qCSF/Particle.h:35:2: error: ‘size_t’ does not name a type
  size_t nearestPointIndex;//��Ӧ��lidar�����ٽ��������� index  nearest lidar point
  ^
plugins/qCSF/CMakeFiles/QCSF_PLUGIN.dir/build.make:75: recipe for target 'plugins/qCSF/CMakeFiles/QCSF_PLUGIN.dir/Cloud2CloudDist.cpp.o' failed
make[2]: *** [plugins/qCSF/CMakeFiles/QCSF_PLUGIN.dir/Cloud2CloudDist.cpp.o] Error 1
CMakeFiles/Makefile2:1542: recipe for target 'plugins/qCSF/CMakeFiles/QCSF_PLUGIN.dir/all' failed
make[1]: *** [plugins/qCSF/CMakeFiles/QCSF_PLUGIN.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 56%] Building CXX object plugins/qPCL/PclIO/CMakeFiles/QPCL_IO_PLUGIN.dir/QPCL_IO_PLUGIN_automoc.cpp.o
[ 56%] Built target QPCL_PLUGIN
[ 57%] Linking CXX shared library libQPCL_IO_PLUGIN.so
[ 57%] Built target QPCL_IO_PLUGIN
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
The strange characters here come as they also are in my terminal stdout. It's not a copy/paste error or whatever.

I'm running Ubuntu 16.04, kernel : 4.4.0-28-generic, Qt 5.5.1 (and libLAS 1.8.0)

Thanks !
Regards.

ps: oops, do not hesitate to move the thread to the developer section if needed.

Re: qCSF compile (make) error on Ubuntu 16.04

Posted: Sat Jul 16, 2016 7:09 am
by wpqjbzwm
hi, @swiss_knight.

We fixed these bugs several days ago, but it seems the modifications have not been updated to github, so we put it here temporarily, just overlap by files in the attachment.

Please download it and discuss it in http://www.danielgm.net/cc/forum/viewto ... 7031#p7031.

Thank you for feedback.

Re: qCSF compile (make) error on Ubuntu 16.04

Posted: Sat Jul 16, 2016 7:38 am
by wpqjbzwm
it seems that size_t is not found. it should be modifed to "std::size_t" .
we created a pull request on the github, but their exists some conflicts, which need to be fixed to get merged.

Re: qCSF compile (make) error on Ubuntu 16.04

Posted: Sat Jul 16, 2016 9:01 am
by swiss_knight
Hello,

Thank you, it seems to build correctly with your new files :
  • Cloth.h
    Particle.h
    PointCloud.h
    Rasterization.cpp
:)

Re: ☑ qCSF compile (make) error on Ubuntu 16.04

Posted: Sat Jul 16, 2016 2:03 pm
by daniel
@wpqjbzwm You'll have to fix the conflict on your branch:
https://help.github.com/articles/resolv ... mand-line/

Re: ☑ qCSF compile (make) error on Ubuntu 16.04

Posted: Sun Jul 17, 2016 1:39 pm
by wpqjbzwm
we have fix the conflicts, and the updated files have been mergred into the main trunk.