Edit on GitHub

Library Setup

C Linux

Compiler and Builder

Compiler

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

Builder

$ sudo apt-get install build-essential

Dependent Packages

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

Build the Library

$ make

$ make clean && make
$ make clean

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

$ sudo make uninstall && sudo make install

OR

$ sudo make reinstall
$ sudo make uninstall

$ sudo make reinstall

Building and Running the Sample Code

The Dynamixel SDK example code for C uses a .so (Linux) library built in C.

By doing above, each released Dynamixel SDK have latest library files in [DynamixelSDK folder]/c/build/[linuxXX]/libdxl_xYY_c.so which were built by its own source code.

$ cd [DynamixelSDK folder]/c/example/protocol1.0/read_write/linux32 OR
$ cd [DynamixelSDK folder]/c/example/protocol1.0/read_write/linux64

$ make

$ sudo chmod a+rw /dev/ttyUSB0

$ ./read_write