-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
This might just be me being unexperienced with Go, but I'm having trouble building this on an almost clean machine.
- Installed Go from the official source: https://golang.org/doc/install?download=go1.12.5.darwin-amd64.pkg
- Cloned the repo:
git clone https://github.com/MauriceGit/Voronoi_Image_Manipulation
(into/tmp/Voronoi_Image_Manipulation
) - Got dependencies (
go get ./...
but got an error: go get: no install location for directory /tmp/Voronoi_Image_Manipulation outside GOPATH) - Tried building anyway. Got a bunch of warnings:
ld: warning: object file (/var/folders/96/r2y8ffxs7zz8k9lynb5v_fbh0000gn/T/go-link-704353261/000057.o) was built for newer OSX version (10.14) than being linked (10.8)
- Running gives a segfault:
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x0]
runtime stack:
runtime.throw(0x41f4b58, 0x2a)
/usr/local/go/src/runtime/panic.go:617 +0x72
runtime.sigpanic()
/usr/local/go/src/runtime/signal_unix.go:374 +0x4a9
runtime.asmcgocall(0x454f6d0, 0x7ffeefbffa68)
/usr/local/go/src/runtime/asm_amd64.s:639 +0x70
goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x41278c0, 0xc000052d40, 0x2600043562c0)
/usr/local/go/src/runtime/cgocall.go:128 +0x5b fp=0xc000052d10 sp=0xc000052cd8 pc=0x4004d3b
github.com/go-gl/gl/v3.3-core/gl._Cfunc_glowTexStorage2DMultisample(0x0, 0x1000009100, 0x3e800008058, 0x3e8)
_cgo_gotypes.go:18929 +0x45 fp=0xc000052d40 sp=0xc000052d10 pc=0x40cca95
github.com/go-gl/gl/v3.3-core/gl.TexStorage2DMultisample(0x1000009100, 0x3e800008058, 0x3e8)
/Users/jstsch/go/src/github.com/go-gl/gl/v3.3-core/gl/package.go:12108 +0x5f fp=0xc000052d70 sp=0xc000052d40 pc=0x40cde7f
github.com/MauriceGit/mtOpenGL.CreateTexture(0x3e8000003e8, 0x190800008058, 0x100001401, 0x100000010, 0x0)
/Users/jstsch/go/src/github.com/MauriceGit/mtOpenGL/mtOpenGL.go:204 +0x168 fp=0xc000052da8 sp=0xc000052d70 pc=0x40f6f08
github.com/MauriceGit/mtOpenGL.CreateFbo(0x43715dc, 0x43715e0, 0x3e8000003e8, 0x1000000001, 0x1450af000, 0xa00000000)
/Users/jstsch/go/src/github.com/MauriceGit/mtOpenGL/mtOpenGL.go:291 +0x12a fp=0xc000052de0 sp=0xc000052da8 pc=0x40f770a
main.prepareGLForNewTexture(0x41ea6f4, 0x12)
/tmp/Voronoi_Image_Manipulation/glView.go:596 +0x24d fp=0xc000052e90 sp=0xc000052de0 pc=0x411733d
main.InitializeRender(0xc0000d2000, 0xc00001e0e0, 0xc0, 0x41ea6f4, 0x12)
/tmp/Voronoi_Image_Manipulation/glView.go:844 +0x41d fp=0xc000052f30 sp=0xc000052e90 pc=0x411878d
main.main()
/tmp/Voronoi_Image_Manipulation/controls.go:438 +0x12b fp=0xc000052f98 sp=0xc000052f30 pc=0x41131ab
runtime.main()
/usr/local/go/src/runtime/proc.go:200 +0x20c fp=0xc000052fe0 sp=0xc000052f98 pc=0x402cb6c
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1337 +0x1 fp=0xc000052fe8 sp=0xc000052fe0 pc=0x4056631
goroutine 4 [chan receive]:
main.main.func1(0xc00001e0e0)
/tmp/Voronoi_Image_Manipulation/controls.go:432 +0x34
created by main.main
/tmp/Voronoi_Image_Manipulation/controls.go:431 +0xab
goroutine 5 [chan send]:
main.setDefaultRenderValues(0xc0000d2000)
/tmp/Voronoi_Image_Manipulation/controls.go:378 +0x41
main.createGUI(0xc000018080, 0xc0000d2000, 0xc0, 0x41ea6f4, 0x12)
/tmp/Voronoi_Image_Manipulation/controls.go:407 +0x81
created by main.main
/tmp/Voronoi_Image_Manipulation/controls.go:436 +0xf5
Any help would be appreciated. Apologies if I'm overseeing something totally obvious 😄
Metadata
Metadata
Assignees
Labels
No labels