Skip to content

Running the Examples

Linux

  1. Open a command terminal window
  2. Run the ExampleGposServer
    1. Go to the installation folder
      • cd {sdk_parent}/install/{OS_Architecture}/bin/ExampleGposServer
    2. Run the ExampleGposServer Application
      • export LD_LIBRARY_PATH=../../lib/openjaus; ./ExampleGposServer
        • This uses the LD_LIBRARY_PATH environment variable to specify the location of the openjaus shared objects. You could use other mechanisms to specify their locations such as installing to one of the default search paths (/usr/lib, /usr/local/lib, etc), or configuring the system using ldconfig.
  3. Open a second command terminal window
  4. Run the ExampleClient
    1. Go to the installation folder
      • cd {sdk_parent}/install/{OS_Architecture}/bin/ExampleClient
    2. Run the ExampleClient Application
      • export LD_LIBRARY_PATH=../../lib/openjaus; ./ExampleClient
  5. In the ExampleClient application press t
  6. You should see a print out similar to:

System Tree showing the ExampleGposServer and ExampleClient components

where Component 1 is the ExampleGposServer application and Component 2 is the ExampleClient application.

Windows

  1. Open a PowerShell terminal window
    • PowerShell is our recommended shell on Windows, but the normal Windows command terminal will also work
  2. Run the ExampleGposServer
    1. Go to the installation folder
      • cd {sdk_parent}/install/{OS_Architecture}/bin/ExampleGposServer
    2. Run the ExampleGposServer Application
      • ./ExampleGposServer
        • The openjaus library dlls will be installed side-by-side with the application which will allow the application to find them and run.
  3. Open a second PowerShell terminal window
  4. Run the ExampleClient
    1. Go to the installation folder
      • cd {sdk_parent}/install/{OS_Architecture}/bin/ExampleClient
    2. Run the ExampleClient Application
      • ./ExampleClient
  5. In the ExampleClient application press t
  6. You should see a print out similar to:

System Tree showing the ExampleGposServer and ExampleClient components

where Component 1 is the ExampleGposServer application and Component 2 is the ExampleClient application.

ARM Linux

  1. Copy the contents of the installation folder to the ARM device
    • {sdk_parent}/install/{OS_Architecture} is the openjaus default installation path.
    • If you used CMAKE_INSTALL_PREFIX when running cmake, then the BasicExample will be installed under that location.
  2. Open a command terminal window on the ARM device
  3. Run the ExampleGposServer
    1. Go to the installation folder
      • cd {sdk_parent}/install/{OS_Architecture}/bin/ExampleGposServer
    2. Run the ExampleGposServer Application
      • ./ExampleGposServer
        • By default, the application will statically link the openjaus libraries when building for ARM.
  4. Open a second command terminal window on the ARM device
  5. Run the ExampleClient
    1. Go to the installation folder
      • cd {sdk_parent}/install/{OS_Architecture}/bin/ExampleClient
    2. Run the ExampleClient Application
      • ./ExampleClient
  6. In the ExampleClient application press t
  7. You should see a print out similar to:

System Tree showing the ExampleGposServer and ExampleClient components

where Component 1 is the ExampleGposServer application and Component 2 is the ExampleClient application.