Open greatestape opened 3 years ago
@greatestape thank you for sharing the details of the error. We are working on a mac version, and I think that we can fix these... Let me get back to you soon!
@greatestape so... we have just pushed some updates! the shaders are downgraded (version 330 to 150). It should solve at least ERROR 0:2. Maybe the other errors too? If you give it a try, let me know how it goes.
Thank you for replying so quickly!
I pulled the latest master and unfortunately I'm still getting errors. It seems like even 150 isn't supported...
ERROR: 0:2: '' : version '150' is not supported ERROR: 0:3: '' : extension 'GL_ARB_explicit_attrib_location' is not supported ERROR: 0:4: '' : extension 'GL_ARB_explicit_uniform_location' is not supported ERROR: 0:5: 'layout' : syntax error: syntax error
I don't know if this is anything useful, but I found some stuff online saying that MacOS does support more recent opengl versions, but you need to switch to a different "profile". I don't know what any of this stuff means. I know Python, but nothing about OpenGL or 3D graphics!
Stack Overflow explaining the profile stuff: https://stackoverflow.com/a/20932820
I'd be happy to be your tester so you can validate your Mac-compatibility PRs before you merge, if that helps.
PS- I found another SO post that seems to show how to configure the profile and version: https://stackoverflow.com/questions/44277975/pyqt5-choose-the-latest-opengl-version-available
I applied these changes:
class GLWidget(QGLWidget):
def __init__(self, parent=None):
+ fmt = QGLFormat()
+ fmt.setVersion(3, 3)
+ fmt.setProfile(QGLFormat.CoreProfile)
+ fmt.setSampleBuffers(True)
+
self.parent = parent
- QGLWidget.__init__(self, parent)
+ QGLWidget.__init__(self, fmt, parent)
self.setMinimumSize(800, 800)
but it just caused different errors:
Traceback (most recent call last):
File "/Users/sam/src/github.com/tsugite/setup/_GLWidget.py", line 34, in initializeGL
self.type = Types(self,fs=[[[2,0]],[[2,1]]],sax=sax,dim=dim,ang=ang, td=[dx,dy,dz], fabtol=tol, fabdia=dia, fspe=spe, fspi=spi, fabext=ext, align_ax=aax, incremental=inc, finterp=fin)
File "/Users/sam/src/github.com/tsugite/setup/Types.py", line 938, in __init__
self.vertices = self.create_and_buffer_vertices(milling_path=False) # create and buffer vertices
File "/Users/sam/src/github.com/tsugite/setup/Types.py", line 984, in create_and_buffer_vertices
self.buff.buffer_vertices()
File "/Users/sam/src/github.com/tsugite/setup/Buffer.py", line 39, in buffer_vertices
glEnableVertexAttribArray(0)
File "/Users/sam/src/github.com/tsugite/env/lib/python3.9/site-packages/OpenGL/platform/baseplatform.py", line 415, in __call__
return self( *args, **named )
File "/Users/sam/src/github.com/tsugite/env/lib/python3.9/site-packages/OpenGL/error.py", line 230, in glCheckError
raise self._errorClass(
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glEnableVertexAttribArray,
cArguments = (0,)
)
Alright, we will look into it and get back to you. Thank you for volunteering to be our test user :)
Same issue here. Is anyone aware of a workaround to run on Mac using Wine for example?
The Windows-download version runs on a Mac VMWare Fusion instance of Windows 10. Not quite the same as Wine, but...
When I try to run the app on my Mac I get a shader error.
Environment:
Steps to reproduce:
python3 -m vent env
source env/bin/activate
pip install requirements.txt
cd setup
python Tsugite_app.py
Actual behaviour
The inner compile error is: