Giter Site home page Giter Site logo

Build Issue about mapviz HOT 7 CLOSED

swri-robotics avatar swri-robotics commented on August 15, 2024
Build Issue

from mapviz.

Comments (7)

pjreed avatar pjreed commented on August 15, 2024

Which Ubuntu/ROS distributions and branch of marti_common are you using? Check to make sure your git branches match your ROS distro.

ROS Hydro provided opencv2 as a ROS dependency, but as of Indigo it was removed and now it's preferred to depend on the system dependency libopencv-dev. So, if you're using Hydro, try:

sudo apt-get install ros-hydro-opencv2

But if you're on Indigo, try:

sudo apt-get install libopencv-dev

from mapviz.

droter avatar droter commented on August 15, 2024

I am using Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04
with ROS indigo. I ran the sudo apt-get install libopencv-dev and it said that it is already installed. The branch I am using is ref: refs/heads/indigo-devel

from mapviz.

pjreed avatar pjreed commented on August 15, 2024

It looks like the symbols the compiler is looking for should be defined in /usr/include/opencv2/ml/ml.hpp . Check to see if you have that file, and if you don't, try:

libopencv-ml-dev

from mapviz.

droter avatar droter commented on August 15, 2024

I have the file in /usr/include/opencv2/ml/ml.hpp and libopencv-ml-dev is installed. Do I need to set the rosversion opencv2 so it can find the directory?

from mapviz.

pjreed avatar pjreed commented on August 15, 2024

I don't think so, I've been able to compile it on multiple different computers without doing that. I suspect that there might be an issue somewhere with a missing transitive dependency due to something I have in my workspace that isn't in yours.

Just to verify -- do you have the mapviz, marti_common, and marti_messages repositories all in your workspace? Are all of them on the indigo-devel branch?

from mapviz.

shaun-edwards avatar shaun-edwards commented on August 15, 2024

@pjreed, @droter, It appears mapviz is building correctly on the ROS servers here. If there were a dependency issue, it is almost always caught there.

I've found that the package manager can mess things up sometimes. One thing to try is to remove/install something that you know uses the openCV dependency. You could try cv_bridge or if you want the nuclear option, remove/install ros-indigo*. This seems extreme, but it doesn't take too long and it has fixed similar problems in the past for me.

from mapviz.

droter avatar droter commented on August 15, 2024

Thanks for your help.

There must be a conflict on my computer. I installed the package on a clean install and it work perfect.

from mapviz.

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.