Edit on GitHub

Library Setup


Compiler and Builder


$ gcc -v 
$ sudo apt-get install gcc-5


$ sudo apt-get install build-essential

Dependent Packages

$ sudo apt-get install gcc-multilib g++-multilib

Build the Library

Please note that if you will be building the 64-bit example source, you should build the 64-bit library.

$ make

$ make clean && make
$ make clean

Copy (Install) the Library to the Root Directory
$ sudo make install

$ sudo make uninstall && sudo make install


$ sudo make reinstall
$ sudo make uninstall

$ sudo make reinstall

Building and Running the Sample Code

The Dynamixel SDK sample code for CPP uses the library files(.dylib for Mac) built in CPP language.

You should build library files in [DynamixelSDK folder]/c++/build/mac/libdxl_mac_cpp.dylib with its own source code as shown above.

[Terminal] $ make

If it shows some error, try make clean and make it again.

[Terminal] $ make clean

[Terminal] $ sudo chmod a+rw /dev/tty.usbserial-xxxx

[Terminal] $ ./read_write