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

Update install instructions / deps? Install currently fails. #73

Open
rsend opened this issue Jun 9, 2023 · 3 comments
Open

Update install instructions / deps? Install currently fails. #73

rsend opened this issue Jun 9, 2023 · 3 comments

Comments

@rsend
Copy link

rsend commented Jun 9, 2023

Hi,
I tried installing using the latest version of Go on a Raspberry Pi. The instructions now require "go install [url]@Version", which fails at:

github.com/chai2010/webp

go/pkg/mod/github.com/chai2010/[email protected]/webp.go:22:9: undefined: webpGetInfo
go/pkg/mod/github.com/chai2010/[email protected]/webp.go:26:20: undefined: webpDecodeGray
go/pkg/mod/github.com/chai2010/[email protected]/webp.go:39:20: undefined: webpDecodeRGB
go/pkg/mod/github.com/chai2010/[email protected]/webp.go:52:20: undefined: webpDecodeRGBA
go/pkg/mod/github.com/chai2010/[email protected]/webp.go:68:14: undefined: webpDecodeGrayToSize
go/pkg/mod/github.com/chai2010/[email protected]/webp.go:82:14: undefined: webpDecodeRGBToSize
go/pkg/mod/github.com/chai2010/[email protected]/webp.go:96:14: undefined: webpDecodeRGBAToSize
go/pkg/mod/github.com/chai2010/[email protected]/webp.go:109:7: undefined: toGrayImage
go/pkg/mod/github.com/chai2010/[email protected]/webp.go:110:14: undefined: webpEncodeGray
go/pkg/mod/github.com/chai2010/[email protected]/webp.go:119:14: undefined: webpEncodeRGB
go/pkg/mod/github.com/chai2010/[email protected]/webp.go:119:14: too many errors
github.com/pixiv/go-libjpeg/jpeg: build constraints exclude all Go files in /root/go/pkg/mod/github.com/pixiv/[email protected]/jpeg
gopkg.in/kothar/brotli-go.v0/dec: build constraints exclude all Go files in /root/go/pkg/mod/gopkg.in/kothar/[email protected]/dec
gopkg.in/kothar/brotli-go.v0/enc: build constraints exclude all Go files in /root/go/pkg/mod/gopkg.in/kothar/[email protected]/enc

Note that I had to install libjpeg-9 instead of libjpeg-8 as the latter is now unavailable - would that cause the above issues? I'd love to use this project, but I can't tell if it's being maintained or not.

@gaul
Copy link
Collaborator

gaul commented Jul 2, 2023

I suspect that you do not have libwebp and libwebp-dev installed. Maybe the installation instructions are incomplete now that compy added webp support?

@rsend
Copy link
Author

rsend commented Jul 2, 2023

Hi,
So I did get it to work - but the workaround involves using libjpeg8 anyway. In particular for Raspberry Pi, I had to build this which I guess provides libjpeg8-dev which seems to be required. That makes the errors in my first comment here go away.

So - do you think it's feasible to use libjpeg9?

We also need a newer go version, which changes the install syntax from "go get" to "go install" as mentioned

@TehDomic
Copy link

Hi, So I did get it to work - but the workaround involves using libjpeg8 anyway. In particular for Raspberry Pi, I had to build this which I guess provides libjpeg8-dev which seems to be required. That makes the errors in my first comment here go away.

So - do you think it's feasible to use libjpeg9?

We also need a newer go version, which changes the install syntax from "go get" to "go install" as mentioned

Agreed. Would also like to use WebP or newer. I was manually able to figure out downloading the code in a zip file and build it in a Ubuntu VM with golang-go manually installed.

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