-
Notifications
You must be signed in to change notification settings - Fork 66
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
Issues building chafa on CentOS 7 #113
Comments
Hi, thanks for filing the report. Your package versions are a bit old, but WebP should still be supported on your system. Could you please attach:
For the |
You could test if it's an older autoconf causing the C standard problem by adding |
Thank you for the really fast response!
|
Looks like your It might work if you edit |
Unfortunately, looks like
And there are no any I think there is no easy way to statically compile |
Hmm, right. I added the animation support in d263968, so it may be possible to revert that locally. I'd take a pull request to add fallback support for older libwebp versions, but I'm not sure it'd be worth the effort. If you just need to run Chafa on x86_64 with (statically linked) WebP support, I do have static builds you could use. See https://hpjansson.org/chafa/download/ under "Stand-alone executable". |
Right now a static build could be ok for my needs. Unfortunately your static build lacks SVG format support, which I also needed (BTW, don't you have a plans to add SVG support to your static builds?) I tried to build an immediately previous
Digging further I found this:
After changing P.S. Your library is really amazing by the picture quality it produces. I use it for picture preview in conjunction with |
Sweet, glad it's useful! I'd like to have SVG support in the static builds, but the major libraries I've looked at (librsvg and resvg) are written in Rust. Now Rust is great, I like it, but it complicates things: Currently I build and link against an old glibc so the final binaries can be used on older systems, and that would have to change. I'd also have to set up a Rust toolchain in the build env, and the final binaries would be something like 5x as big, so 80% SVG renderer, 20% everything else. One possible solution would be to use an old C-only version of librsvg, but then I'd have to add extra code to support the old API, and it would probably have unresolved security issues. For the Windows builds I use the MXE stack, which has the last C-only librsvg version (misremembered this initially as not having an SVG library, sorry), probably for similar reasons. |
Finalizing this, I think solution to use latest C version of Once again, thank you for your responses and your work! I saw you are already added workarounds for the CentOS 7 autoconf version, so I think we can close this for now. Just FYI, CentOS 7 EOL date is 2024-06-30 and its |
Great. I'll look into building with librsvg 2.40.x. Feel free to report any other issues you come across 👍 |
The first issue, for some reason
chafa
does not seelibwebp
installed on my system. I have the following packages installed:Seems ok to me, however this is CentOS, maybe
libwebp
version is too obsolete and not supported?The second issue, building the
chafa
, I get the following error:Changing
CFLAGS = -g -O2
line in thechafa/libnsgif/Makefile
toCFLAGS = -g -O2 -std=c99
fixes it and allowschafa
to build successfuly.GCC version in the build toolchain is
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
I also get a couple of warnings about m4 macros after running
autogen.sh
(I don't know is it related or not):However, the only really important question to me from all of this "is there any way to build
chafa
with the WebP support?"The text was updated successfully, but these errors were encountered: