Building generated code for another - no Matlab machine

1 回表示 (過去 30 日間)
Dusko Vujadinovic
Dusko Vujadinovic 2021 年 8 月 18 日
コメント済み: Dusko Vujadinovic 2021 年 8 月 19 日
I successfuly generated and built the C code on Mac, where my Matlab (Coder) license is, but when trying to build for the taget platform (Intel/Linux) the produced executable still, it seem to be is one on Mac. It still runs on Mac - although I selected the "Device (Production)" to be Interl/Linux. The produced makefile (.mk) also still has references to MATLAB installation folder so even the makefile needs some rework to be able to run the build on Linux (by using the generated source code). Please, is there anything I might be missing in terms of configuring the Coder etc? The GUI seems to be supporting this option in very obvious way, but as far as I can see it does not work as expected.

回答 (1 件)

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2021 年 8 月 19 日
You can use packNGo workflow to get all the necessary code in a zipped file. Then you can port that to other machine (provided you have choosen correct target hardware / toolchain).
You can refer below docs :
  1 件のコメント
Dusko Vujadinovic
Dusko Vujadinovic 2021 年 8 月 19 日
I was aware that I can zip the code and transfer to the target machine to build it there - which I have done already. But as I mentioned, the .mk file needs modifications in order to build it over there, so it is not plug and play as it looked from the GUI. The GUI seems supporting the building for selecting processors/OS combinations, but that does not seem to be the case. So I think this confusing option needs be removed from the GUI.

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

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by