go-sdl2 icon indicating copy to clipboard operation
go-sdl2 copied to clipboard

Build error during docker container build of retro-cs

Open cvermazen opened this issue 1 year ago • 3 comments

During the build of a Docker container build: Dockerfile contents:

FROM ubuntu:bionic

RUN apt-get update RUN apt-get install -y
golang
git
libsdl2-dev
libsdl2-image-dev
libsdl2-mixer-dev
libsdl2-ttf-dev
libsdl2-gfx-dev

RUN mkdir -p /root/go/src/github.com/blackchip-org/retro-cs RUN go get github.com/veandco/go-sdl2/sdl RUN go get github.com/chzyer/readline

During the step 5: RUN go get github.com/veandco/go-sdl2/sdl

I get the error:

root/go/src/github.com/veandco/go-sdl2/sdl/log.go:55:18: could not determine kind of name for C.SDL_LogCategory The command '/bin/sh -c go get github.com/veandco/go-sdl2/sdl' returned a non-zero code: 2

Can anybody help me with this error, I don't know a solution for it. Thanks in advance.

cvermazen avatar Aug 01 '22 13:08 cvermazen

Hi @cvermazen , it seems like the container is using Go provided by Ubuntu 18.04 which is relatively old at v1.10. Could you use newer Go, at least v1.13? Since we are using Go modules now, the minimum Go version has been bumped to v1.13.

veeableful avatar Aug 02 '22 12:08 veeableful

Thanks for the fast update. I will give it a try. Thanks

cvermazen avatar Aug 03 '22 16:08 cvermazen

@cvermazen Oh and be sure to use go-sdl2 0.4.24 as I think that error comes from using the go-sdl2's master branch which is what Go older than v1.13 would use by default.

veeableful avatar Aug 03 '22 23:08 veeableful

Thanks for the reply's

cvermazen avatar Aug 16 '22 08:08 cvermazen