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)
I just booted up a fresh Ubuntu (it’s what I had) VM and after installing Go, I did this one step:
Afterwards
go get -u github.com/go-gl/glfw/v3.1/glfwworked (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 gettingxorg-dev.)This is related to #138. We need to improve the README.
First, can you try a few things:
go get -u github.com/go-gl/glfw/v3.1/glfwUse the -u flag for go get.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.