Comments (6)
(Imported. Original comment by [email protected] on December 22, 2011, 01:39:20 AM UTC)
Looks like a Cairo bug, can you test its PDF generation from another program?
from diagrams-core.
(Imported. Original comment by [email protected] on December 22, 2011, 03:57:10 AM UTC)
I had a similar problem with ps/pdf generation when trying out the Chart library (again png output would work). In the case of Chart, the compiled haskell programs would outright crash / have a memory allocation issue on the C lib side.
Does that help clarify?
from diagrams-core.
(Imported. Original comment by [email protected] on January 21, 2012, 04:48:51 PM UTC)
Apparently there's an incompatibility (or possibly bug) with lion's preinstalled version of cairo, which was built with llvm:
https://trac.macports.org/ticket/30370
Homebrew/legacy-homebrew#9518
I fixed this issue (as recommended in the homebrew ticket) using
brew install cairo --use-clang
Then I reinstalled gtk2hs using
cabal install cairo gtk --extra-include-dirs=/usr/local/Cellar/cairo/1.10.2/include --extra-lib-dirs=/usr/local/Cellar/cairo/1.10.2/lib --reinstall
After running those steps, pdf and ps output work fine for me.
from diagrams-core.
(Imported. Original comment by [email protected] on January 21, 2012, 06:36:21 PM UTC)
what versions of libs do you have? I'm getting the following error when I
do that build setup
thanks
-Carter
Building gtk-0.12.2...
Preprocessing library gtk-0.12.2...
dyld: Library not loaded: /usr/local/lib/libpangocairo-1.0.0.dylib
Referenced from: /usr/local/lib/libgtk-x11-2.0.0.dylib
Reason: Incompatible library version: libgtk-x11-2.0.0.dylib requires
version 2905.0.0 or later, but libpangocairo-1.0.0.dylib provides version
2801.0.0
running dist/build/Graphics/UI/Gtk/Embedding/Embedding_hsc_make failed
(exit code 5)
command was: dist/build/Graphics/UI/Gtk/Embedding/Embedding_hsc_make
dist/build/Graphics/UI/Gtk/Embedding/Embedding.hs
cabal: Error: some packages failed to install:
gtk-0.12.2 failed during the building phase. The exception was:
ExitFailure 1
from diagrams-core.
(Imported. Original comment by [email protected] on January 22, 2012, 06:28:16 PM UTC)
Closing now, since it's clear it wasn't a diagrams bug and it seems like a solution/workaround has been figured out, see https://gist.github.com/1655271
I'll also add a link to the above solution on the wiki.
from diagrams-core.
(Imported. Original comment by [email protected] on January 22, 2012, 08:35:04 PM UTC)
awesome, sounds good to me
from diagrams-core.
Related Issues (20)
- support SVG blur effect on subdiagrams HOT 1
- A release with constraintskinds fix? HOT 3
- allow lens-4.17
- New release on Hackage to allow GHC 8.8.1 HOT 2
- Constraint synonym for any valid back end?
- Is it possible to serialize a diagram to a file and then render it with another program, another time? HOT 4
- diagrams-core introduced breaking change in a patch version HOT 5
- Relax upper bound constraints to build with base 4.15 HOT 21
- Support monoid-extras 0.6 and future versions of base (Option deprecation) HOT 2
- Doesn't work with old monoid-extras HOT 1
- Inconsistent code and doc for `atLeast`/`atMost` HOT 4
- Out of date git repo? HOT 1
- Please add support for recent versions of vector-space HOT 1
- New release for 7.10 HOT 3
- Attributes aren't type safe HOT 7
- Document (Transformable (Envelope ...)) instance HOT 2
- Problem installing diagrams with cabal... HOT 3
- Drop "xlink:" namespace for SVG 2.0 HOT 2
- Allow specifying the "target" attribute for links in SVG elements
- loosen upper bound of lens dependency for Stackage lts-11.0 compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diagrams-core.