alecjacobson / gptoolbox

Matlab toolbox for Geometry Processing.
MIT License
628 stars 169 forks source link

Could NOT find Matlab (missing: MAT_LIBRARY) #121

Open Arrowstar opened 3 years ago

Arrowstar commented 3 years ago

I'm in the process of attempting to compile gptoolbox using CMake. It's been a bit rough but I've managed to figure out most things so far. However, right now I'm stuck on the following when apparently building embree:

Detecting default ISA... Detected default ISA: SSE2 Creating target: igl::embree (igl_embree) CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Matlab (missing: MAT_LIBRARY) (found version "9.10") Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) cmake/FindMATLAB.cmake:1519 (find_package_handle_standard_args) external/libigl/cmake/libigl.cmake:327 (find_package) cmake/FindLIBIGL.cmake:35 (include) CMakeLists.txt:78 (find_package)

When I try to add the "Matlab_MAT_LIBRARY" item to the list in the CMAKE GUI, it doesn't seem to help (even though I've done that successfully with the other MATLAB libraries that it's looking for). I just get this same error over and over again.

To be clear, I'm on MATLAB R2021a (though I do have other versions installed) and that MATLAB version is in the Find MATLAB CMAKE script.

It should also note that it doesn't seem to be able to find my embree testing model directory. I have this in the CMAKE GUI: "EMBREE_TESTING_MODEL_DIR-NOTFOUND". Maybe this is related in some way?

I've attached my log files and cache file. Anything you can do to help would be awesome. Thank you!

CMakeOutput.log CMakeError.log CMakeCache.txt

Arrowstar commented 3 years ago

Bit of an update: I've managed to get past where I am now, but I'm still stuck. Now it's looking for the BLAS libraries. What do I need to provide in order to resolve this issue?

Creating target: igl::xml (igl_xml) CMake Error at external/libigl/external/cgal/Installation/cmake/modules/FindBLAS.cmake:468 (message): A required library with BLAS API not found. Please specify library location. Call Stack (most recent call first): CMakeLists.txt:82 (find_package)

soodsumil commented 3 years ago

I am facing the same error: """ -- Creating target: igl::xml (igl_xml) CMake Error at external/libigl/external/cgal/Installation/cmake/modules/FindBLAS.cmake:468 (message): A required library with BLAS API not found. Please specify library location. Call Stack (most recent call first): CMakeLists.txt:84 (find_package) """

Does anyone know how to solve this?