Skip to content

Compile Linux arm (Raspberry) cannot find -lX11 #503

Open
@leonardospeca

Description

@leonardospeca
  • Robotgo version (or commit ref): #8ba73388617a008c9e9e2e28d69f3549e15b750b
  • Go version: 1.18
  • Gcc version: g++ (Ubuntu 11.2.0-7ubuntu2) 11.2.0
  • Operating system and bit: Ubuntu 21.10 64bit
git clone https://github.com/go-vgo/robotgo.git
cd robotgo
env GOOS=linux GOARCH=arm CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc go build .

Result:

# github.com/go-vgo/robotgo
/usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lX11
/usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lXtst
collect2: error: ld returned 1 exit status

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions