Coder Social home page Coder Social logo

Errors during compiling about depth_clustering HOT 7 CLOSED

prbonn avatar prbonn commented on May 17, 2024
Errors during compiling

from depth_clustering.

Comments (7)

RabahZeroukhi avatar RabahZeroukhi commented on May 17, 2024 1

thanks for reply, I want to build using cmake .. and make -j4, it was configured well after editing Cmakelist.txt removing "find_package(eigen3 required)" and adding
"find_package(PkgConfig)
pkg_search_module(Eigen3 REQUIRED eigen3)",
because i had the problem which you mentioned (eigen 3 lib)
cmake
and then when i run " make -j4" it didn't compile the whole package
make-j4

for you information, i have ubuntu 14.04 as OS and ROS indigo. thanks again.

from depth_clustering.

niosus avatar niosus commented on May 17, 2024

Please install catkin_tools:

supo pip install catkin_tools

and run catkin build instead of catkin_make. It will probably produce either a proper build or a better error. Also, make sure that you have eigen3 library installed.

from depth_clustering.

niosus avatar niosus commented on May 17, 2024

It looks like smth is wrong with your system. eigen3 should be found on a system with ROS indigo out of the box using find_package(Eigen3 REQUIRED) (make sure to spell Eigen3 exactly like here).

To check this, I have just spawned a new docker image with image: ros:indigo-perception and after following the installation steps everything builds as expected using cmake and make. You can also do it yourself if you have docker running on your system. Here are all commands:

Run the docker container:

sudo docker run -it ros:indigo-perception bash

Now from this container install the libraries missing out of the box:

apt update
apt install -y libqglviewer-dev freeglut3-dev

Now with libraries installed, clone and build the code:

mkdir -p catkin_ws/src && cd catkin_ws/src
git clone https://github.com/Photogrammetry-Robotics-Bonn/depth_clustering.git
cd depth_clustering && mkdir build && cd build
cmake ..
make -j4

This builds the code for me with no issues and proves that the code builds on a clean system. Therefore, I feel that there is smth strange going on on your side. I can't really tell you more, I guess...

from depth_clustering.

RabahZeroukhi avatar RabahZeroukhi commented on May 17, 2024

Yes it works, thanks very much.

from depth_clustering.

LiShuaixin avatar LiShuaixin commented on May 17, 2024

HI @niosus
I still meet the error while I use catkin build instead of catkin_make.
default

any help will be appreciated!

from depth_clustering.

LiShuaixin avatar LiShuaixin commented on May 17, 2024

HI @niosus
I still meet the error while I use catkin build instead of catkin_make.
default

any help will be appreciated!

It can be solved by adding
FIND_PACKAGE(GTest)
and commenting
ADD_SUBDIRECTORY(/usr/src/gtest/ gtest)

anyone could refer to Stack Overflow to find the principle behind of this case.

from depth_clustering.

tornadomeet avatar tornadomeet commented on May 17, 2024

@LiShuaixin
still the same error after doing

It can be solved by adding
FIND_PACKAGE(GTest)
and commenting
ADD_SUBDIRECTORY(/usr/src/gtest/ gtest)

from depth_clustering.

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.