Sign inSign up

openpriv/go-cross-compile

By openpriv

Updated 3 months ago

container to cross compile go libraries to linux .so, macos .dylib, android .aar and windows .dll

Image
0

795

openpriv/go-cross-compile repository overview

Open Privacy's Go Cross Compile Container

Dockerfiles @ git.openprivacy.ca/openprivacy/go-cross-compile

This image was built for use with Drone CI but can be used with any docker setup you want.

Versions are:

  • 2026.07

    • Go 1.26.4
    • glibc 2.31 from Debian Bullseye (11)
    • Android API 36
    • NDK 29.0.14206865
    • arm8 gcc cross compiler
    • mingw windows cross compiler
  • 2026.07-windows

    • Go 1.26.4
    • Debian Bookworm
    • arm8 gcc cross compiler
    • mingw windows cross compiler
    • smaller, no java/android support
  • 2025.09

    • Go 1.25.0
    • glibc 2.31 from Debian Bullseye (11)
    • Android API 35
    • NDK 28.1.13356709
    • arm8 gcc cross
    • mingw windows cross compiler
  • 2025.10-windows

    • Go 1.25.2
    • Debian Bookworm
    • arm8 gcc cross compiler
    • mingw windows cross compiler
    • smaller, no java/android support
  • 2025.08:

    • ? updated go probably
  • 2024.02

    • Go 1.21.5
    • glibc 2.31 from Ubuntu 20.04
    • Android API 31
    • NDK 22.1.7171670
    • arm8 gcc cross compiler
    • mingw windows cross compiler

Install and Use

Version 2025.09
  • Android SDK, NDK, tools, and API version 35 and Buildtools 35.0.0 at /usr/local/Android/Sdk
  • Go lang at /usr/local/go
  • $GOPATH set to /gomobile - GOPATH includes gomobile cmd tools and source
Version 2024.02

This image includes:

  • Android SDK, NDK, tools, and API version 31 and Buildtools 30.0.2 at /usr/local/android-sdk
  • Go lang at /usr/local/go
  • $GOPATH set to /gomobile - GOPATH includes gomobile cmd tools and source

This container has its own GOPATH with only gomobile in it, so to use, you'll need to re-get your go dependancies and then run gomobile init. The following example shows a Drone CI step using this image

gomobile-build:
  image: openpriv/go-cross-compile:2024.02
  commands:
    - go mod download
    - gomobile init
    - make

Tag summary

Content type

Image

Digest

sha256:1f08aafcf

Size

792.3 MB

Last updated

3 months ago

docker pull openpriv/go-cross-compile:2026.07-windows