Page 1 of 1

Having trouble with MATLAB RemoteApi

Posted: 12 Apr 2013, 14:21
by TuraEngineering
Hi;

I am having trouble with MATLAB- V-rep remote api work while I run my code in MATLAB. The error that MATLAB gives is as follows.

"Error using loadlibrary>lFullPath (line 587)
Could not find file extApi.h.

Error in loadlibrary (line 220)
header=lFullPath(header);

Error in remApi (line 566)
loadlibrary(obj.libName,obj.hFile);

Error in simpleTest (line 21)
vrep=remApi('remoteApi','extApi.h');"

I used the test program under the programming folder in v-rep however, it gives the same (as above) error. I am wondering that if it is causing by 64 and 32 bits clash or not?

Cheers

Re: Having trouble with MATLAB RemoteApi

Posted: 12 Apr 2013, 16:32
by coppelia
Hello,

indeed you need to make sure that your Matlab copy is 32 bit, otherwise you will have to recompile the remoteApi.dll yourself in 64 bits.
Did you follow all the instructions here?

Try to put all the mentionned files into Matlab's working directory. Have you tried calling mex -setup?

Cheers

Re: Having trouble with MATLAB RemoteApi

Posted: 22 Apr 2013, 19:14
by TuraEngineering
Thanks for your attention. 64-32 bits incompatibility would be the least thing that I considered. :)

Regards