Version 3 (modified by bz, 10 years ago) (diff)

--

BHand C++ software installation in Ubuntu 14.04

If you are using Ubuntu 14.04 (Trusty) in VirtualBox:

sudo apt-get install virtualbox-guest-dkms

For all users of Ubuntu 14.04, install the dependencies:

sudo apt-get install codeblocks build-essential wxgtk2.8-dev freeglut3-dev libpopt-dev libpoco-dev

Install the CTB serial port library:

cd
wget https://iftools.com/download/ctb/0.14/libctb-0.14.tar.gz
tar xvf libctb-0.14.tar.gz
cd libctb-0.14/build
mkdir release
sudo make DEBUG=0 GPIB=0 install
sudo cp ../include/ctb-0.14/*.h /usr/local/include/ctb-0.14/
ldconfig

Install the Peak CAN driver:

wget http://www.peak-system.com/fileadmin/media/linux/files/peak-linux-driver-7.14.tar.gz
tar xvf peak-linux-driver-7.14.tar.gz
cd peak-linux-driver-7.14
make NET=NO_NETDEV_SUPPORT
sudo make install
sudo echo <<EOF KERNEL=="pcanusb*", NAME="pcanusb/%n", SYMLINK+="%k", GROUP="plugdev" | sudo tee -a /etc/udev/rules.d/45-pcan.rules
EOF
sudo modprobe pcan

Install the BHand API and BHControl GUI source code:

wget http://web.barrett.com/support/BarrettHand_Installer/bhand2015-06-02.tar.bz2
tar xvjf bhand2015-06-02.tar.bz2

Build the API and GUI:

Launch Code::Blocks
Open the ~/BHand/API/BHand/BHand.cpb project file
Choose "Build:Select Target:Linux Release"
Build the project

Open the ~/Bhand/bhcontrol/bhcontrol.cpb project file
Build the project