Telematics SDK - User Guide  v1.13.0
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

Source the environment

  • Source the build environment:
    $ 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
    $ cd telux/samples
    $ 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
    $ cd samples/telsdk_console_app
    $ mkdir -p build; cd build
    $ cmake -DCMAKE_INSTALL_PREFIX=./install ..
    $ make clean && make install

Install apps on the device

  • Push your binary to the /data location on the device
    # this install all the sample apps
    [email protected]:/build/install/bin$ adb push . /data/
    [email protected]:/build/install/bin$ adb shell
    # cd data
    # ./telsdk_console_app
    # to install telsdk_console app
    [email protected]:telsdk_console_app/build/install/bin$ adb push . /data/