running compiled function that uses mex in a client's OS using MCR does not work

I have Matlab 2018a for linux , on which I have compiled a function . that function uses vl_feat library (meaning mex library).
the problem :
when running the compiled function on a client's computer, I get an error that the mex function is not found.
the MCR is for matlab 2018a of course.
what I have tried :
  1. compile with adding the mex function manually
  2. install and compile vl_feat in client's computer
  3. running vl_setup during function's run
none worked.

5 件のコメント

Bruno Luong
Bruno Luong 2019 年 8 月 23 日
And the client PC OS is?
Vinny
Vinny 2019 年 8 月 25 日
Linux Ubuntu
Bruno Luong
Bruno Luong 2019 年 8 月 25 日
編集済み: Bruno Luong 2019 年 8 月 25 日
Have you set LD_LIBRARY_PATH on target PC (see doc)?
Vinny
Vinny 2019 年 8 月 25 日
編集済み: Bruno Luong 2019 年 8 月 25 日
Just wonder why do you add MEX manually? If you app calls the MEX file, the dependcy analyzer should detect and should be packed together, and the deployement engine should handle the unpacked and verify MEX the first time you lauch your compiled app.
I don't believe you are allowed to post-add any source file after it has been packed, for security reason.
Vinny
Vinny 2019 年 8 月 25 日
I know , but the other way didn't work :\

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

質問済み:

2019 年 8 月 23 日

コメント済み:

2019 年 8 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by