ROBOTIS-GIT / DynamixelSDK

ROBOTIS Dynamixel SDK (Protocol1.0/2.0)
http://emanual.robotis.com/docs/en/software/dynamixel/dynamixel_sdk/overview/
Apache License 2.0
442 stars 396 forks source link

MATLAB library for Mac, error loading the library #469

Open ej3517 opened 3 years ago

ej3517 commented 3 years ago

ISSUE TEMPLATE ver. 1.2.0

Please fill this template for more accurate and prompt support.

  1. Which DYNAMIXEL SDK version do you use?
    • ex) 3.4.1

3.7.31

  1. Which programming language/tool do you use?
    • ex) C, C++, C#, Python, Java, MATLAB, LABVIEW, ROS, Arduino, etc

MATLAB

  1. Which operating system do you use?
    • ex) Ubuntu 16.04, Windows 10, OS X 10.14

OS X 11.2.1

  1. Which USB serial converter do you use?
    • ex) USB2Dynamixel, U2D2, OpenCM904, OpenCR, etc

U2D2

  1. Which DYNAMIXEL do you use?
    • ex) MX-28(2.0), AX-12W, XM430-W250, etc.

xh430-w350-r

  1. Have you searched the issue from the closed issue threads?

The closed thread I found was https://github.com/ROBOTIS-GIT/DynamixelSDK/issues/366

  1. Please describe the issue in detail

I am using Mac os x so I needed to download xcode because MATLAB requires a third-party compiler in order to read C and build the library. I downloaded XCode 11.5 and I am using MATLAB_R2019B. I followed the "library set up" section on the e-manual and added all the necessary folder in MATLAB using "set path". Now I have some problem every-time I try to run a .m file, for instance read_write.m as advised in the e-manual.

At first I had an error because Apple has silently updated XCode, and has changed some defaults, which MATLAB blindly reads. This issue was fixed following the method explained in https://xolotl.readthedocs.io/en/master/troubleshooting/.

But now I have the following error whenever I run read_write.m

Error using loadlibrary
There was an error loading the library "libdxl_mac_c"
dlopen(libdxl_mac_c.dylib, 6): image not found

Error in read_write (line 48)
    [notfound, warnings] = loadlibrary(lib_name, 'dynamixel_sdk.h',
    'addheader', 'port_handler.h', 'addheader', 'packet_handler.h');

Caused by:
    Error using loaddefinedlibrary
    dlopen(libdxl_mac_c.dylib, 6): image not found

I would really appreciate if you could tell me what I should do to properly load the library. Thank you.

  1. How can we reproduce the issue?
ROBOTIS-Will commented 3 years ago

Hi @ej3517 I'm sorry about the delayed response. We'll review this on our Mac, but we might not be able to test with MATLAB 2019 version. Thank you for your understanding.