when I used "FIND_PACKAGE(Matlab REQUIRED)" in cmakelist, error produced.

25 views (last 30 days)
my system is Ubuntu18 and matlab2020b. Then, I used "FIND_PACKAGE(Matlab REQUIRED)" in CMakeLists. However, when I used command "cmake ..", an error produced as follows:
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Matlab (missing: MATLAB_MEX)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindMatlab.cmake:26 (find_package_handle_standard_args)
CMakeLists.txt:8 (FIND_PACKAGE)
How can I fix the error?
  2 Comments
Hsuan-Chang Shih
Hsuan-Chang Shih on 30 Aug 2021
Hi,
Do you solve this ? Cause I have the same problem in Win10 + Clion 2019.3 + Matlab R2021a
It seem like the matlab library are not included, the findpackage(Matlab) can't get it ?

Sign in to comment.

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!