editor icon indicating copy to clipboard operation
editor copied to clipboard

Possible build for MacOS

Open theokeist opened this issue 9 months ago • 3 comments

theokeist avatar May 05 '25 11:05 theokeist

Possible Image

istoph avatar May 05 '25 11:05 istoph

Which individual components you have to build for it to run? Since some dependencies are missing from Homebrew

theokeist avatar May 08 '25 18:05 theokeist

Yes, Homebrew is on the TODO.

Here I have a snipped from our CI. But you need QT5 (in our case from Homebrew) and other stuff you can find here: https://github.com/istoph/editor/tree/main/doc/build Because MacOS we don't have a container. Unfortunately!

    - export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/qt/lib/pkgconfig
    - export PATH=/usr/local/opt/qt/bin:$PATH
    
    - git clone https://github.com/mesonbuild/meson.git
    - MESON="$PWD/meson/meson.py"
    - PREFIX="$PWD/prefix"
    - export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PREFIX/lib/pkgconfig 
    
    - (cd termpaint; $MESON setup _build --prefix="$PREFIX" && $MESON compile -C _build && $MESON test -C _build && $MESON install -C _build)
    - (cd toolkit; $MESON setup _build --prefix="$PREFIX" && $MESON compile -C _build && $MESON test -C _build && $MESON install -C _build)
    - (cd editor; $MESON setup _build --prefix="$PREFIX" && $MESON compile -C _build && $MESON install -C _build)

We do not currently build with syntax highlighting on the Mac.

If it works or if I have forgotten something, please feel free to comment. Then I'll add it to the documentation.

istoph avatar May 08 '25 19:05 istoph