Git Product home page Git Product logo

Comments (3)

felixendres avatar felixendres commented on July 20, 2024

That is weird. The only error source I can make out is misc.cpp, line 763. Since this didn't change recently, I have no idea what causes this.

Maybe the rest of the error message would help. Please try running catkin_make -j1 for readability and to exclude the chance of memory exhaustion.

I assume you are working on an x86_64 architecture (see uname -m)?

from rgbdslam_v2.

ap108 avatar ap108 commented on July 20, 2024

Thanks for the reply. I get the output attached when running catkin_make -j1. It is similar to the previous output but has the whole error. I'm on x86_64. Thank you
rgbdslam catkin_make_j1.txt

from rgbdslam_v2.

felixendres avatar felixendres commented on July 20, 2024

Ok, the error is buried deeply:

/home/ap/catkin_ws/src/rgbdslam_v2/src/misc.cpp:804:25: error: ‘int round(float)’ conflicts with a previous declaration
/usr/include/c++/6/cmath:1708:3: note: previous declaration ‘constexpr float std::round(float)’

My guess is that, on your system, one of rgbdslam's dependencies includes the namespace "std" in a header file.

Probably the best solution is to explicitly scope the 4 calls of round in misc.cpp to the global scope, by replacing round(...) with ::round(...). Or rename the function to "round_float_to_int".

from rgbdslam_v2.

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.