Monday, November 13, 2017

Installing the Ninja and Meson Build Systems on OSX

I never use OSX. Doing so today has felt like trying to play guitar left handed, or say the alphabet backwards. I know what needs to be done but its unnatural and frustrating.

But I had to for work to test my meson build descriptions. I won't introduce them here, but meson seems pretty awesome and it depends on ninja for what usually make is used for.

If you are here you probably know that already anyway.

So 3 things to do: 1. install ninja, 2. install python3, 3. install meson.

Ninja:
1. download ninja binary from https://github.com/ninja-build/ninja/releases
2. copy it to a place OSX will execute it: sudo cp Downloads/ninja /usr/local/bin/

Python3:
1. just follow this guide:http://docs.python-guide.org/en/latest/starting/install3/osx/

Meson:
1. use pip: pip3 install meson


Now run wild building your meson projects (http://mesonbuild.com/Quick-guide.html if you don't know how).

1 comment:

Unknown said...

Thanks!! The article was really helpful