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

Failing on macOS (Open GL ES deprecated) #15

Open
GMusliaj opened this issue Jul 2, 2024 · 3 comments
Open

Failing on macOS (Open GL ES deprecated) #15

GMusliaj opened this issue Jul 2, 2024 · 3 comments

Comments

@GMusliaj
Copy link

GMusliaj commented Jul 2, 2024

github.com/goxjs/gl

../../../../pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:14:10: fatal error: 'OpenGLES/ES2/glext.h' file not found
#include <OpenGLES/ES2/glext.h>
^~~~~~~~~~~~~~~~~~~~~~

Any plans to switch to something else now that open gl es is deprecated for MacOS? https://developer.apple.com/documentation/opengles

@GMusliaj GMusliaj changed the title Failing on macOS Failing on macOS (openGL Deprecated) Jul 2, 2024
@GMusliaj GMusliaj changed the title Failing on macOS (openGL Deprecated) Failing on macOS (Open GL ES deprecated) Jul 2, 2024
@GMusliaj
Copy link
Author

GMusliaj commented Jul 2, 2024

I could find the OpenGL ES Libs from ghe MacOSX 13.3 SDK and create the local dir:

sudo mkdir -p /usr/local/include/OpenGLES/ES2
sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/glext.h /usr/local/include/OpenGLES/ES2/glext.h
sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h /usr/local/include/OpenGLES/ES2/gl.h

but still have more issues:

# github.com/goxjs/gl
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:32:2: could not determine kind of name for C.glActiveTexture
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:36:2: could not determine kind of name for C.glAttachShader
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:42:2: could not determine kind of name for C.glBindAttribLocation
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:46:2: could not determine kind of name for C.glBindBuffer
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:58:2: could not determine kind of name for C.glBindTexture
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:66:2: could not determine kind of name for C.glBlendEquation
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:70:2: could not determine kind of name for C.glBlendEquationSeparate
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:74:2: could not determine kind of name for C.glBlendFunc
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:78:2: could not determine kind of name for C.glBlendFuncSeparate
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:82:2: could not determine kind of name for C.glBufferData
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:90:2: could not determine kind of name for C.glBufferSubData
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:98:2: could not determine kind of name for C.glClear
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:110:2: could not determine kind of name for C.glClearStencil
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:114:2: could not determine kind of name for C.glColorMask
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:118:2: could not determine kind of name for C.glCompileShader
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:122:2: could not determine kind of name for C.glCompressedTexImage2D
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:126:2: could not determine kind of name for C.glCompressedTexSubImage2D
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:130:2: could not determine kind of name for C.glCopyTexImage2D
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:134:2: could not determine kind of name for C.glCopyTexSubImage2D
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:150:31: could not determine kind of name for C.glCreateProgram
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:160:30: could not determine kind of name for C.glCreateShader
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:170:2: could not determine kind of name for C.glCullFace
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:174:2: could not determine kind of name for C.glDeleteBuffers
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:182:2: could not determine kind of name for C.glDeleteProgram
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:190:2: could not determine kind of name for C.glDeleteShader
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:194:2: could not determine kind of name for C.glDeleteTextures
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:198:2: could not determine kind of name for C.glDepthFunc
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:202:2: could not determine kind of name for C.glDepthMask
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:210:2: could not determine kind of name for C.glDetachShader
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:214:2: could not determine kind of name for C.glDisable
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:218:2: could not determine kind of name for C.glDisableVertexAttribArray
../go/pkg/mod/github.com/goxjs/gl@v0.0.0-20171128034433-dc8f4a9a3c9c/gl_opengles.go:222:2: could not determine kind of name for C.glDrawArrays

@esimov
Copy link
Owner

esimov commented Jul 2, 2024

Any plans to switch to something else now that open gl es is deprecated for MacOS?

I might look into other possible replacements.

@esimov
Copy link
Owner

esimov commented Jul 30, 2024

Hi, I forgot to mention, that I replaced the deprecated GUI library with Gio, however there is still an issue on MacOS which requires the GUI thread to be run on the main thread, for which reason it happens that on MacOS the desktop window just doesn't show up when generating the diagram. I'm trying to find a solution to this problem.

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

2 participants