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:

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/

Install the Peak CAN driver:

tar xvf peak-linux-driver-7.14.tar.gz
cd peak-linux-driver-7.14
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
sudo modprobe pcan
>> In case this does not work, download the LINUX driver 7.15.2:
tar xvf peak-linux-driver-7.15.2.tar.gz
cd peak-linux-driver-7.15.2
sudo make install

Install the BHand API and BHControl GUI source code:

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
Last modified 6 weeks ago Last modified on Sep 12, 2017, 6:35:01 PM