How do I set a custom name for my project when using the "Source Code" build type in the MATLAB Coder App R2015b?
2 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2015 年 12 月 31 日
回答済み: MathWorks Support Team
2015 年 12 月 31 日
At the very end of the code generation workflow, you can choose from several different build types: C/C++ source code, MEX-file, static library, dynamic library or executable. Most of those build types allow you to specify a custom name for the project, but the "Source Code" option does not. Instead, it sets the project name to the name of the first entry-point function. How can I give a custom name to my project if the build type is set to "Source Code"?
採用された回答
MathWorks Support Team
2016 年 1 月 12 日
In terms of the generated code, selecting the "Source Code" build type is actually equivalent to selecting the "Static Library" build type and checking the "Generate code only" checkbox. To confirm this for yourself, you can click on the "Action menu" in the top right corner of the MATLAB Coder App and select "Convert to script ... " for each build type. Comparing the generated MATLAB scripts reveals that the same commands are executed in both cases. However, the GUI for the "Source Code" build type does not let you set the "Output file name" field, which is what determines the project name.
As a workaround, you can select the "StaticLibrary" build type, check the "Generate code only" checkbox, and enter a custom name in the "Output file name" field.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Build Configuration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!