zgojcic/3DSmoothNet

compile cpp file

fyang064 opened this issue · 3 comments

Hello,

I'm wondering which version of the pcl library you used in the project. Since I came across a error when I trying to compile the cpp file following your instructions.
image
And I checked online and found that PointXYZ is a struct member of the pcl 1.12, but I'm not sure it is the reason that the cpp file cannot be made.

In addition, the "glob3" package in the requirements.txt cannot be installed via pip. Looking forward to hearing from you!

Thanks,
Felix

I checked when they uploaded their last commit (in April 2019) and what was the newest PCL release at that time (1.9.1 from 26.11.2018).
Using this release I was able to build everything. I just had to add SET(CMAKE_CXX_FLAGS "-std=c++11 -O3") to the CMakeLists of main.cpp.

I had the same issue with glob3 as well so I install glob2 instead and it seems to work

Found this issue as well.
Fixed by adding missing imports so it can work with newer libs.

Used libs:
PCL version: 1.12.0-dev
Boost version: 1.65.1

core/core.h:
#include <pcl/impl/point_types.hpp>

main.cpp:
#include "boost/filesystem.hpp"

Thank you @ivagavran314 I successfully complied the program as per your comments.