Giter Site home page Giter Site logo

Comments (6)

fryguybob avatar fryguybob commented on June 11, 2024

(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.

fryguybob avatar fryguybob commented on June 11, 2024

(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.

fryguybob avatar fryguybob commented on June 11, 2024

(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.

fryguybob avatar fryguybob commented on June 11, 2024

(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.

fryguybob avatar fryguybob commented on June 11, 2024

(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.

fryguybob avatar fryguybob commented on June 11, 2024

(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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.