Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install ingition math #100

Closed
osrf-migration opened this issue Jun 7, 2019 · 9 comments
Closed

Fail to install ingition math #100

osrf-migration opened this issue Jun 7, 2019 · 9 comments
Labels
bug Something isn't working debian Debian package

Comments

@osrf-migration
Copy link

Original report (archived issue) by Guanghua Zha (Bitbucket: sky99198).


Follow this https://ignitionrobotics.org/api/math/6.1/install.html

Got: E: Unable to locate package libignition-math6-dev

Tried to install ignition-math from source got:

Could not find a package configuration file provided by "ignition-cmake2"
(requested version 2.0.0) with any of the following names:

ignition-cmake2Config.cmake
ignition-cmake2-config.cmake

Tried: sudo apt-get install libignition-cmake2-dev

Got: E: Unable to locate package libignition-cmake2-dev

Installed Ignition CMake from source but did not resolve the problem above.

What should I do?

Thanks!

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


What operating system and architecture are you using (ie Ubuntu bionic amd64)?

@osrf-migration
Copy link
Author

Original comment by Guanghua Zha (Bitbucket: sky99198).


Ubuntu 16.04

@osrf-migration
Copy link
Author

Original comment by Guanghua Zha (Bitbucket: sky99198).


Ok I found the problem.

The Line 12 of the CMakeLists need to be updated as:

find_package(ignition-cmake3 3.0.0 REQUIRED)

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


ign-cmake3 has not been released; it's only being used on the default branch of ign-cmake

I recommend using the ign-cmake2 branch of one of the tagged releases

@osrf-migration osrf-migration added major bug Something isn't working labels Apr 15, 2020
@chapulina chapulina added debian Debian package and removed major labels May 25, 2020
@luccosta
Copy link
Contributor

luccosta commented Jul 2, 2020

I had the same problem and install the binary for the ignition-cmake2 to solve the dependency worked for me. I used:

sudo apt install libignition-cmake2-dev

Maybe doesn't work for Guanghua Zha because of forget to apt update.

This is something that worth it to put on README.md?

@chapulina
Copy link
Contributor

@luccosta , what Ignition Math binary were you trying to install and in which platform? ign-cmake2 should be installed automatically when you install ign-math, but there could be something broken for some specific platform.

@luccosta
Copy link
Contributor

Used ign-math6 and Ubuntu 18.04.

I was trying to install from source with the README guide at the time. I used the following commands:

sudo apt-get install libeigen3-dev

git clone https://github.com/ignitionrobotics/ign-math

cd ign-math; mkdir build; cd build; cmake ..; make
sudo make install

I see that the actual README dont offer an source installation, the recommended source installation is the complete installation of Ignition?

@chapulina
Copy link
Contributor

I see that the actual README dont offer an source installation

Good catch, the README is currently linking to https://ignitionrobotics.org/api/math/6.4/install.html, which doesn't have source install instructions.

Pull request #147 moved the source install instructions to the tutorial, but that targeted the master / main branch, which is not released yet, so the tutorials aren't live.

I'll backport that pull request to ign-math6.

@chapulina
Copy link
Contributor

See #167

@azeey azeey closed this as completed Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working debian Debian package
Projects
None yet
Development

No branches or pull requests

4 participants