Matlab Compiled Jar Including Symbolic Math Engine Toolbox

1 回表示 (過去 30 日間)
Sean Turley
Sean Turley 2017 年 4 月 19 日
コメント済み: Sean Turley 2017 年 5 月 24 日
I am using the Matlab compiler to make a library jar of a set of scripts. When I use the jar the processing halts midway and I see
Undefined function or variable 'symengine'.
Per this thread I thought the code was using the Symbolic Math Toolbox. However when I run:
dependencies.toolboxDependencyAnalysis({'myscript.m'})
Warning: Cannot analyze code generation dependencies because Simulink Coder is not installed
ans =
'MATLAB'
This implies that the only dependency is MATLAB. What's more is that I ran the script directly in an interpreter on another machine which does not have the Symbolic Math Toolbox and it runs perfectly. I do know that the machine which I'm using to compile the script does have the Symbolic Math Toolbox so I'm wondering if it's being linked into the jar somehow.
Versions of the machine with the compiler
----------------------------------------------------------------------------------------------------
MATLAB Version: 8.3.0.532 (R2014a)
MATLAB License Number: redacted
Operating System: Linux 2.6.32-573.1.1.el6.x86_64 #1 SMP Tue Jul 14 02:46:51 EDT 2015 x86_64
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
----------------------------------------------------------------------------------------------------
MATLAB Version 8.3 (R2014a)
Simulink Version 8.3 (R2014a)
Communications System Toolbox Version 5.6 (R2014a)
Control System Toolbox Version 9.7 (R2014a)
DSP System Toolbox Version 8.6 (R2014a)
Image Processing Toolbox Version 9.0 (R2014a)
MATLAB Builder JA Version 2.3.1 (R2014a)
MATLAB Compiler Version 5.1 (R2014a)
MATLAB Report Generator Version 3.16 (R2014a)
Optimization Toolbox Version 7.0 (R2014a)
Parallel Computing Toolbox Version 6.4 (R2014a)
Signal Processing Toolbox Version 6.21 (R2014a)
Simulink Control Design Version 4.0 (R2014a)
Stateflow Version 8.3 (R2014a)
Statistics Toolbox Version 9.0 (R2014a)
Symbolic Math Toolbox Version 6.0 (R2014a)
Versions of the machine without the compiler
>> ver
----------------------------------------------------------------------------------------------------
MATLAB Version: 8.3.0.532 (R2014a)
MATLAB License Number: redacted
Operating System: Microsoft Windows 7 Enterprise Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
----------------------------------------------------------------------------------------------------
MATLAB Version 8.3 (R2014a)
Simulink Version 8.3 (R2014a)
Communications System Toolbox Version 5.6 (R2014a)
Control System Toolbox Version 9.7 (R2014a)
DSP System Toolbox Version 8.6 (R2014a)
Image Processing Toolbox Version 9.0 (R2014a)
MATLAB Report Generator Version 3.16 (R2014a)
Parallel Computing Toolbox Version 6.4 (R2014a)
Signal Processing Toolbox Version 6.21 (R2014a)
Simulink Control Design Version 4.0 (R2014a)
Stateflow Version 8.3 (R2014a)
Statistics Toolbox Version 9.0 (R2014a)

回答 (1 件)

Steven Lord
Steven Lord 2017 年 4 月 19 日
According to the documentation, Symbolic Math Toolbox is not eligible for use with MATLAB Compiler.
  5 件のコメント
Sean Turley
Sean Turley 2017 年 5 月 24 日
All that I have in my startup.m is 'ones(10)*ones(10);' to solve another issue. Good thought though.
Sean Turley
Sean Turley 2017 年 5 月 24 日
@Steve I ran my script in bare matlab, being sure to start a fresh copy and invoke 'license inuse' before and after execution. In both cases the only output is 'matlab'

サインインしてコメントする。

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by