Build the C POSIX Client Software Libraries on Mac OS X

To run the C POSIX samples on the Mac OS X platform, you must first build the libraries from source code files. You can change which features are supported by the library you build through a configuration option passed to the build command.

  1. Set up your Mac OS X development environment. See Set Up Your Development Environment to use Mac OS X.
  2. Open a web browser and browse to the Oracle Internet of Things Cloud Service client software libraries download site.
  3. Scroll to C Client Software Libraries and download the Source Code zip file from the POSIX table to your development computer.
  4. Open a terminal window and change directories to the iotcs/csl/posix/make directory.
  5. Run this command to build the libraries and create the documentation: make LIB_CFG=<library option> CPP_OPTS="-I/usr/local/opt/openssl/include" LD_OPTS="-L/usr/local/opt/openssl/lib"
    Use the following table to determine which value to enter for <config option>:
    Library Option Messaging Thread Safety Message Dispatcher Virtualization Support Gateway
    nots false false false false
    nots_gw false false false true
    ts true false false false
    ts_gw true false false true
    ts_md true true false false
    ts_md_gw true true false true
    ts_md_vs true true true false
    ts_md_vs_gw true true true true