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

Warnings in MacOS when go-getting and executing #101

Closed
jmaeso opened this issue Jul 5, 2018 · 6 comments
Closed

Warnings in MacOS when go-getting and executing #101

jmaeso opened this issue Jul 5, 2018 · 6 comments

Comments

@jmaeso
Copy link

jmaeso commented Jul 5, 2018

Hi, when getting the packages I get a bunch of warnings like this one:

ld: warning: text-based stub file /System/Library/Frameworks//OpenGL.framework/OpenGL.tbd and library file /System/Library/Frameworks//OpenGL.framework/OpenGL are out of sync. Falling back to library file for linking.

I guess this is something related just to macOS.

Btw: Not sure if related but executing this simple script returns me: OpenGL version: 4.1 INTEL-10.34.27 (should be 3.3 right?)

System:
Macbook Pro (2016).
MacOS High Sierra Version 10.13.5
Graphics card: Intel Iris Graphics 540 1536 MB

@dmitshur
Copy link
Member

dmitshur commented Jul 5, 2018

I can't reproduce this on my system:

~ $ export GOPATH=/tmp/empty
~ $ go get -u github.com/go-gl/gl/v3.3-core/gl
~ $ 

What version of Go are you using?

I'm on a Mid-2015 15" MBP, macOS 10.13.5, Go 1.11 Beta 1 but I'm guessing it would work with Go 1.10.3 as well.

Btw: Not sure if related but executing this simple script returns me: OpenGL version: 4.1 INTEL-10.34.27 (should be 3.3 right?)

4.1 is the right output. You're requesting a forward-compatible, core profile context. That means you'll get a context for the highest version of OpenGL greater than or equal to 3.3 that is supported by macOS and GPU. That is 4.1.

Reference: http://www.glfw.org/faq.html#how-do-i-create-an-opengl-30-context.

@jmaeso
Copy link
Author

jmaeso commented Jul 6, 2018

I'm using 1.10.3
Could be related to the opengl instalation? :S

@PeterPetrik
Copy link

could be related XCode update? (http://sd.jtimothyking.com/2018/07/26/stub-file-and-library-file-out-of-sync)

@dmitshur
Copy link
Member

Yes, this appears to be related to that. Ever since Xcode 10 came out, it has been affecting the crypto/x509 package too, see golang/go#26073.

@Noofbiz
Copy link

Noofbiz commented Sep 26, 2018

I'm getting this error as well, but I'm still able to use engo and ebiten rendering just fine. The warnings don't seem to have an effect on gl working for me.

@pwaller
Copy link
Member

pwaller commented Mar 30, 2019

Looks like this was fixed over on golang/go#26073. Please ping the thread or file a new issue if not.

@pwaller pwaller closed this as completed Mar 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants