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

Antworten (2)

dhouha damak
dhouha damak am 26 Jan. 2017
Bearbeitet: Walter Roberson am 26 Jan. 2017
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.

Kategorien

Mehr zu MATLAB Compiler finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 25 Jan. 2017

Bearbeitet:

am 26 Jan. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by