Skip to content

Instantly share code, notes, and snippets.

@scfcode
Last active November 13, 2022 21:04
Show Gist options
  • Save scfcode/5e7ef137cd82e241e1be8953a6e25375 to your computer and use it in GitHub Desktop.
Save scfcode/5e7ef137cd82e241e1be8953a6e25375 to your computer and use it in GitHub Desktop.
Builting supernote-tool on macOS Monterey #supernote #png

Built supernote-tool on macOS Monterey

https://github.com/jya-dev/supernote-tool

Pillow gave a complaint about zlib

So I did

$ git clone https://github.com/jya-dev/supernote-tool
$ brew install libjpeg libtiff little-cms2 openjpeg webp zlib
$ brew install freetype harfbuzz fribidi
$ export LDFLAGS="-L/usr/local/Cellar/zlib/1.2.13/lib"
$ export CPPFLAGS="-I/usr/local/Cellar/zlib/1.2.13/include"
$ cd supernote-tool
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -U setuptools    # required if version of setuptools < 46.4.0
$ pip install .

to run

$ alias snt=$HOME/Developer/GitHub/supernote-tool/supernotelib/cmds/supernote_tool.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment