alessandro-gentilini / Efficient-RANSAC-for-Point-Cloud-Shape-Detection

Efficient RANSAC for Point-Cloud Shape Detection
126 stars 30 forks source link

Cannot generate the executable #6

Closed molaiea closed 1 year ago

molaiea commented 1 year ago

Hello there, I am trying to test the code but I get stuck in building the executable, here is the error I get when I run : g++ -I./ -o main main.cpp

/usr/bin/ld: /tmp/cc6Q5t5Y.o: warning: relocation against_ZTV33CylinderPrimitiveShapeConstructor' in read-only section .text._ZN33CylinderPrimitiveShapeConstructorC2Ev[_ZN33CylinderPrimitiveShapeConstructorC5Ev]' /usr/bin/ld: /tmp/cc6Q5t5Y.o: in functionmain': main.cpp:(.text+0x47): undefined reference to PointCloud::PointCloud()' /usr/bin/ld: main.cpp:(.text+0x2a7): undefined reference toPointCloud::calcNormals(float, unsigned int, unsigned int)' /usr/bin/ld: main.cpp:(.text+0x39c): undefined reference to RansacShapeDetector::RansacShapeDetector(RansacShapeDetector::Options const&)' /usr/bin/ld: main.cpp:(.text+0x3d1): undefined reference toRansacShapeDetector::Add(PrimitiveShapeConstructor)' /usr/bin/ld: main.cpp:(.text+0x406): undefined reference to `RansacShapeDetector::Add(PrimitiveShapeConstructor)' /usr/bin/ld: main.cpp:(.text+0x44f): undefined reference to RansacShapeDetector::Detect(PointCloud&, unsigned long, unsigned long, MiscLib::Vector<std::pair<MiscLib::RefCountPtr<PrimitiveShape>, unsigned long>, MiscLib::AlignedAllocator<std::pair<MiscLib::RefCountPtr<PrimitiveShape>, unsigned long>, 8u> >*)' /usr/bin/ld: main.cpp:(.text+0x600): undefined reference toRansacShapeDetector::~RansacShapeDetector()' /usr/bin/ld: main.cpp:(.text+0x6d8): undefined reference to RansacShapeDetector::~RansacShapeDetector()' /usr/bin/ld: /tmp/cc6Q5t5Y.o: in functionMiscLib::RefCount::RefCount()': main.cpp:(.text._ZN7MiscLib8RefCountC2Ev[_ZN7MiscLib8RefCountC5Ev]+0xf): undefined reference to vtable for MiscLib::RefCount' /usr/bin/ld: /tmp/cc6Q5t5Y.o: in functionPlanePrimitiveShapeConstructor::PlanePrimitiveShapeConstructor()': main.cpp:(.text._ZN30PlanePrimitiveShapeConstructorC2Ev[_ZN30PlanePrimitiveShapeConstructorC5Ev]+0x1f): undefined reference to vtable for PlanePrimitiveShapeConstructor' /usr/bin/ld: /tmp/cc6Q5t5Y.o: in functionCylinderPrimitiveShapeConstructor::CylinderPrimitiveShapeConstructor()': main.cpp:(.text._ZN33CylinderPrimitiveShapeConstructorC2Ev[_ZN33CylinderPrimitiveShapeConstructorC5Ev]+0x1f): undefined reference to vtable for CylinderPrimitiveShapeConstructor' /usr/bin/ld: /tmp/cc6Q5t5Y.o:(.data.rel.ro._ZTI25PrimitiveShapeConstructor[_ZTI25PrimitiveShapeConstructor]+0x10): undefined reference totypeinfo for MiscLib::RefCount' /usr/bin/ld: warning: creating DT_TEXTREL in a PIE collect2: error: ld returned 1 exit status `