error running mexa64 build from cpp file on ubunto

Hi everyone, i built a mex file from a cpp file on ubunto. it worked successfully. But when i'm running the mexa64 file, matlab craches and i get this long error msg: java.lang.UnsatisfiedLinkError: no nativeservices in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source)....
However, i tried to run mexa64 from cc files and it works without problems.
thanks for help

回答 (2 件)

dhouha damak
dhouha damak 2017 年 1 月 26 日
編集済み: Walter Roberson 2017 年 1 月 26 日

0 投票

thanks for your reply. the mex file runs without errors,however the output of the mex function (called HoT) always give me zeros (on several images):
m=double(imread('0.png'));feature=HoT(im);
>>feature =
0
0
0
0
I tried on windows and it works correctly:
im=double(imread('0.png'));
>> feature=HoT(im);
>> feature =
3.3285
2.2477
12.9287
And i tried to run a mexa64 file built from a cc file it works correctly on both systems. Is there a difference between mexa file from cc and cpp files? I didn't knew the problem.

カテゴリ

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

質問済み:

2017 年 1 月 25 日

編集済み:

2017 年 1 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by