Setting up the DL Code on OS X - twongjirad/LArLiteSoftCookBook GitHub Wiki
Building on OS X
These are notes from installing the DL code on OS X starting basically from scratch. Used OS X Sierra.
Get Xcode
- upgrade to Sierra
- install Xcode: go into the App store and search for Xcode
- install Xcode command line tools
No anaconda
One popular python package that is sometimes installed on OS X is anaconda. It is highly recommended to remove this if its installed.
Get home brew
Home brew is a package manager for OS X. Basically, it manages a bunch of scripts to install various common software packages. One can build and install software in a single command.
Note, there are other package managers for OS X. The most popular alternative is MacPorts. Always remember,
- NEVER MIX PACKAGE MANAGERS!! *
Breaking this rule can lead to a big, complex mess.
- install home brew
Use home brew to install packages
- brew install python
- brew install sip
- brew install cmake
- brew install opencv3
- brew info opencv3: this will give you a message about activating python bindings. Run the command in that message.
Install ROOT
- install XQuartz
- make a folder for root to live in. inside make a build folder.
- get the code from the root repository
- run cmake
- make
- add thisroot.sh to .bash_profile so environment variables for ROOT is setup in shell
install dependencies for LArCV viewer
- brew install pyqt --without-python3 --with-python
- pip install pyqtgraph
install DL code
- clone unified repo
- check setup.sh so that
OPENCV_LIBDIR
andOPENCV_INCDIR
environment variables point to the right place. - source configure.sh
- make -j4