GithubHelp home page GithubHelp logo

make failed(undefined reference to symbol '_ZN2cv6String10deallocateEv') , can someone help me to solve this problem? about orb_slam3 HOT 4 CLOSED

uz-slamlab avatar uz-slamlab commented on June 8, 2024 1
make failed(undefined reference to symbol '_ZN2cv6String10deallocateEv') , can someone help me to solve this problem?

from orb_slam3.

Comments (4)

ericzzj1989 avatar ericzzj1989 commented on June 8, 2024

It is the same problem with ros in ORB-SLAM2
Add "-lboost_system" in Cmakelists.txt of ros example, like:

set(LIBS
${OpenCV_LIBS}
${EIGEN3_LIBS}
${Pangolin_LIBRARIES}
${PROJECT_SOURCE_DIR}/../../../Thirdparty/DBoW2/lib/libDBoW2.so
${PROJECT_SOURCE_DIR}/../../../Thirdparty/g2o/lib/libg2o.so
${PROJECT_SOURCE_DIR}/../../../lib/libORB_SLAM3.so
-lboost_system
)

from orb_slam3.

DreamWaterFound avatar DreamWaterFound commented on June 8, 2024

Besides "boost" problem, you may have a problem with multiple versions of OpenCV. Pay attention to cmake warnings, check cmake variables and link path after executed cmake ... Custom installed OpenCV, ROS, and Anaconda may lead to this error. Without more information about your OS version, GCC/G++ version, OpenCV version and installed path, etc, I am sorry that I have no more detailed suggestions to help you.

Notice: this error is ENTIRELY about your own dependencies, not the author's problem. Give dislike will not help you solve any problems.

from orb_slam3.

jj-gomez avatar jj-gomez commented on June 8, 2024

As @DreamWaterFound added before, you may have duplicated libraries or multiple versions of OpenCV that maybe are messing with the linking step.Please, check wheter CMake is picking the correct path to OpenCV or if the version installed is above the minimum required. I suggest you to set the CMake verbose flag in order to track better the error.

from orb_slam3.

jj-gomez avatar jj-gomez commented on June 8, 2024

This bug was solved in #44.

from orb_slam3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.