It looks like you're new here. If you want to get involved, click one of these buttons!
Hi,
When I try to run a 2.5d script, I get the following error:
Shapes vertex shader compilation failed:
ERROR: 0:1: '' : version '150' is not supported
I am running this on MacOS Monterey 12.6 with KLayout version 0.28.14. I have tried looking up this error and most forums suggest explicitly telling OpenGL which version to use, but running a macro that sets the version of a QSurfaceFormat instance does not seem to work for me (unless I am doing this incorrectly). Is it possible that my OS or graphics card does not support the 2.5d feature?
Thanks in advance!
Sarika
Comments
Hi,
This is an open known issue in macOS.
Thanks
Kazzz-S
cont.
Hi,
I have been doing some research.
Any macro that sets the version will not work because the
#version 150
statements are embedded (hardcoded) insrc/plugins/tools/view_25d/lay_plugin/layD25ViewWidget.cc
.In MacOS, the OpenGL version seems to be 2.1 (=>
#version 120
), while KLayout's 2.5d feature needs#version 150
(=> OpenGL 3.2). This is the reason.A (somewhat inconvenient) compromise solution would be to run a virtual Linux machine under MacOS.
In my case, Linux Mint 20 with VMware Fusion on Monterey.
The image below shows such an attempt.
Regards,
Kazzz-S
cont.
I did some experiments by modifying
src/plugins/tools/view_25d/lay_plugin/layD25ViewWidget.cc
, where I forcibly set#version 120
(other details are omitted).Linux Mint 20
#version 330
.#version 120
.macOS Monterey
CentOS 7
Regards,
Kazzz-S
Hi @smadhv,
Matthias resolved this issue in the
0.29.1
version. Thanks a lotSee https://github.com/KLayout/klayout/issues/1700 for details.
Different macOS DMGs incorporating the changes will be published shortly.
Regards,
Kazzz-S