Which example?I think all examples only use one Goroutine, so most should work most of the time, but some examples my need you to addimport "runtime"func init() {runtime.LockOSThread()}Because OS X relies on you having all the window stuff on the main thread.
--
You received this message because you are subscribed to the Google Groups "go-gl OpenGL libraries for go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-gl+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
go get github.com/go-gl/glfw3
ld: library not found for -lglfw3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I did put the lib line in my profile as well as the include, FWIW.
Regards
Chris
On Saturday, 27 December 2014 12:30:58 UTC, Jrago...@gmail.com wrote:I think I might have had this problem, I believe to fix it I had to find where macports installed the headers (/usr/local I think) and add it to my C_INCLUDE_PATH. So add the following line somewhere to your .profileexport C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/includeYou may also need to do the same with LD_LIBRARY_PATH.
go get github.com/go-gl/examples
In file included from GoCode/src/github.com/go-gl/glfw/callback.go:7:
./callback.h:12:10: fatal error: 'GL/glfw.h' file not found
#include <GL/glfw.h>
^
1 error generated.
# github.com/banthar/Go-SDL/sdl
ld: warning: /System/Library/Frameworks//Cocoa.framework/Cocoa, ignoring unexpected dylib file
ld: warning: /System/Library/Frameworks//AppKit.framework/AppKit, ignoring unexpected dylib file