Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go build fails when using dep #665

Closed
yuvallanger opened this issue Aug 14, 2018 · 6 comments
Closed

go build fails when using dep #665

yuvallanger opened this issue Aug 14, 2018 · 6 comments

Comments

@yuvallanger
Copy link
Contributor

Hi @hajimehoshi,

I have used dep to place your Ebiten code and all dependencies in the
vendor/ directory of my repository. When I then try to build, it fails:

$ cd $GOPATH/src/gitgud.io/yuvallanger/golang-yasamsim/
$ go build -v
gitgud.io/yuvallanger/golang-yasamsim/vendor/github.com/go-gl/glfw/v3.2/glfw
# gitgud.io/yuvallanger/golang-yasamsim/vendor/github.com/go-gl/glfw/v3.2/glfw
vendor/github.com/go-gl/glfw/v3.2/glfw/c_glfw.go:4:10: fatal error: glfw/src/context.c: No such file or directory
 #include "glfw/src/context.c"
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.

Dep's configuration file:

$ cat Gopkg.toml |grep -v '^#'| grep -v '^$'
[[constraint]]
  branch = "master"
  name = "github.com/golang/freetype"
[[constraint]]
  name = "github.com/hajimehoshi/ebiten"
  version = "^1.7"
[[constraint]]
  branch = "master"
  name = "golang.org/x/image"
[prune]
  go-tests = true
  unused-packages = true

Versions:

$ go version
go version devel +1b870077c8 Fri Aug 3 17:21:10 2018 +0000 linux/amd64
$ dep version
dep:
 version     : devel
 build date  : 
 git hash    : 
 go version  : go1.10.3
 go compiler : gc
 platform    : linux/amd64
 features    : ImportDuringSolve=false

Thank you!

@hajimehoshi
Copy link
Owner

hajimehoshi commented Aug 14, 2018

Hi,

I have never used dep, but do other libs using Cgo (e.g. GLFW itself github.com/go-gl/glfw) work?

Thanks!

@hajimehoshi
Copy link
Owner

Perhaps golang/dep#269 ?

@yuvallanger
Copy link
Contributor Author

#665 (comment)

Maybe! I don't know much about C/C++ development, sorry. :(

@hajimehoshi
Copy link
Owner

This seems already solved.

@nizmow
Copy link

nizmow commented May 14, 2020

Hi, sorry to bump this old thread, but it's still happening to me using dep. Any idea what "solved" this last time? Is this more a go-gl issue I should investigate there?

@hajimehoshi
Copy link
Owner

I meant golang/dep#269 was fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants