C++ mwArray
API 共有ライブラリの統合
mwArray
API を使用してパッケージ化された MATLAB® 関数を作成し C++ アプリケーションに統合するC++ mwArray
API は C++03 の機能のみをサポートします。mwArray
API を使用する C++ 共有ライブラリのインターフェイスは、C スタイルの関数を使用して MATLAB Runtime の初期化、パッケージ化された MATLAB 関数の MATLAB Runtime への読み込み、および C++ ドライバー コードと MATLAB Runtime の間で渡されるデータの管理を行います。これらの関数は C/C++ API で説明されています。C++ mwArray
API の下にリストされている関数は mwArray
API に固有であり、他の API 用に作成された共有ライブラリには使用できません。
関数
compiler.build.cppSharedLibrary | C++ 共有ライブラリの作成 |
compiler.build.CppSharedLibraryOptions | C++ 共有ライブラリのビルド オプション |
mbuild | Compile and link source files against MATLAB generated shared libraries |
C/C++ API
mclmcrInitialize | Initialize the MATLAB Runtime proxy library |
mclInitializeApplication | 現在のプロセスで作成されたすべての MATLAB Runtime インスタンスによって共有されるアプリケーション状態の設定 |
mclTerminateApplication | Close MATLAB Runtime-internal application state |
<library>Initialize[WithHandlers] | Initialize MATLAB Runtime instance associated with
|
<library>Terminate | Free all resources allocated by MATLAB Runtime instance
associated with
|
mclRunMain | Mechanism for creating identical wrapper code across all platforms |
mclIsMCRInitialized | Determine if MATLAB Runtime has been properly initialized |
mclWaitForFiguresToDie | Enable deployed applications to process graphics events so that figure windows remain displayed |
mclGetLastErrorMessage | Last error message from unsuccessful library initialization or MATLAB function call |
mclGetLogFileName | Retrieve name of log file used by MATLAB Runtime |
mclIsJVMEnabled | Determine if MATLAB Runtime was started with instance of Java Virtual Machine (JVM) |
mclIsNoDisplaySet | -nodisplay モードが有効かどうかを判定 |
C++ mwArray API
mwArray | Class used to pass input/output arguments to C++ functions generated by MATLAB Compiler SDK |
mwException | Exception type used by the mwArray API
and the C++ interface functions |
mwString | String class used by the mwArray API
to pass string data as output from certain methods |
トピック
C++ mwArray API 共有ライブラリの作成と実装
- C++ mwArray API 共有ライブラリの生成と C++ アプリケーションのビルド
MATLAB コードから C++ mwArray API 共有ライブラリを作成し、サンプル C++ ドライバー コードを使って実装する。
C++ 共有ライブラリと C++ ドライバー アプリケーションの統合
- Configure the mbuild Options File
How to configure thembuild
options file. - Call MATLAB Compiler SDK API Functions from C/C++
Use MATLAB Compiler SDK™ API functions for C/C++ to assimilate shared libraries in driver code. - Integrate C++ Shared Libraries
Create and distribute C++ shared libraries that use themwArray
API. - Use Multiple Shared Libraries in Single Application
Use multiple generated shared libraries in a single C/C++ application.
Mac OS X
- Write Applications for macOS
Write deployable C++ applications specifically for macOS.
MATLAB Runtime
- MATLAB Runtime のインストールと構成
MATLAB Runtime をインストールし、構成し、アンインストールする。 - デプロイ用の MATLAB Runtime パスの設定
MATLAB Compiler™ または MATLAB Compiler SDK で生成されたアプリケーションを実行するマシンのパスを定義する。 - MATLAB Runtime Startup Options
Set MATLAB Runtime options, such as-nojvm
,-nodisplay
, or-logfile
. - MATLAB Runtime コンポーネント キャッシュおよびデプロイ可能なアーカイブの組み込み
既定のアーカイブの組み込み動作のオーバーライド、および MATLAB Runtime コンポーネント キャッシュの使用。
C++ 共有ライブラリのトラブルシューティング
- Compilation Failures
List of possible failures during compilation. - Testing Failures
List of possible failures during testing . - Deployment Failures
List of possible failures during deployment.