Undefined function imapplymatrixc for input arguments of type 'uint8' under ubuntu 12.04

1 回表示 (過去 30 日間)
Zhang
Zhang 2013 年 12 月 26 日
コメント済み: Sean de Wolski 2013 年 12 月 26 日
When I'm trying to run a java program (based on matlab), it shows such error.
Undefined function 'imapplymatrixc' for input arguments of type 'uint8'. Error in imapplymatrix (line 92) Error in rgb2gray (line 62)
file /root/.mcrCache7.17/autoBl1/toolbox/images/images/imapplymatrix.m, name imapplymatrix, line 92. file /root/.mcrCache7.17/autoBl1/toolbox/images/images/rgb2gray.m, name rgb2gray, line 62.
The .jar was compiled under windows(32bit) and then used under ubuntu 12.04(machine is 64bit, could this be the problem?). I include the javabuilder.jar directly in the program. Under windows it works find, however it fails under ubuntu.

回答 (1 件)

Sean de Wolski
Sean de Wolski 2013 年 12 月 26 日
Yes, it needs to be deployed on the same platform it is to be used on.
  2 件のコメント
Zhang
Zhang 2013 年 12 月 26 日
Sorry I don't follow you. You mean it must be compiled and used on the same platform?
Sean de Wolski
Sean de Wolski 2013 年 12 月 26 日
Yes.
You'll need to recompile it under Linux 64 bit in order for it to work there.

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

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by