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

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

Open
jherman opened this issue Feb 14, 2025 · 5 comments
Open

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

jherman opened this issue Feb 14, 2025 · 5 comments

Comments

@jherman
Copy link

jherman commented Feb 14, 2025

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.

@breece1991
Copy link

breece1991 commented Feb 14, 2025 via email

@claudioonoue
Copy link

Same issue here, but I'm trying to compile for Windows x64.

Image

Golang Version: 1.23.6
My OS: Debian 12

@qq15725
Copy link

qq15725 commented Feb 28, 2025

Provide a my github action workflow config, hope can help you.

@jherman
Copy link
Author

jherman commented Feb 28, 2025

@qq15725 Unfortunately, won't work in my scenario. Our repository is not on github, and instead bitbucket. Bitbucket does not host any macos runners unfortunately.

@Sean-Zeo
Copy link

Also have this issue, robotgo has been broken for the past month or so.

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

5 participants