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
>> Install the Virtual Box Extension Pack to add more USB interfaces
>> Then add the PEAK System VER:1*** USB and a NEW FILTER USB.
>> Start the Virtual Machine "Ubuntu 14.04"
>> Plug in the PCAN USB
>> Check if the PCAN module has been inserted
tail -f /var/log/syslog

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
>> In case this does not work, download the LINUX driver 7.15.2:
wget http://www.peak-system.com/fileadmin/media/linux/files/peak-linux-driver-7.15.2.tar.gz
tar xvf peak-linux-driver-7.15.2.tar.gz
cd peak-linux-driver-7.15.2
make
sudo make install

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

Install the Code::Blocks Integrated Development Environment (IDE)

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
Last modified 6 years ago Last modified on Dec 11, 2018, 4:26:12 PM