Giter Site home page Giter Site logo

编译错误 about modified_yolo_orb_slam3 HOT 9 OPEN

Skyler941 avatar Skyler941 commented on July 17, 2024
编译错误

from modified_yolo_orb_slam3.

Comments (9)

Skyler941 avatar Skyler941 commented on July 17, 2024

CMake Error at CMakeLists.txt:91 (ADD_LIBRARY): No SOURCES given to target: g2o

Cannot find source file:

g2o/stuff/timeutil.cpp

CMake Error at CMakeLists.txt:43 (add_library):

Cannot find source file:

DUtils/Timestamp.cpp

这两个位置各少了四个文件 还有cmakelists 里面调用opencv那里我是按照原版本的yolo slam 来的 这样编译成功了

但是跑V102这个数据集的时候报错

Initialization of Atlas from scratch Creation of new map with id: 0 Creation of new map with last KF id: 0 已放弃 (核心已转储)

大佬能不能帮我看看

from modified_yolo_orb_slam3.

HLkyss avatar HLkyss commented on July 17, 2024

CMake Error at CMakeLists.txt:91 (ADD_LIBRARY): No SOURCES given to target: g2o
Cannot find source file:

g2o/stuff/timeutil.cpp

CMake Error at CMakeLists.txt:43 (add_library):

Cannot find source file:

DUtils/Timestamp.cpp

这两个位置各少了四个文件 还有cmakelists 里面调用opencv那里我是按照原版本的yolo slam 来的 这样编译成功了
但是跑V102这个数据集的时候报错
Initialization of Atlas from scratch Creation of new map with id: 0 Creation of new map with last KF id: 0 已放弃 (核心已转储)

大佬能不能帮我看看

你好,缺失的那几个文件已补充,和原来的yolo orb slam里的文件是一样的。此外,我只在原来yolo orb slam的cmakelists基础上修改了有关opencv和cv_bridge的部分,其他的没有修改,要是之前的代码能跑的话这个应该也应该能,要是还有问题你可以对比一下原版yolo orb slam的cmakelists。最后如果报错核心已转储,建议在终端输入指令运行试试

from modified_yolo_orb_slam3.

Skyler941 avatar Skyler941 commented on July 17, 2024

CMake Error at CMakeLists.txt:91 (ADD_LIBRARY): No SOURCES given to target: g2o
Cannot find source file:

g2o/stuff/timeutil.cpp

CMake Error at CMakeLists.txt:43 (add_library):

Cannot find source file:

DUtils/Timestamp.cpp

这两个位置各少了四个文件 还有cmakelists 里面调用opencv那里我是按照原版本的yolo slam 来的 这样编译成功了
但是跑V102这个数据集的时候报错
Initialization of Atlas from scratch Creation of new map with id: 0 Creation of new map with last KF id: 0 已放弃 (核心已转储)

大佬能不能帮我看看

你好,缺失的那几个文件已补充,和原来的yolo orb slam里的文件是一样的。此外,我只在原来yolo orb slam的cmakelists基础上修改了有关opencv和cv_bridge的部分,其他的没有修改,要是之前的代码能跑的话这个应该也应该能,要是还有问题你可以对比一下原版yolo orb slam的cmakelists。最后如果报错核心已转储,建议在终端输入指令运行试试

大佬我现在就是报了指令的错误 编译是成功的,运行指令后就报错核心已转储,把数据集和指令用orbslam3是可以跑通的

from modified_yolo_orb_slam3.

HLkyss avatar HLkyss commented on July 17, 2024

segmentation fault(core dumped)的错误原因挺多的,你可以调试一下看具体是哪里的问题?另外,之前跑orb slam好像也遇到过,说可能是某些库的编译选项造成的,比如“g2o和ORB_SLAM3有一个编译选项(-march=native)不一致”,不知道会不会是这类原因

from modified_yolo_orb_slam3.

HLkyss avatar HLkyss commented on July 17, 2024

我看原版也有不少人说有这个错误,感觉也可能是torch环境的问题

from modified_yolo_orb_slam3.

HLkyss avatar HLkyss commented on July 17, 2024

之前我也遇到过这个问题,然后把build文件夹全删了,整个重新编译一下就好了,你可以试试

from modified_yolo_orb_slam3.

Skyler941 avatar Skyler941 commented on July 17, 2024

我看原版也有不少人说有这个错误,感觉也可能是torch环境的问题

尝试了几个办法 opencv版本改成3.2 cmakeLists.txt文件并且去掉里面的 -march=native 的指令 都没效果
报错还是已放弃核心已转储 网上的错误都是段错误 好像还不太一样

from modified_yolo_orb_slam3.

HLkyss avatar HLkyss commented on July 17, 2024

调试过了吗?YoloDetect.cpp里有一句加载模型的语句,我改成了我的绝对路径,你看看是不是这个问题。还不是的话,只能慢慢调试看一下了

from modified_yolo_orb_slam3.

Skyler941 avatar Skyler941 commented on July 17, 2024

调试过了吗?YoloDetect.cpp里有一句加载模型的语句,我改成了我的绝对路径,你看看是不是这个问题。还不是的话,只能慢慢调试看一下了

这次搞定了 谢谢大佬 跑起来了

from modified_yolo_orb_slam3.

Related Issues (4)

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.