☑ qCSF compile (make) error on Ubuntu 16.04

For any question about plugins!
Post Reply
swiss_knight
Posts: 28
Joined: Sun Aug 30, 2015 12:11 pm

☑ qCSF compile (make) error on Ubuntu 16.04

Post 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.
Last edited by swiss_knight on Sat Jul 16, 2016 9:02 am, edited 1 time in total.
wpqjbzwm
Posts: 37
Joined: Tue May 24, 2016 10:59 am

Re: qCSF compile (make) error on Ubuntu 16.04

Post 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.
wpqjbzwm
Posts: 37
Joined: Tue May 24, 2016 10:59 am

Re: qCSF compile (make) error on Ubuntu 16.04

Post 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.
swiss_knight
Posts: 28
Joined: Sun Aug 30, 2015 12:11 pm

Re: qCSF compile (make) error on Ubuntu 16.04

Post by swiss_knight »

Hello,

Thank you, it seems to build correctly with your new files :
  • Cloth.h
    Particle.h
    PointCloud.h
    Rasterization.cpp
:)
daniel
Site Admin
Posts: 7332
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

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

Post by daniel »

@wpqjbzwm You'll have to fix the conflict on your branch:
https://help.github.com/articles/resolv ... mand-line/
Daniel, CloudCompare admin
wpqjbzwm
Posts: 37
Joined: Tue May 24, 2016 10:59 am

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

Post by wpqjbzwm »

we have fix the conflicts, and the updated files have been mergred into the main trunk.
Post Reply