Skip to content

How to Cross Compile in Alpine Linux (Docker container)? #707

Open
@jherman

Description

@jherman

Hi all,

I'm trying to cross compile in an Alpine Linux Docker container. Here are the current packages I attempt to add and compile under:

apk update && apk add libcurl curl-dev openssl-dev autoconf build-base automake libtool musl-dev gcc \
libc-dev libx11-dev xorg-server-dev libxtst-dev \
xsel xclip \
libspng-dev \
libxcb libxcb-dev xcb-util-dev libx11-dev libxkbcommon-x11 libxkbcommon-dev

I probably have unnecessary packages added, as I've been trying to figure out the right ones. The error I'm seeing is the following:

# [github.com/go-vgo/robotgo](http://github.com/go-vgo/robotgo)
/root/go/pkg/mod/github.com/go-vgo/[email protected]/img.go:92:40: undefined: Bitmap
/root/go/pkg/mod/github.com/go-vgo/[email protected]/img.go:107:38: undefined: Bitmap
/root/go/pkg/mod/github.com/go-vgo/[email protected]/img.go:137:20: undefined: Bitmap
/root/go/pkg/mod/github.com/go-vgo/[email protected]/screen.go:26:28: undefined: Rect
/root/go/pkg/mod/github.com/go-vgo/[email protected]/robotgo_fn_v1.go:9:2: undefined: Move
/root/go/pkg/mod/github.com/go-vgo/[email protected]/robotgo_fn_v1.go:17:2: undefined: Toggle
/root/go/pkg/mod/github.com/go-vgo/[email protected]/robotgo_fn_v1.go:18:2: undefined: MilliSleep
/root/go/pkg/mod/github.com/go-vgo/[email protected]/robotgo_fn_v1.go:20:2: undefined: MoveSmooth
/root/go/pkg/mod/github.com/go-vgo/[email protected]/robotgo_fn_v1.go:21:2: undefined: Toggle
/root/go/pkg/mod/github.com/go-vgo/[email protected]/robotgo_fn_v1.go:29:9: undefined: MoveSmooth
/root/go/pkg/mod/github.com/go-vgo/[email protected]/robotgo_fn_v1.go:29:9: too many errors

Any advice would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions