Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 2.07 KB

Readme-osx.md

File metadata and controls

63 lines (46 loc) · 2.07 KB

Building on OS X 10.9 & 11.4

NOTE: This document is intended for developers who wish to build the dx-toolkit SDK and command-line tools from source.

Instead of building from source, most users can install the prebuilt DNAnexus Platform SDK for OS X (a.k.a. dx-toolkit) release available for download at:

https://documentation.dnanexus.com/downloads

Setup steps


  1. Install Xcode and the Command Line Tools for XCode. (Free registration required with Apple) Make sure you accept the license (either via UI or command line: sudo xcodebuild -license).

  2. Install MacPorts for your version of OS X:

https://www.macports.org/install.php

  1. If you want your dx-toolkit build to be backwards-compatible on OS X 10.7, add these lines to /opt/local/etc/macports/macports.conf to ensure that your MacPorts Python build is compiled with 10.7 support:

    macosx_deployment_target            10.7
    MACOSX_DEPLOYMENT_TARGET            10.7
    
  2. Run the MacPorts install and select commands to configure your build environment:

    sudo port install -s python27
    sudo port install cmake bison autoconf automake
    sudo port install boost -no_static
    sudo port select --set python python27
    sudo port install py27-pip py27-virtualenv
    sudo port select --set pip pip27
    sudo port select --set virtualenv virtualenv27
    sudo port install gcc11
    sudo port select --set gcc mp-gcc11
    
  3. Clone the dx-toolkit repo, and build the SDK:

    cd dx-toolkit
    export CPATH=/opt/local/include
    # add following export on MacOS 11.4 (workaround for Boost lib dependency on icu4c):
    export LIBRARY_PATH=${LIBRARY_PATH}:/usr/local/opt/icu4c/lib
    make
    

Upload agent build setup steps


  1. Install the upload agent build dependencies:

    sudo port install libmagic c-ares
    
  2. Build upload agent:

    CC=clang CXX=clang++ VERSIONER_PERL_VERSION=5.16 make ua