Macos
To install the tof library on mac run:
sudo tar -xzf tof-mac-x86_64.tar.gz -C /usr/local
This will install the tof library for all users and you won’t have to add to the PATH
and DYLD_LIBRARY_PATH
variable.
Running viewer in the terminal should then open the viewer application
viewer
If it fails with the “viewer cannot be opened …” warning dialog, the security preferences will have to be updated.
- Go to “System Preferences > Security & Privacy” and select “Allow Anyway”
- Run the viewer again and select “Open” in the “macOS cannot verify…” warning dialog
- Select “Cancel” on the “libtof.dylib cannot be opened…” warning dialog
- Go to “System Preferences > Security & Privacy and select “Allow Anyway”
- Run the viewer again and select “Open” in the “macOS cannot verify…” warning dialog
- Chronoptics ToF viewer should finally launch
To update the PYTHONPATH
variable in your zprofile to point to the tof python library run:
echo 'export PYTHONPATH="${PYTHONPATH}:/usr/local/lib/python"' >> ~/.zprofile
source ~/.zprofile
If you installed the tof library in a different directory, you will need to update the following variables:
Variable | Relative path location to add |
---|---|
PATH | tof/bin |
DYLD_LIBRARY_PATH | tof/lib |
PYTHONPATH | tof/lib/python |