Skip to content

Building sc‐im with xls support on macOS

Ryan Knutson edited this page Mar 24, 2025 · 1 revision
  1. Install command line tools from Xcode.
xcode-select --install
  1. Clone SC-IM:
git clone https://github.com/andmarti1424/sc-im
cd sc-im
  1. Install libxls with make:
curl -L https://github.com/libxls/libxls/releases/download/v1.6.3/libxls-1.6.3.tar.gz | tar -zxvf -
cd libxls-1.6.3
./configure
make
sudo make install
cd ..
  1. Install libxml2 (requires Homebrew):
brew install libxml2
  1. Move to src directory:
cd src
  1. Add the following to the Makefile (under name is a good spot):
CFLAGS  += -DXLS $(shell pkg-config --cflags libxml-2.0 libxls)
LDFLAGS += $(shell pkg-config --libs libxml-2.0 libxls)
LDLIBS  += -lxlsreader
  1. Install SC-IM:
make clean
make
sudo make install