This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
cs501r_f2016:lab1 [2017/09/07 18:46] humphrey |
cs501r_f2016:lab1 [2017/09/08 16:08] humphrey |
||
---|---|---|---|
Line 140: | Line 140: | ||
</code> | </code> | ||
- | Here is a full setup for cairo in linux, which should be sufficiently similar to mac: | + | Here is a full setup for cairo in linux. |
<code> | <code> | ||
- | 1. sudo apt-get install libcairo2-dev | + | sudo apt-get install libcairo2-dev |
- | 2. git clone https://github.com/pygobject/pycairo.git | + | git clone https://github.com/pygobject/pycairo.git |
- | 3. cd pycairo/ | + | cd pycairo/ |
- | 4. python setup.py build | + | python setup.py build |
- | 5. python setup.py install | + | python setup.py install |
+ | </code> | ||
+ | |||
+ | Here is a setup for cairo in mac. | ||
+ | <code> | ||
+ | brew install cairo --use-clang | ||
+ | brew install py2cairo | ||
</code> | </code> | ||