Skip to content

Could NOT find METIS (missing: METIS_DIR) #6

Description

@xhy1599

when i run catkin_make,it outputs:

-- x86_64 architecture detected - setting flag -fPIC
get_property(PKG_HELP CACHE WITH_BUILD_IPOPT PROPERTY HELPSTRING)
get_property(PKG_HELP CACHE WITH_BUILD_MUMPS PROPERTY HELPSTRING)
METIS: find via CONFIG
-- Could NOT find METIS (missing: METIS_DIR)
METIS: 0
-- Found METIS: /usr/lib/x86_64-linux-gnu/libmetis.so
-- Found METIS include dir: /usr/include
CMake Error at cmake/FindMETIS.cmake:52 (target_link_libraries):
  Cannot specify link libraries for target "metis::metis" which is not built
  by this project.
Call Stack (most recent call first):
  CMakeLists.txt:884 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/xhy/catkin_ws/build/vendor/src/casadi-external-build/CMakeFiles/CMakeOutput.log".
cartesian_planner/CMakeFiles/casadi-external.dir/build.make:108: recipe for target 'vendor/src/casadi-external-stamp/casadi-external-configure' failed
make[2]: *** [vendor/src/casadi-external-stamp/casadi-external-configure] Error 1
CMakeFiles/Makefile2:917: recipe for target 'cartesian_planner/CMakeFiles/casadi-external.dir/all' failed
make[1]: *** [cartesian_planner/CMakeFiles/casadi-external.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

there are the installed packages:

liblapack-dev is already the newest version (3.7.1-4ubuntu1).
libmetis-dev is already the newest version (5.1.0.dfsg-5).
pkg-config is already the newest version (0.29.1-0ubuntu2).
g++ is already the newest version (4:7.4.0-1ubuntu2.3).
gcc is already the newest version (4:7.4.0-1ubuntu2.3).
gfortran is already the newest version (4:7.4.0-1ubuntu2.3).
git is already the newest version (1:2.17.1-1ubuntu0.18).
patch is already the newest version (2.7.6-2ubuntu1.1).
wget is already the newest version (1.19.4-1ubuntu2.2).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions