-
Notifications
You must be signed in to change notification settings - Fork 170
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
Could NOT find Matlab #131
Comments
I am using: |
From a colleague using Windows:
|
Which version of CMake are you running ? According to this That command was introduced in 3.11. Is it possible yours isn't up to date? |
One of the issues with using an old cmake is that cmake comes with some config files that know how to locate modern versions of matlab. So an old cmake may only know how to find old matlab. |
I believe this means you need a newer version of cmake
…On Thu, Mar 24, 2022, 9:22 AM MCZSynapsid ***@***.***> wrote:
Aha - that seems to solve this particular error, thanks!
But I now get a new error elsewhere, apparently something to do with
libigl:
[image: NewError]
<https://user-images.githubusercontent.com/102299995/159925111-9367bb77-4054-4b4d-b491-b693c971314b.png>
Any ideas what's causing this issue?
—
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARDJGONUKWD4XMXPXKSKOTVBRUABANCNFSM5QKFAXXQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi,
I am working on a Matlab.m file that my colleague has been working on that. In some part of the code he is using gptoolbox and clean_mesh function. When I run the code I have an error with clean_mesh function. I read that "This directory contains mex functions that must be compiled before they can be called from matlab". I use the following command lines:
mkdir build
cd build
cmake ..
make
But for cmake .. I have this error:
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find Matlab (missing: Matlab_INCLUDE_DIRS Matlab_MEX_LIBRARY
Matlab_MEX_EXTENSION MEX_COMPILER MX_LIBRARY ENG_LIBRARY) (found version
"NOTFOUND")
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
cmake/FindMatlab.cmake:1520 (find_package_handle_standard_args)
CMakeLists.txt:74 (find_package)
-- Configuring incomplete, errors occurred!
See also "/mnt/c/dev/gptoolbox/mex/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/c/dev/gptoolbox/mex/build/CMakeFiles/CMakeError.log".
I also tried the following command but still, the error is there:
cmake ../ -DMatlab_ROOT_DIR=/apps/matlab-R2019b/
Could you advise?
The text was updated successfully, but these errors were encountered: