jhwangbo / ME491_2022_project

MIT License
0 stars 2 forks source link

CMake cannot find "Eigen3" #3

Closed obj153 closed 2 years ago

obj153 commented 2 years ago

OS: Windows 10 Compiler: Anaconda Python Version: 3.9.7

Even though the raisim installation folder is set by CMAKE_PREFIX_PATH, CMAKE cannot find the Eign3 library, so the installation does not proceed. I am getting the following error, is there any solution?

CMake Error at CMakeLists.txt:28 (find_package): Could not find a package configuration file provided by "Eigen3" with any of the following names:

Eigen3Config.cmake
eigen3-config.cmake

Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set "Eigen3_DIR" to a directory containing one of the above files. If "Eigen3" provides a separate development package or SDK, be sure it has been installed.

jhwangbo commented 2 years ago

I pushed a fix. can you pull and try again?

obj153 commented 2 years ago

After applying the fix you posted, the error code changed to: CMake Error at CMakeLists.txt:71 (find_package): Could not find a package configuration file provided by "raisim" with any of the following names:

raisimConfig.cmake
raisim-config.cmake

Add the installation prefix of "raisim" to CMAKE_PREFIX_PATH or set "raisim_DIR" to a directory containing one of the above files. If "raisim" provides a separate development package or SDK, be sure it has been installed.

jhwangbo commented 2 years ago

if you are using windows, pull raisim again. Then pass in the "raisimLib/raisim/win32" path to CMAKE_PREFIX_PATH. I'll talk about it in class as well