Can I just tar an installed version of the MCR and distribute it?
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I wonder if the MCR for a given platform actually needs to be installed in the target computer (i.e., if the Mathworks-provided installer necessarily needs to be executed), or if it is possible to just distribute a copy of the MCR libraries (of course for the right platform) to the end user.
I'm trying to find a way to make the installation of my code as user friendly as possible. My problem is that many of my end users find the process of downloading and installing the MCR confusing (let alone the setting up of the library paths), and I'd like to distribute my code+MCR as an unique package that the user can just untar in its computer.
Does this sound possible?
thanks, Daniel
1 件のコメント
Harsheel
2014 年 10 月 21 日
編集済み: Harsheel
2014 年 10 月 21 日
Distributing only MCR libraries will be sufficient on Linux and MAC, but not on Windows, as you need to update the PATH variable with the location of the MCR.
The above is done when you check on the box that says "Runtime included in package" in the deploytool GUI. It will package the MCR and your application as a single exe. The drawback will be that the exe size will increase as the MCR will now be a part of your application.
When the user tries to run the exe, the MCR will automatically install, put the libraries in the correct location, and set up the PATH environment variable(specific to Windows). On Linux and MAC, you do need to update the LD_LIBRARY_PATH and DYLD_LIBRARY_PATH,respectively.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!