For all OSs, the first step is cloning the repo:
$ git clone https://github.com/bradrn/cabasa
stack
is recommended,
especially on Windows, since it includes a copy of MinGW.
The rest of this guide assumes the use of Stack.
Before building, the user manual must also be compiled using LaTeX. LaTeX may be installed using either MiKTeX or TeX Live; I personally use MiKTeX. Instructions are given for each OS separately.
Cabasa relies on the GTK GUI library and its GObject Introspection bindings. To install, run the following command:
> stack exec -- pacman -S mingw-w64-x86_64-gtk3 mingw-w64-x86_64-glade mingw64/mingw-w64-x86_64-pkg-config mingw64/mingw-w64-x86_64-gobject-introspection
Python will need to be installed before building,
since the user manual requires pygmentize
, a Python application, for syntax highlighting.
Commands:
> pip install pygments
> cd data\doc
> pdflatex -shell-escape UserManual.tex
> cd ..\..
NOTE: You may need to run the
pip install
command in administrator mode.
After this, Cabasa may be build with the following command:
> stack exec -- bash -c 'XDG_DATA_DIRS=/mingw64/share stack build'
You may then run Cabasa with stack exec cabasa
.
$ sudo apt-get install python-pygments
$ cd data/doc
$ cd ../..
NOTE: If you get an error about
\inputminted was probably given a file that does not exist
, try changing the line\usepackage{minted}
to\usepackage[cache=false]{minted}
indata/doc/UserManual.tex
.
WARNING: This section is OUTDATED. It will be updated when I have some time to figure out how to build the current version of Cabasa on Ubuntu.
Run the following commands:
$ sudo apt-get install libcairo2-dev libpango1.0-dev gtk+-3.0
$ stack build
After this, Cabasa may be run with stack exec cabasa
.
So far, I have not tried building Cabasa on any other OSs. If you have successfully managed it, feel free to send me a PR with your method!