Instructions to build Squirrel - the Rime frontend for macOS
Install Xcode >= 12.2 from App Store.
Install cmake.
Download from https://cmake.org/download/
or install from Homebrew:
brew install cmake
or install from MacPorts:
port install cmake
git clone --recursive https://github.com/rime/squirrel.git
cd squirrel
Optionally, checkout Rime plugins (a list of GitHub repo slugs):
bash librime/install-plugins.sh rime/librime-sample # ...
You have the option to skip the following two sections - building Boost and librime, by downloading the latest librime binary from GitHub releases.
bash ./travis-install.sh
When this is done, you may move on to Build Squirrel.
Choose one of the following options.
Option: Download and install from source.
export BUILD_UNIVERSAL=1
make -C librime xcode/thirdparty/boost
export BOOST_ROOT="$(pwd)/librime/thirdparty/src/boost_1_75_0"
Let's set BUILD_UNIVERSAL
to tell make
that we are building Boost as
universal macOS binaries.
After Boost source code is downloaded and a few compiled libraries are built,
be sure to set shell variable BOOST_ROOT
to its top level directory as above.
You may also set BOOST_ROOT
to an existing Boost source tree before this step.
Option: Install the current version form Homebrew:
brew install boost
Note: with this option, the built Squirrel.app is not portable because it links to locally installed libraries from Homebrew.
Learn more about the implications of this at https://github.com/rime/librime/blob/master/README-mac.md#install-boost-c-libraries
Option: Install from MacPorts:
port install boost -no_static
Again, set BUILD_UNIVERSAL
to tell make
that we are building librime as
universal macOS binaries.
Build librime, dependent third-party libraries and data files:
export BUILD_UNIVERSAL=1
make deps
With all dependencies ready, build Squirrel.app
:
make
Once built, you can install and try it live on your Mac computer:
sudo make install
That's it, a verbal journal. Thanks for riming with Squirrel.