Vantron VT-M2M-BTA-DE ThingWorx Installation and Setup Guide
Copyright © 2015 PTC Inc. and/or Its Subsidiary Companies. All Rights Reserved.
3
2.
Open a terminal in Ubuntu and type the
following to gain root access:
sudo su:
Above: Ubuntu terminal window.
3.
Type the following commands into the terminal window to pre-install two required packages:
apt-get install qemu-user-static
apt-get install qtcreator
4.
Extract the toolchain file to an appropriate directory:
tar xjf debootstrap-squeeze-i386.tar.bz2 –C /root/
5.
Combine the SDK and lvdemo_src files into the same directory, as follows (the file structures will be
similar, but they will not be overwritten):
a.
Create a directory named “tw-c-sdk”.
b.
Put all the files and directories within “ThingWorx-C-SDK-1-1-1-38/tw-c-sdk/” and all the files
within “lvdemo_src/tw-c-sdk/” into the “tw-c-sdk” directory.
c.
Confirm that no files are overwritten.
6.
Move the newly created “tw-c-sdk” directory into the “debootstrap-squeeze-i386” directory.
7.
Using the
chroot
command, limit the compile environment to the “debootstrap-squeeze-i386”
directory, which should now contain all of the files copied in steps 5 and 6.
chroot /root/debootstrap-squeeze-i386
8.
Compile the ThingWorx C-SDK to obtain an intermediate file:
cd /tw-c-sdk/examples/SteamSensorWithFileTransferAndTunneling/linux/
make BUILD=release PLATFORM=gcc-linux-x86-32
cp /tw-c-sdk/build/obj/gcc-linux-x86-32/release/libTw.a /tw-c-sdk/twapi/
9.
Build the lvdemo:
cd /tw-c-sdk/twapi/examples/lvdemo
mkdir out
cd out
qmake ../lvdemo.pro
make