mcc problem on linux (2015b)

Searching in Matlab docs and forum did not help. I'm getting the following error, trying to compile a simple .m script function on a ubuntu linux 15.04 running MatLab 2015b:
>> mcc -m getpower.m
Error using matlab.depfun.internal.database.SqlDbConnector/doSql
Received exception (SQL error or missing database
file:%2Fhome%2Fgioboske%2Fopt%2FMATLAB%2FR2015b%2Ftoolbox%2Fmatlab%2Fdepfun%2F%2Bmatlab%2F%2Bdepfun%2F%2Binternal%2Frequirements%5Fglnxa64%5Fdfdb?mode=ro.
(no such table: Target)) upon attempting an operation; details: SELECT
Name FROM Target WHERE ID IN (SELECT DISTINCT Target FROM
Component_Path_Item).
Error in matlab.depfun.internal.SearchPath/read_targets_from_database
(line 534)
db.doSql(query);
Error in matlab.depfun.internal.SearchPath (line 886)
s.KnownTargets = read_targets_from_database(s);
Error in matlab.depfun.internal.requirements (line 139)
s = matlab.depfun.internal.SearchPath(target,
varargin{2:end});
Error using mcc
Unexpected error while determining required deployable files.
Compilation terminated.
The .m function actually simple return a constant, but seems that Matlab can't find the file path. Hoping this is only a common newbie questin, any suggestion?
Thanks, gioboske

댓글 수: 7

Harsheel
Harsheel 2015년 12월 11일
What is the full path of the directory from where you are running this mcc command?
gioboske
gioboske 2015년 12월 14일
I run the mcc command from the same path of the m script (in the example: /home/gioboske/Documents). I also tried the "-a" option on the MatLab path, but I get the same error. By the way, I've checked and the file "/home/gioboske/opt/MATLAB/R2015b/toolbox/matlab/depfun/+matlab/+depfun/+internal/requirements_glnxa64_dfdb" exists.
Jeff
Jeff 2016년 4월 8일
Anyone find an answer to this? Getting something similar with R2016a on a debian box.
lance
lance 2016년 5월 5일
I just installed a trial of the product and am seeing the same problem. I can't compile the simplest example in the documentation on linux. I'm on Ubuntu -- anyone seen a fix?
Ruben Verhack
Ruben Verhack 2016년 6월 9일
I have exactly the same problem under Ubuntu 16.04 and Matlab R2015b. Any fixes? Or should I temporarily downgrade to R2015a?
Yokesh Ram
Yokesh Ram 2016년 6월 13일
편집: Yokesh Ram 2016년 6월 13일
Hi Guys, I tried this and it worked.
  1. Close ur MATLAB session if already open
  2. Set this env variable : setenv('MCC_USE_DEPFUN','1'). Note that this command may vary depending on the shell you are running from.
  3. Invoke MATLAB and MCC build works!
Mikhail
Mikhail 2017년 5월 5일
편집: Mikhail 2017년 5월 5일
As bad as it gets. Same problem in R2017a on Ubuntu 16.04. Reverting to an older method of searching for dependencies instead of fixing the known problem on Linux.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

질문:

2015년 12월 10일

편집:

2017년 5월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by