CMAKE_MAKE_PROGRAM is not set

조회 수: 54 (최근 30일)
zini
zini 2023년 12월 11일
답변: Shlok 2024년 8월 8일
When run acados example 'minimal_example_ocp.m':
ERROR:
WRONG USE acados_template_mex.compile_ocp_shared_lib
Generating buildsystem failed.
Got status 1, result: CMake Error: CMake was unable to find a build program
corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably
need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

채택된 답변

Shlok
Shlok 2024년 8월 8일
Hi,
You're encountering an error with "CMake" due to a missing build program, such as MinGW. To resolve this issue, follow these steps to install the MinGW-w64 compiler:
  • Open MATLAB, and go to the Home tab.
  • In the Environment section, click on Add-Ons > Get Add-Ons.
  • Search for MinGW or navigate to it from the Features section.
  • Install MinGW-w64.
After the installation is complete, set up MinGW as your compiler by running the following command in the MATLAB Command Window:
mex -setup
This should configure MinGW as your default compiler, allowing you to compile and run your MATLAB files without any issues.
For more information about MinGW, you can refer to the following links:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Portfolio Optimization and Asset Allocation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by