﻿This directory contains some helpers to make the distribution
of the ID Quantique software on Apple Mac OS X system.

To recompile the application, one should:
    1) Extract the archive somewhere (for the rest of this
       document, we will assume that the archive is extracted in "/var/tmp/quantis")
    2) Go to the directory "Libs-Apps" and execute
       "cd /var/tmp/quantis/Libs-Apps" 
    3) Create a sub-directory "build" with the command "mkdir build"
    4) go in the directory "build"
    5) decide if he/she wants to use the last version of
       the C++ standard (version 11)
    6) if the C++ version 11 is used, pass the two following
       command (the syntax given here is adapted for the bash
       shell and the other Bourne shells):
           export CC=clang
           export CXX=clang++
    7) pass either the command "cmake -DUSE_CXX11=1 -DDISABLE_EASYQUANTIS=1.." (for using C++ vers. 11)
       or "cmake .." to use the usual C++ version.
    8) Build the software with the command "make"
    9) type "make package" to generate a DMG disk containing a package
       installable on the Mac.
   10) Generate, if needed, the application wrapper (following
       the instructions given in the file "wrapper/Readme"
   11) Generate a new DMG disk ready to be installed by using the
       script "CreeDmg.sh" in this directory.

In order to be able to compile the ID Quantis software the following
requisites should be satisfied:
   1) The Apple developper kit should be installed
   2) The software QT, boost, and libusb should be available
      and compiled with static libraries (ortherwise, use the flag 
      "-DUSE_DYNAMIC_LIBS=1" for CMake)

The application "EasyQuantis" can not be compiled simultaneously with the C++11 library. If you want to compile both EasyQuantis and use C++11, compile them in two separate compilations.
