robotgo icon indicating copy to clipboard operation
robotgo copied to clipboard

Compile Linux arm (Raspberry) cannot find -lX11

Open leonardospeca opened this issue 3 years ago • 4 comments

  • 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

leonardospeca avatar May 06 '22 09:05 leonardospeca

me too

introspection3 avatar May 12 '22 13:05 introspection3

Are you install linux X11 library?

https://github.com/go-vgo/robotgo#requirements.

vcaesar avatar Jun 24 '22 04:06 vcaesar

I can compile for Linux amd64 and Windows 64 so I think so (Doing sudo apt install xorg libxtst-dev response everything is up to date)

leonardospeca avatar Jun 24 '22 07:06 leonardospeca

Any update?

leonardospeca avatar Nov 09 '23 14:11 leonardospeca