faiface / pixel

A hand-crafted 2D game library in Go
MIT License
4.43k stars 244 forks source link

Cannot build on Arch Linux #302

Closed dreamscached closed 2 years ago

dreamscached commented 2 years ago

Hello! Just started with this impressive framework, but it seems that I either did something wrong or actually didn't do something necessary... But what is wrong here?

# github.com/go-gl/glfw/v3.3/glfw
vendor/github.com/go-gl/glfw/v3.3/glfw/c_glfw.go:4:10: fatal error: glfw/src/context.c: No such file or directory
    4 | #include "glfw/src/context.c"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
package main

import (
    "github.com/faiface/pixel/pixelgl"
)

func main() {
    pixelgl.Run(main0)
}

func main0() {

}

Thanks in advance!

dreamscached commented 2 years ago

Alright, to everyone else who could be experiencing that too, it seems that go-gl library is just not working with go mod vendor. Deleted vendor completely and finally built my code. https://github.com/go-gl/glfw/issues/251