klayout icon indicating copy to clipboard operation
klayout copied to clipboard

2.5d on Mac OSX doesn't work

Open lukasc-ubc opened this issue 4 years ago • 3 comments

I have checked that this problem is present in 0.27.4 and 0.27.5 on Mac OSX (klayout-0.27.4-macOS-BigSur-1-qt5Brew-RsysPhb38). The problem is not there on Windows.

image

thank you

lukasc-ubc avatar Nov 18 '21 05:11 lukasc-ubc

Yes, that is a known problem. It's OpenGL related and I have not found a way of making OpenGL work on the MacOS/Qt combination.

Any hints are welcome.

Matthias

klayoutmatthias avatar Nov 21 '21 22:11 klayoutmatthias

This link might help, they had a similar error and were able to resolve it. https://stackoverflow.com/questions/55724301/using-opengl-on-mac-version-150-is-not-supported-error/55725864

The 2.5d is great, hopefully process topology might be possible one day but for now this is a great new feature.

robpeters-appliednt avatar Jan 19 '22 23:01 robpeters-appliednt

This forum post reminded me of this ticket and #1124.

While investigating, I found the #version 150 statements are embedded (hardcoded) in src/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).

I did some experiments by modifying src/plugins/tools/view_25d/lay_plugin/layD25ViewWidget.cc, where I forcibly set #version 120. Modified code ==> layD25ViewWidget.cc.zip

Linux Mint 20

kazzz-s@Mint20:~ (1)$ glxinfo | grep "OpenGL version"
OpenGL version string: 3.3 (Compatibility Profile) Mesa 21.2.6
  • This version corresponds to #version 330.

test-v120-Linux

  • Two global functions appear unsupported in #version 120.

macOS Monterey

mac-01

  • The original ERROR message disappeared.
  • But there is no detailed info.

CentOS 7

test-v150-CentOS7

Regards, Kazzz-S

Kazzz-S avatar Mar 29 '24 23:03 Kazzz-S