mcc problem on linux (2015b)
4 views (last 30 days)
Show older comments
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 Comments
Yokesh Ram
on 13 Jun 2016
Edited: Yokesh Ram
on 13 Jun 2016
Hi Guys, I tried this and it worked.
- Close ur MATLAB session if already open
- Set this env variable : setenv('MCC_USE_DEPFUN','1'). Note that this command may vary depending on the shell you are running from.
- Invoke MATLAB and MCC build works!
Answers (0)
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!