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

First run issue #33

Open
KiSa04 opened this issue Dec 8, 2023 · 2 comments
Open

First run issue #33

KiSa04 opened this issue Dec 8, 2023 · 2 comments

Comments

@KiSa04
Copy link

KiSa04 commented Dec 8, 2023

I'm currently trying to run librespot-golang for the first time, but I'm getting these errors after go run main.go

# github.com/xlab/vorbis-go/decoder ..\..\..\go\pkg\mod\github.com\xlab\[email protected]\decoder\decoder.go:28:19: undefined: vorbis.OggSyncState ..\..\..\go\pkg\mod\github.com\xlab\[email protected]\decoder\decoder.go:31:21: undefined: vorbis.OggStreamState ..\..\..\go\pkg\mod\github.com\xlab\[email protected]\decoder\decoder.go:35:14: undefined: vorbis.OggPage ..\..\..\go\pkg\mod\github.com\xlab\[email protected]\decoder\decoder.go:39:16: undefined: vorbis.OggPacket ..\..\..\go\pkg\mod\github.com\xlab\[email protected]\decoder\decoder.go:42:14: undefined: vorbis.Info ..\..\..\go\pkg\mod\github.com\xlab\[email protected]\decoder\decoder.go:45:17: undefined: vorbis.Comment ..\..\..\go\pkg\mod\github.com\xlab\[email protected]\decoder\decoder.go:49:18: undefined: vorbis.DspState ..\..\..\go\pkg\mod\github.com\xlab\[email protected]\decoder\decoder.go:54:15: undefined: vorbis.Block ..\..\..\go\pkg\mod\github.com\xlab\[email protected]\decoder\util.go:11:26: undefined: vorbis.Info ..\..\..\go\pkg\mod\github.com\xlab\[email protected]\decoder\util.go:11:43: undefined: vorbis.Comment ..\..\..\go\pkg\mod\github.com\xlab\[email protected]\decoder\util.go:11:43: too many errors

@Xantios
Copy link

Xantios commented May 10, 2024

I had the same issue, you can fix it by enabled CGO
Here is a dockerfile i use

FROM golang:1.22-alpine3.19

WORKDIR /app

RUN apk add vim git bash
RUN apk add pkgconfig portaudio-dev # Needed to get PortAudio-go
RUN apk add gcc g++ # Needed for CGO
RUN apk add libvorbis libvorbis-dev libogg libogg-dev # Needed OGG Lib

ENV CGO_ENABLED = 1

RUN go install github.com/cosmtrek/air@latest

ENTRYPOINT ["air","-c",".air.toml"]

@drew-512
Copy link

drew-512 commented Jan 7, 2025

After seeing this repo be idle for years and in service to FOSS, I made a modern fork that may be interesting to those looking for a lean and flexible wrapper offering cleaner Go idioms. Not trying to solicit, rather trying to help someone who wanted what I needed.

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