diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-02-10 16:38:59 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-02-10 16:38:59 +0100 |
| commit | e6004394a3cf47fb1514955b9a4dc283268a28ae (patch) | |
| tree | c40bbd302dcf7f0068e64fbc7b5395b46a976e7f /notes/frameworks/cairo.md | |
| parent | efadb39172eb36b4ffebeaa5169219c7954a263b (diff) | |
| parent | c07efd085b4148254f51e912282ec644c3c71d81 (diff) | |
Merge branch 'master' of github.com:adamhrv/megapixels_dev
Diffstat (limited to 'notes/frameworks/cairo.md')
| -rw-r--r-- | notes/frameworks/cairo.md | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/notes/frameworks/cairo.md b/notes/frameworks/cairo.md index 3eeb2159..4022ae54 100644 --- a/notes/frameworks/cairo.md +++ b/notes/frameworks/cairo.md @@ -1,8 +1,6 @@ # Cairo -WeasyPrint relies on Cairo>1.14.~ but cairo=1.15.* didn't install correctly. Cairo 1.16.0 tested and works as of Feb 9 - -Install cairo on Ubuntu 16.04 for WeasyPrint +Requires cairo built form source. The conda builds dont' work: unable to render background-image css. On Ubuntu18+ might be able to install with apt. For Ubuntu 16.04 run: ``` wget https://www.cairographics.org/releases/cairo-1.16.0.tar.xz @@ -11,7 +9,18 @@ cd cairo-1.16.0 ./configure --prefix=$HOME/code/cairo make make install -export PKG_CONFIG_PATH=$HOME/code/cairo/lib/pkgconfig -export LD_LIBRARY_PATH=$HOME/code/cairo/lib +export PKG_CONFIG_PATH=$HOME/code/cairo/lib/pkgconfig:$PKG_CONFIG +export LD_LIBRARY_PATH=$HOME/code/cairo/lib:$LD_LIBRARY_PATH # pip install weasyprint -```
\ No newline at end of file +``` + +Virtualenv +- Works in virtualenv with python `mkvirtualenv weasycairo -p python3.6` +- Doesn't work in virtualenv w/o cairo local build paths, cairo is < 1.15.4 + +Conda +- Works in conda env with python 3.6 and cairo built on system with paths set +- doesn't work with conda build of 1.16 (both builds don't work) +- Doesnt work in megapixels conda env even with local cairo build + +WeasyPrint relies on Cairo>1.15.4. Locally built Cairo 1.16.0 tested and works as of Feb 9. But the conda installed Cairo 16 has issues
\ No newline at end of file |
