lettier / gifcurry

😎 The open-source, Haskell-built video editor for GIF makers.
https://lettier.github.io/gifcurry
BSD 3-Clause "New" or "Revised" License
1.36k stars 56 forks source link

README for building should mention libgirepository1.0-dev, libgtk-3-dev dependencies #17

Closed unhammer closed 3 years ago

unhammer commented 7 years ago

When building the git clone with stack build, I get

    Configuring haskell-gi-0.20.3...                                  
    Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2: The pkg-config package                                                                                                                              
    'gobject-introspection-1.0' version >=1.32 is required but it could not be
    found.     

which is solved with sudo apt-get install libgirepository1.0-dev on Ubuntu.

followed by

    Did not find a GI repository for Gdk-3.0 in                                                                                                                                                   
    ["/usr/share/xubuntu/gir-1.0","/usr/share/xfce4/gir-1.0","/usr/local/share/gir-1.0","/usr/share/gir-1.0","/usr/share/gir-1.0"].                                                                                                                                                            
    CallStack (from HasCallStack):                                                                                                                                                                
    error, called at lib/Data/GI/GIR/Repository.hs:89:20 in                                                                                                                                       
    haskell-gi-0.20.3-GkK5Bv8ALzbESiQXUDFHfm:Data.GI.GIR.Repository    

which is solved with sudo apt-get install libgtk-3-dev on Ubuntu.

I'd send a PR against the README, but I didn't quite understand in what section of the build instruction list to put it ("github"? But then why are there both mac→compile and github compile instructions?)

lettier commented 7 years ago

Hello @unhammer

I do apologize for the confusion. GObject Introspection is a dependency of a dependency of Gifcurry.

The GitHub build instructions are left intentionally vague since the platform is unknown in that context. The macOS build instructions do go through the step of installing all of the transitive dependencies via Homebrew.

Still, I have now referenced it in all of the appropriate places.

I noticed you are using Xubuntu. If you'd like, you can skip building Gifcurry and use the pre-built binaries found on the releases page.

:+1:

unhammer commented 7 years ago

Thanks! I did see the releases (love how easy you made it to run), but this time I was just playing around with the code, so wanted to be able to compile.