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

Respuestas (2)

dhouha damak
dhouha damak el 26 de En. de 2017
Editada: Walter Roberson el 26 de En. de 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.

Categorías

Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de En. de 2017

Editada:

el 26 de En. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by