This will also install the cli tool and libs into /usr/local.
XCode Instructions
From the project root:
This will generate an xcode project file along with some configs for you: lattice.xcodeproj . Open this file in XCode and you should be able to build the project
Troubleshooting
Linking errors can usually be resolved by ensuring correct paths:
Make sure your macdeployqt can be found. Lattice expects it to be in /usr/local/opt/qt5/bin/macdeployqt so symlink it if it's not:
If you're not planning to develop, make sure you are building from the master branch, not from develop or any others. These branches can often be broken or have other requirements.
brew install boost --c++11 # this takes a while
brew install boost-python --c++11
brew install cmake qt5 cryptopp miniupnpc leveldb gmp libmicrohttpd libjson-rpc-cpp
port install boost +universal # this takes a while
port install cmake qt5-mac libcryptopp miniupnpc leveldb gmp
(probably missing libmicrohttpd and libjson-rpc-cpp)
git clone https://github.com/lattice/cpp-lattice.git
cd cpp-lattice
mkdir -p build # create build folder ('build' ignored by git)
cd build
cmake ..
make -j6
make install
mkdir build_xc
cd build_xc
cmake -G Xcode ..
export LIBRARY_PATH=/opt/local/lib # this is MacPorts's default