sofa icon indicating copy to clipboard operation
sofa copied to clipboard

[metis] metis_DIR-NOTFOUND CMake 3.24.0

Open LuisVH1994 opened this issue 3 years ago • 1 comments

Problem

Description < Hi everyone, I followed the instructions to install SOFA software and when Im Generating a VS project (.sln) or a Makefile with CMake I have some troubles because there are some errors just like metis_DIR-NOTFOUND and also GLEW_DIR-NOTFOUND>

Steps to reproduce < 1. I add where my source code is going to be. 2. I add where my binaries are going to be. 3. I use Visual Studio 4. I push configurate and first I have a problem with Eigen, but fortunately I could solve it. 5. I push configurate again and there are two errors, one says: metis_DIR-NOTFOUND and second: GLEW_DIR-NOTFOUND>

Expected behavior < I search for Metis and I found something called metis 5.10.0 but nothing happens, the error can not be solved, in the other hand I don't know nothing about GLEW. Hope you can help me, I attached some pictures, Thanks. >


metis

Environment

metis1

Context

  • System: < NAME AND VERSION - e.g: "Windows 10", "Ubuntu 20.04", ... >
  • Version of SOFA: < INFOS ABOUT THE BRANCH OR BINARIES - e.g: "master branch at commit 70bb123", "v21.06.00 binaries", ... >
  • State: < BUILD OR INSTALL DIRECTORY - e.g: "Build directory", "Install directory" >

Command called


< COPY-PASTE YOUR COMMAND HERE >

Env vars

python -c "exec( \"import os, sys\nprint('#################')\nprint('--- sys.version ---')\nprint(sys.version)\nprint('--- PATH ---')\ntry:\n  print(os.environ['PATH'])\nexcept Exception:\n  pass\nprint('--- SOFA_ROOT ---')\ntry:\n  print(os.environ['SOFA_ROOT'])\nexcept Exception:\n  pass\nprint('--- PYTHONPATH ---')\ntry:\n  print(os.environ['PYTHONPATH'])\nexcept Exception:\n  pass\nprint('--- sys.path ---')\ntry:\n   print(str(sys.path))\nexcept Exception:\n   pass\nprint('#################')\" )"

< COPY-PASTE HERE THE RESULT OF THE COMMAND ABOVE >


Logs

Full output


< COPY-PASTE YOUR OUTPUT HERE >

Content of build_dir/CMakeCache.txt

< DRAG AND DROP YOUR CMAKECACHE.TXT HERE >


Thank you for your report.

LuisVH1994 avatar Aug 11 '22 23:08 LuisVH1994

Weird because Metis sources are shipped with SOFA (see https://github.com/sofa-framework/sofa/tree/master/Sofa/Component/LinearSolver/Direct/extlibs/metis-5.1.0). On my CMake, I see

image

I also have metis_DIR-NOTFOUND for metis_DIR. But Metis_DIR is correctly filled.

I noticed you try to compile v21.06. The latest release is v22.06. You could try updating your SOFA.

And let us know if you succeeded in fixing your problem.

Thanks.

alxbilger avatar Oct 05 '22 14:10 alxbilger