Giter Site home page Giter Site logo

Comments (4)

gaoxiang12 avatar gaoxiang12 commented on June 22, 2024

请描述现象或给出报错结果,方便别人帮你分析原因。
如果什么信息都没有,请用gdb或其他工具自行调试。

from slambook2.

vo8zhaoyao avatar vo8zhaoyao commented on June 22, 2024

高博您好,感谢您的回复,我运行段结果如下,应该属于什么信息也没有,可能我需要自己找原因,很困惑。
xlab@xlab:/slambook2/ch8/build$ cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xlab/slambook2/ch8/build
xlab@xlab:
/slambook2/ch8/build$ make
[ 50%] Built target direct_method
[100%] Built target optical_flow
xlab@xlab:~/slambook2/ch8/build$ ./direct_method
段错误 (核心已转储)

from slambook2.

gaoxiang12 avatar gaoxiang12 commented on June 22, 2024

如果你有IDE,可以使用IDE里的断点调试功能。没有的话,用gdb命令也行,不过使用方法需要自学一下。
我推测应该是目录不对或者找不到文件一类的问题。

from slambook2.

vo8zhaoyao avatar vo8zhaoyao commented on June 22, 2024

十分感谢,我已经找到了问题所在,是图片路径的问题,我将例程里的相对路径改为绝对路径之后就可以了!
// paths
string left_file = "/home/xlab/slambook2/ch8/left.png";
string disparity_file = "/home/xlab/slambook2/ch8/disparity.png";
boost::format fmt_others("/home/xlab/slambook2/ch8/%06d.png"); // other files

from slambook2.

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.