Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: librsvg/librsvg-features.h: No such file or directory #14

Open
jwaldmann opened this issue Dec 4, 2021 · 3 comments
Open

Comments

@jwaldmann
Copy link

I want to build svgcairo because of ghc-vis. I am running into this:

$ cabal install svgcairo --lib --allow-newer
Resolving dependencies...
Build profile: -w ghc-8.10.7 -O1
...
Configuring svgcairo-0.13.2.1...
./svgcairo.h:6:10: fatal error: librsvg/librsvg-features.h: No such file or directory
    6 | #include <librsvg/librsvg-features.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

I do have librsvg2-devel (on Fedora 35) but the header is named differently:

$ ls /usr/include/librsvg-2.0/librsvg/
rsvg-cairo.h  rsvg-features.h  rsvg.h  rsvg-version.h
@Savelenko
Copy link

Savelenko commented Dec 9, 2021

I was attempting to build ghc-vis with stack (in Manjaro Linux) and encountered the same problem. I simply made a symlink to rsvg-features.h named librsvg-features.h and this solved the problem.

@jwaldmann
Copy link
Author

Ah nice to know that this works. Thanks!

The proper fix would be to change the names in https://github.com/gtk2hs/svgcairo/blob/master/svgcairo.h ? Would this break some code?

@dalpd
Copy link

dalpd commented Dec 10, 2021

Ah nice to know that this works. Thanks!

The proper fix would be to change the names in https://github.com/gtk2hs/svgcairo/blob/master/svgcairo.h ? Would this break some code?

#13

Also if you're nix users: svgcairo and ghc-vis were recently fixed on nixpkgs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants