Build the C POSIX Client Software Library Sample Applications

The C POSIX client software library sample applications must be built before they can run on your Mac OS X platform.

  1. Set up the environment on your Mac OS X platform. See Set Up Your Development Environment to use Mac OS X
  2. Open a terminal window and change directories to: iotcs/csl/posix/samples/make.
  3. Run this command to create the directly connected device sample application: make LIB_CFG=<library option> CPP_OPTS="-I/usr/local/opt/openssl/include" LD_OPTS="-L/usr/local/opt/openssl/lib"
    An application named directly_connected_device_sample.out is created in the ../build/sample/x86/ts_md_vs directory.
    The value of <library option> must be one of the following:
    • nots

    • ts

    • ts_md

    • ts_md_vs

  4. Run this command to create the gateway sample application: make LIB_CFG=<library option> CPP_OPTS="-I/usr/local/opt/openssl/include" LD_OPTS="-L/usr/local/opt/openssl/lib"
    An application named gateway_device_sample.out is created in the ../build/sample/x86/ts_md_vs_gw directory.
    The value of <library option> must be one of the following:
    • nots_gw

    • ts_gw

    • ts_md_gw

    • ts_md_vs_gw