openairplay / goplay2

Airplay 2 Receiver written in Go
Apache License 2.0
384 stars 20 forks source link

Failed building docker image on Raspi 4 #2

Closed PaulWieland closed 3 years ago

PaulWieland commented 3 years ago

The docker build makes it to Step 5/10. The trouble seems to begin at go test.

go build
go test
--- FAIL: TestLcEncode (0.00s)
    enc_test.go:120: Flush failed, size is 195
--- FAIL: TestLcFlush (0.00s)
    enc_test.go:208: Flush failed, size is 195
--- FAIL: ExampleAacEncoder_LC (0.00s)
got:
FrameSize: 1024
AAC: 139
AAC: 227
Flushing
AAC: 195
AAC: 173
AAC: 0
want:
FrameSize: 1024
AAC: 139
AAC: 227
Flushing
AAC: 195
AAC: 176
AAC: 0
FAIL
exit status 1
FAIL    github.com/albanseurat/go-fdkaac    0.031s
make[1]: *** [Makefile:13: test] Error 1
make[1]: Leaving directory '/go/pkg/mod/github.com/albanseurat/go-fdkaac@v1.0.3'
make: *** [Makefile:6: deps] Error 2
The command '/bin/sh -c GOOS=linux make' returned a non-zero code: 2
AlbanSeurat commented 3 years ago

Thanks, I know the cause, it is related to fdkaac, I will update the code.

Be aware that the docker build is for testing Linux build and the program won’t work within a container

AlbanSeurat commented 3 years ago

The Pull request should correct the build issue