Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/checkinstall #8

Open
wants to merge 3 commits into
base: x-series
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ Compilation and installation
============================
The build system for this library is Waf. Don't run away yet. It has the big advantage of requiring no more than Python installed on your computer. If you run a GNU/Linux OS or Mac OS, you should already have it. Here is how we compile and install it:

1. configuration
1. Install dependent packages
```
sudo add-apt-repository ppa:xuzhen666/dockbarx
sudo apt install dockbarx
```
2. configuration
run `./waf configure` and add `--prefix PATH/TO/INSTALL` if you want to install it to a specific location
2. compilation
3. compilation
is as easy as `./waf`
3. installation
is simply done with `./waf install`, with the required rights (might need sudo if you install globally)
4. setup the proper authorisation
4. installation
On Debian, Ubuntu : run `sudo ./waf checkinstall`
jsupratman13 marked this conversation as resolved.
Show resolved Hide resolved
Others: is simply done with `./waf install`, with the required rights (might need sudo if you install globally)
5. setup the proper authorisation
please ensure that you have the proper rights to access the serial interfaces. On GNU/Linux, you might have to add your user to the `dialout` group and log out.

udev rule for USB2AX adapter
Expand Down
9 changes: 8 additions & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import os
import glob

VERSION = '0.0.2'
APPNAME = 'dynamixel-demos'
APPNAME = 'libdynamixel'

srcdir = '.'
blddir = 'build'
Expand Down Expand Up @@ -50,3 +50,10 @@ def build(bld):
k = os.path.split(i)
d = os.path.split(k[0])
bld.install_files('${PREFIX}/include/' + d[1], i)

def checkinstall (ctx):
ctx.exec_command('checkinstall' +
' --pkgname=' + APPNAME + ' --pkgversion=' + VERSION +
' --provides=' + APPNAME + ' --requires=dockbarx' +
' --deldoc=yes --deldesc=yes --delspec=yes --backup=no' +
' --exclude=/home -si -y ./waf install')