glfw: cannot find -lXxf86vm

Installation fails:

(peter) ~ go get github.com/go-gl/glfw/v3.1/glfw
# github.com/go-gl/glfw/v3.1/glfw
/usr/bin/ld: cannot find -lXxf86vm
collect2: ld returned 1 exit status
(peter) ~ ll /usr/lib/libXxf86vm*
lrwxrwxrwx 1 root root    19 jun 10  2013 /usr/lib/libXxf86vm.so.1 -> libXxf86vm.so.1.0.0
-rw-r--r-- 1 root root 19808 mei 30  2013 /usr/lib/libXxf86vm.so.1.0.0

go version go1.4.2 linux/amd64 Debian 6.0

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 1
  • Comments: 19 (11 by maintainers)

Commits related to this issue

Most upvoted comments

I just booted up a fresh Ubuntu (it’s what I had) VM and after installing Go, I did this one step:

sudo apt-get install libgl1-mesa-dev xorg-dev

Afterwards go get -u github.com/go-gl/glfw/v3.1/glfw worked (as well as building and running examples).

FWIW, I looked at where the libXxf86vm* files ended up, and it was elsewhere. (But I see you’ve already commented above that it worked for you after getting xorg-dev.)

This is related to #138. We need to improve the README.

First, can you try a few things:

  1. go get -u github.com/go-gl/glfw/v3.1/glfw Use the -u flag for go get.
  2. If the above doesn’t work, try sudo apt-get install libgl1-mesa-dev xorg-dev. What does that say? Afterwards, try the go get -u step above.

Let me know if that works.