Search form

Documentation

Running Control Panel Sample - Thin Linux

Prerequisites

  • Build the thin Linux samples
  • Build the AllJoyn™ router. AllJoyn thin apps require an AllJoyn router to connect to in order to function properly.
  • Build alljoyn thin core with the additional parameter define=ANNOUNCE_BASED_DISCOVERY provided to scons.
  • Build base thin with the additional parameter define=CONTROLPANEL_SERVICE provided to scons.

Run Controllee Sample

  1. Navigate to the AllJoyn™ root directory, then:

    export AJ_ROOT=`pwd`
    
    # <TARGET CPU> can be either x86_64, x86, or whatever value you set for CPU= when running SCons.
    export TARGET_CPU=<TARGET CPU>
    cd $AJ_ROOT/core/alljoyn/build/linux/$TARGET_CPU/release/dist/cpp/bin
    
    BASE_THIN_DIST_LIB=$AJ_ROOT/services/base_tcl/dist/lib
    CORE_THIN_DIST_LIB=$AJ_ROOT/core/ajtcl/dist/lib
    
    # This sets the library path to load the liballjoyn.so shared library.
    export LD_LIBRARY_PATH=`pwd`/../lib:$BASE_THIN_DIST_LIB:$CORE_THIN_DIST_LIB:$LD_LIBRARY_PATH
    
    # Launch the alljoyn daemon to allow thin apps to connect to the alljoyn router
    ./alljoyn-daemon &
    
  2. Launch the Controllee Sample (in a new terminal).

    cd $AJ_ROOT/services/base_tcl/build/release/samples
    ./ControlleeSample
    
  3. Use one of the following Controller apps to interact with the Controllee:

For future news and updates, please follow or visit https://t.co/MKr1Z9NPji
9 months 2 weeks ago