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

Configuration error in Ubuntu 16.04 if libblas-dev, gfortran or liblapack-dev are not installed but ipopt it is #329

Closed
traversaro opened this issue Jun 26, 2017 · 5 comments

Comments

@traversaro
Copy link
Member

-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
blas_PATH
    linked by target "idyntree-inverse-kinematics" in directory /home/isaac/src/isaac-superbuild/isaac/iDynTree/src/inverse-kinematics
    linked by target "idyntree-inverse-kinematics" in directory /home/isaac/src/isaac-superbuild/isaac/iDynTree/src/inverse-kinematics
    linked by target "idyntree-inverse-kinematics" in directory /home/isaac/src/isaac-superbuild/isaac/iDynTree/src/inverse-kinematics
gfortran_PATH
    linked by target "idyntree-inverse-kinematics" in directory /home/isaac/src/isaac-superbuild/isaac/iDynTree/src/inverse-kinematics
lapack_PATH
    linked by target "idyntree-inverse-kinematics" in directory /home/isaac/src/isaac-superbuild/isaac/iDynTree/src/inverse-kinematics

-- Configuring incomplete, errors occurred!
See also "/home/isaac/src/isaac-superbuild/build/isaac/iDynTree/CMakeFiles/CMakeOutput.log".
CMakeFiles/iDynTree.dir/build.make:102: recipe for target 'isaac/iDynTree/CMakeFiles/YCMStamp/iDynTree-configure' failed
@traversaro traversaro changed the title Configuration error in Ubuntu 16.04 if libblas-dev or liblapack-dev are not installed but ipopt it is Configuration error in Ubuntu 16.04 if libblas-dev, gfortran or liblapack-dev are not installed but ipopt it is Jun 26, 2017
@francesco-romano
Copy link
Collaborator

then IPOpt does not have these dependencies on linux?

@traversaro
Copy link
Member Author

I think it is related to https://bugs.launchpad.net/ubuntu/+source/coinor-ipopt/+bug/1659835 . I do not have clear if it is actually possible to link to ipopt without linking those libraries.

@francesco-romano
Copy link
Collaborator

@traversaro yes.. that is what I thought.

traversaro added a commit that referenced this issue Jun 27, 2017
In particular, add the workaround for robotology/icub-main#418 , that should solve #329 as well
@traversaro
Copy link
Member Author

Related issue: robotology/icub-main#418 .
Interestingly, the Debian package coinor-libipopt-dev indeed depends on libblas3 and liblapack3 packages. However this packages do not install the libraries /usr/lib/libblas.so and /usr/lib/liblapack.so, but rather they install /usr/lib/blas/libblas.so and /usr/lib/lapack/liblapack.so.
The symlink in /usr/lib/libblas.so and /usr/lib/liblapack.so is only obtained by installing the libblas-dev and liblapack-dev:

Setting up libblas-dev (3.6.0-2ubuntu2) ...
update-alternatives: using /usr/lib/libblas/libblas.so to provide /usr/lib/libblas.so (libblas.so) in auto mode
Setting up liblapack-dev (3.6.0-2ubuntu2) ...
update-alternatives: using /usr/lib/lapack/liblapack.so to provide /usr/lib/liblapack.so (liblapack.so) in auto mode

However, as ipopt links this libraries undirectly, using ipopt without linking them works fine (confirming that the core problem is that the pkg-config file is malformed). For this reason I think it make sense to merge #331 .

@traversaro
Copy link
Member Author

Fixed by #331 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants