Closed Rusinas closed 9 months ago
Did you install the go module? Looks like an issue with your environment, not a bug with govips.
@tonimelisma sorry for bothering, but what do you mean by "install the go module"?
If you mean go get -u github.com/davidbyttow/govips/v2/vips
, then sure, I did it. Maybe I am missing something? I have no clue what could be an issue in my environment. Would appreciate any help
I just performed a clean installation on a new environment, same results. Steps:
-Install golang 1.24.4
-Create new project (go mod init test
)
-Install govips go get -u github.com/davidbyttow/govips/v2/vips
-go mod tidy
(optional, but omitting this step doesn't affect the result)
-Try to use it (vips.Startup(nil)
)
-Same error undefined: vips.Startup
I have the same problem and can't get the package set up. I follow the documentation and the examples in /examples.
Tried several variations, like github.com/davidbyttow/govips/v2
, vips github.com/davidbyttow/govips/v2/vips
, vips github.com/davidbyttow/govips/v2
...
What are we doing wrong?
I have now discovered that the error only occurs under Windows, at least for me - the same code compiles under Linux and Mac OS without any problems. Can anyone confirm this? Any ideas, maybe @tonimelisma ? 🙂
Can't make it work :(
My main.go:
go.mod:
Everything looks fine, but unable to run. Probably important note that I am on Windows, which is kinda unsupported, but I am trying to dockerize this anyway. Dockerfile:
But the error is the same as VSCode is highlighting:![image](https://github.com/davidbyttow/govips/assets/42975143/81a0918c-f428-4226-9103-d1e436d0d156)
Kindly requesting @tonimelisma help because there aren't many alternatives available for solving image processing in Go :(