Skip to main content
Version: STU SDK

Ubuntu Build Guide

How to install on Ubuntu 12.04.05 (fresh install)

Install build enviroment

To build boost, you’ll first need to install the compiler suite:

sudo apt-get install -y build-essential

Install Boost

Due to the age of the runtime on 12.04.05, there isn’t enough C++11 support to fully utilise the standard library. Because of this, you need to install the latest version of boost into /usr/lib but executing the following command in terminal (note, this can take some time!):

wget --no-check-certificate https://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.tar.gz/download && tar -zxvf download && cd boost_1_63_0 && ./bootstrap.sh --prefix=/usr && ./b2; sudo ./b2 install

Install LibUSB

Communication to the STU devices in Linux is performed via the libusb framework. To install the libusb framework, enter the following command in terminal, entering your password when prompted:

sudo apt-get -y install libusb-1.0.0-dev

Install OpenSSL

Encyption routines in Linux are implemented using OpenSSL. To install the OpenSSL development libraries, enter the following command in terminal, entering your password when prompted:

sudo apt-get -y install libssl-dev

Setup UDEV rules

In order to allow Linux to correctly indentify the device, you will need to set up UDEV rules by pasting the following command into a terminal:

sudo su -
cat <<EOF >> /etc/udev /rules.d/60-stu.rules
SUBSYSTEM=="usb",ATTR{idVendor}=="056a",MODE:="0666"
SUBSYSTEM=="usb_device",ATTR{idVendor}=="056a",MODE:="0666"
EOF
udevadm control --reload-rules
logout

Reboot

Reboot the system (not strictly needed but seems to cure strange udev issues):

sudo reboot

Extract SDK and run sample

Finally, you will need to decompress the SDK with the following command in a terminal (this assumes SDK is on desktop):

cd ~/Desktop && tar -xvjf Wacom-STU-SDK-2.13.1-Ubuntu-12.04.05-Boost-1.63.tar.bz2

Now change to the samples directory, and run the simpleTablet demo:

cd Wacom-STU-SDK/Java/jar/Linux-i386
export LD_LIBRARY_PATH=`pwd`:/usr/lib
./c_simpleTablet

You should see point data captured on the pad output on the console.