Compiling error: Assertion failed: (), function find, file management.cpp, line 671.

7 ビュー (過去 30 日間)
Shaun
Shaun 2018 年 7 月 5 日
編集済み: Leigh Manley 2019 年 12 月 10 日
The Matlab compiler is giving me an error when I attempt to compile anything, even the most basic scripts with no dependencies. The following is the output of PackagingLog.html:
mcc -o test_script -W main:test_script -T link:exe -d /Users/kerr24/Desktop/Test_Matlab_Scripts/test_script/for_testing -v /Users/kerr24/Desktop/Test_Matlab_Scripts/test_script.m
Compiler version: 6.6 (R2018a)
Dependency analysis by REQUIREMENTS.
Assertion failed: (), function find, file management.cpp, line 671.
Assertion failed: (), function find, file management.cpp, line 671.
Does anyone have any idea what might be causing this? I am using Matlab 2018a on macOS 10.13.5

採用された回答

Shaun
Shaun 2018 年 7 月 10 日
With the help of MathWorks technical support I'm able to answer my own question. It ended up being a directory in my Matlab path that somehow conflicted with compiling. To test this I reset my path using the following commands:
restoredefaultpath
rehash toolboxcache
savepath
Then I ran the most basic compiling command:
mcc -m test.m
Then I added directories back to my path and checked that mcc was still working.

その他の回答 (1 件)

Leigh Manley
Leigh Manley 2019 年 12 月 10 日
編集済み: Leigh Manley 2019 年 12 月 10 日
I had this problem as well. I have a matlab script that uses a function in a separate matlab file, in the same directory. I added
userpath('reset')
in the matlab script before defining the userpath that I wanted:
userpath('/directory/to/matlab_scripts_and_matlab_function_files/')

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by