Telematics SDK - User Guide  v1.33.66
Sample Apps

This section has instructions to run the sample applications that come with the Telematics SDK. Sample applications use the cmake build system. You need to have cmake version 2.8.9 or later on your host machine

Setup the build environment

  • Source the build environment:
    1 $ cd my_sdk_install; source environment-setup-cortexa8hf-vfp-neon-oe-linux-gnueabi

Now your development environment is set for the terminal, start your development.

Compile sample apps

  • Goto telux/samples directory and create a build folder
    1  $ cd telux/samples
    2 $ mkdir -p build; cd build
  • Compile all the samples:
    $ cmake -DBUILD_ALL_SAMPLES:BOOL=ON -DCMAKE_INSTALL_PREFIX=./install ..
    $ make clean && make install

Compile telsdk_console_app:

  • Goto respective sample program for compiling individual programs
    1 $ cd samples/telsdk_console_app
    2 $ mkdir -p build; cd build
    3 $ cmake -DCMAKE_INSTALL_PREFIX=./install ..
    4 $ make clean && make install

Install program on the device

  • Push your binary to the /data location on the device
    1 # this install all the sample apps
    2 user@machine:/build/install/bin$ adb push . /data/
    3 user@machine:/build/install/bin$ adb shell
    4 # cd data
    5 # ./telsdk_console_app
    6 
    7 # to install telsdk_console app
    8 user@machine:telsdk_console_app/build/install/bin$ adb push . /data/