From 1466fbe8cecaf4bcd0301ae1346b8918ccfd4f67 Mon Sep 17 00:00:00 2001 From: Takaaki Numai Date: Wed, 8 Dec 2021 14:07:59 +0900 Subject: [PATCH 1/3] Add checkinstall command --- wscript | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wscript b/wscript index ca1ed12d..b9609843 100644 --- a/wscript +++ b/wscript @@ -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') From 569f9a70966d7fe1826fd1ef1e26e31926d21452 Mon Sep 17 00:00:00 2001 From: Takaaki Numai Date: Wed, 8 Dec 2021 14:19:31 +0900 Subject: [PATCH 2/3] Update README --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4fe16093..c93674f9 100644 --- a/README.md +++ b/README.md @@ -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` + 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 From f51399e37264604f6946882d1c265750179543f2 Mon Sep 17 00:00:00 2001 From: Takaaki Numai Date: Thu, 16 Dec 2021 11:48:36 +0900 Subject: [PATCH 3/3] Change APPNAME (dynamixel-demos -> libdynamixel) --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wscript b/wscript index b9609843..2b260caa 100644 --- a/wscript +++ b/wscript @@ -7,7 +7,7 @@ import os import glob VERSION = '0.0.2' -APPNAME = 'dynamixel-demos' +APPNAME = 'libdynamixel' srcdir = '.' blddir = 'build'