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

23 次查看(过去 30 天)
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 个评论
Hsuan-Chang Shih
Hsuan-Chang Shih 2021-8-30
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 ?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by