vladimirvivien / go4vl

A Go library for working with the Video for Linux API (V4L2).
MIT License
245 stars 45 forks source link

Error run or build #60

Open eleimt opened 10 months ago

eleimt commented 10 months ago

Raspberry Pi 4 Go 1.21 CMD: env GOARCH=arm64 GOOS=linux go run cmd/main.go Output:

# github.com/vladimirvivien/go4vl/v4l2
../go/pkg/mod/github.com/vladimirvivien/go4vl@v0.0.5/v4l2/types.go:11:15: undefined: Capability
../go/pkg/mod/github.com/vladimirvivien/go4vl@v0.0.5/v4l2/types.go:12:14: undefined: IOType
../go/pkg/mod/github.com/vladimirvivien/go4vl@v0.0.5/v4l2/types.go:23:15: undefined: BufType
unitsnet commented 3 months ago

sudo apt install build-essential I execute this command and it work

Aleksei-Badyaev commented 1 month ago

Ubuntu 22.04 Go 1.23 CMD: go build cmd/main.go Output:

# github.com/vladimirvivien/go4vl/v4l2
vendor/github.com/vladimirvivien/go4vl/v4l2/control_values.go:145:39: could not determine kind of name for C.V4L2_CID_COLORFX_RGB
vendor/github.com/vladimirvivien/go4vl/v4l2/control_values.go:115:32: could not determine kind of name for C.V4L2_COLORFX_SET_RGB
vendor/github.com/vladimirvivien/go4vl/v4l2/control_values.go:76:41: could not determine kind of name for C.V4L2_CTRL_TYPE_VP9_COMPRESSED_HDR
vendor/github.com/vladimirvivien/go4vl/v4l2/control_values.go:77:41: could not determine kind of name for C.V4L2_CTRL_TYPE_VP9_FRAME

The sudo apt install build-essential command did not help.