フィルターのクリア

Matlab Compiler Shared Resources and Helper Files Issue

1 回表示 (過去 30 日間)
Kevin
Kevin 2011 年 10 月 10 日
I am having an issue with my executable with finding a .pptx file as a shared resource.
I have included it inside the executable but it cannot find the file once the executable is deployed but can find another file which is a .jpg and is looked for in a similar way.
Does anybody have an idea of why it cannot find a .pptx file but can find a .jpg?
Thanks,
Kevin
  2 件のコメント
Kaustubha Govind
Kaustubha Govind 2011 年 10 月 10 日
1) Could you specify how you added the file? Did you add it to Additional Files section in deploytool or use the mcc -a flag?
2) How are you looking for it in your deployed application?
Kevin
Kevin 2011 年 10 月 10 日
I used the deploytool to add the file.
I am calling it by searching within the executable's "working directory":
base_dir = cd;
copyfile([base_dir '\BaseM9.pptx'], filename);

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

採用された回答

Image Analyst
Image Analyst 2011 年 10 月 10 日
See this entry on the FAQ: http://matlab.wikia.com/wiki/FAQ#My_standalone_executable_won.27t_run_on_the_target_computer._What_can_I_try.3F, particularly point #7 there. I'm pretty sure that's the cause of your problem.
  1 件のコメント
Kevin
Kevin 2011 年 10 月 10 日
This was indeed what it was. Thanks for the help on a non-intuitive problem!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by