Edit on GitHub
Library Setup <C++ Linux>
This section provides instructions on building the SDK.
Install requirements
- The DYNAMIXEL SDK requires GNU gcc ver. 5.4.0 20160609 or higher
- To check the version of your gcc compiler
$ gcc -v
- Download the requirements
$ sudo apt-get install gcc $ sudo apt-get install build-essential $ sudo apt-get install gcc-multilib g++-multilib # For cross-compiling
Build the SDK
- Check your system architecture
$ uname -m
- Enter the appropriate build folder depending on your system and build the SDK
$ cd DynamixelSDK/c++/build/linux64 # for 64-bit systems $ sudo make install
- make sure to enter the correct folder according to your system architecture.
linux64
for 64-bit systemslinux32
for 32-bit systemslinux_sbc
for ARM-based SBCs like Raspberry Pi
- If the build completes successfully, you should see the .so file generated inside the build folder.
$ ls libdxl_x86_cpp.so Makefile
- Grant permission to access the port
$ sudo chmod 666 /dev/ttyUSB0
- Common
make
commands for building the SDK$ make # Compile the source code and generate binaries $ make install # Install the library files to the system $ make clean # Remove all build files and reset the build environment $ make uninstall # Remove files installed by 'make install' from the system $ make reinstall # Reinstall by cleaning, rebuilding, and installing again