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일
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 Exchange에서 MATLAB 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