Giter Club home page Giter Club logo

Comments (8)

felixendres avatar felixendres commented on July 21, 2024

Hi Mayur,
thanks for posting what works. I'll include the line

cmake .. -DCMAKE_INSTALL_PREFIX=~/g2ofork/install -DG2O_BUILD_EXAMPLES=OFF

in the README.

The below part of your error message shows that the compiler uses the headers of the ros-kinetic-libg2o package. Please try to use the BEFORE parameter in CMakeLists.txt line 92, so that it reads
include_directories(BEFORE SYSTEM ${G2O_INCLUDE_DIR} ${G2O_INCLUDE_DIRS}).
If that doesn't work (I would be very interested to know whether it does), I guess you must uninstall ros-kinetic-libg2o.

In file included from /usr/include/c++/5/unordered_map:35:0,
from /opt/ros/kinetic/include/g2o/core/hyper_graph.h:38,
from /opt/ros/kinetic/include/g2o/core/optimizable_graph.h:38,
from /opt/ros/kinetic/include/g2o/core/sparse_optimizer.h:32,
from /home/atros/rgbdslam_v2/build/rgbdslam_v2/src/../../../src/rgbdslam_v2/src/graph_manager.h:58,
from /home/atros/rgbdslam_v2/build/rgbdslam_v2/src/../../../src/rgbdslam_v2/src/openni_listener.h:31,
from /home/atros/rgbdslam_v2/build/rgbdslam_v2/src/moc_openni_listener.cpp:9:

from rgbdslam_v2.

mayurand avatar mayurand commented on July 21, 2024

Hi,

For the g2o make, I would like to inform that if the package libqglviewer-dev package (which is based on qt5) is present then it breaks the compilation. I removed it and the g++03 fork worked.

I tried the BEFORE argument but it didnt work. I had compiled the g2ofork without the ros-kinetic-libg2o. I tried catkin_make with and without the ros-kinetic-libg2o but in both the cases the same result.

from rgbdslam_v2.

anuppari avatar anuppari commented on July 21, 2024

I'm having the same issue. Can you explain exactly what you did? Did you compile g2o separately? How? What is the g++03 fork?

To be clear, I'm getting the #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. errors.

from rgbdslam_v2.

felixendres avatar felixendres commented on July 21, 2024

@mayurand, interesting. If the BEFORE didn't work, I have no idea other than uninstalling.

@anuppari, the g2o c++03 fork removes features only available in c++11, the C++ 2011 standard and therefore falls back to the 2003 standard c++03. Apparently this is necessary to link g2o and boost (which pcl uses) to the same binary, i.e., rgbdslam_v2.

from rgbdslam_v2.

anuppari avatar anuppari commented on July 21, 2024

from rgbdslam_v2.

mayurand avatar mayurand commented on July 21, 2024

@felixendres Thanks for your support. I tried to force the std c++11 by setting compiler in Cmakelists.txt (line 35). It did build the package but the run file does not execute. That results in segementation fault.

from rgbdslam_v2.

felixendres avatar felixendres commented on July 21, 2024

@mayurand, that is exactly why the c++03 fork exists.

from rgbdslam_v2.

felixendres avatar felixendres commented on July 21, 2024

I have added an install script for the kinetic brachn, that should help you. Have a look at the section "Installation from scratch" in README.md.

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.