joyjo / to-generate-2D-floorplan-CAD-from-3D-point-clouds

Automatic 2D Floorplan CAD Generation from 3D Point Clouds
60 stars 13 forks source link

Troubles running demo #2

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi, I guess there is a mistake in the instructions:

mkdir build
cd build
make 

./floorplan

when I type make, I'm getting an error, which seems to be reasonable:

make: *** No targets specified and no makefile found. Stop.

However, when I type cmake .., it creates the cmake, Makefile files in the build directory. Then, I run make and getting this:

home/user/to-generate-2D-floorplan-CAD-from-3D-point-clouds/build$ make 

Scanning dependencies of target floorplan
[ 50%] Building CXX object CMakeFiles/floorplan.dir/floorplan.cpp.o
In file included from home/user/to-generate-2D-floorplan-CAD-from-3D-point-clouds/floorplan.cpp:6:0:
/usr/include/pcl-1.8/pcl/sample_consensus/model_types.h: In function ‘void __static_initialization_and_destruction_0(int, int)’:
/usr/include/pcl-1.8/pcl/sample_consensus/model_types.h:99:3: warning: ‘pcl::SAC_SAMPLE_SIZE’ is deprecated: This map is deprecated and is kept only to prevent breaking existing user code. Starting from PCL 1.8.0 model sample size is a protected member of the SampleConsensusModel class [-Wdeprecated-declarations]
   SAC_SAMPLE_SIZE (sample_size_pairs, sample_size_pairs + sizeof (sample_size_pairs) / sizeof (SampleSizeModel));
   ^~~~~~~~~~~~~~~
/usr/include/pcl-1.8/pcl/sample_consensus/model_types.h:99:3: note: declared here
[100%] Linking CXX executable floorplan
CMakeFiles/floorplan.dir/floorplan.cpp.o: In function `fastLineDetection()':
floorplan.cpp:(.text+0x3de2): undefined reference to `cv::ximgproc::createFastLineDetector(int, float, double, double, int, bool)'
collect2: error: ld returned 1 exit status
CMakeFiles/floorplan.dir/build.make:382: recipe for target 'floorplan' failed
make[2]: *** [floorplan] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/floorplan.dir/all' failed
make[1]: *** [CMakeFiles/floorplan.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Any ideas ?

ghost commented 4 years ago

wrong opencv version.