New installation - KLayout doesn't run on macOS Monterey (Intel)

Is there a current version of Klayout that can run on my Intel 2015 MacBook Pro running macOS Monterey?

I tried HW-klayout-0.29.11-macOS-Sonoma-1-qt5MP-RsysPhb311.dmg but this doesn't open - it only crashes when run (crash report window appears)

Next I tried ST-klayout-0.29.11-macOS-Ventura-1-qt5MP-RsysPsys.dmg but nothing happens when I try to open this version of Klayout.

There are a vast number of *dmg files to pick from. I have no idea what would run on my laptop.

Comments

  • edited February 22

    Hi @SRF,

    I was able to reproduce the issue with Monterey 12.7.6. It's a bad news.
    The reason is simple: the required libraries are not up-to-date in Monterey.

    It will work if you don't mind using an older version of KLayout 0.29.6.

    Specifically, one of these two is a candidate.
    Note that to use option 2, you need to install the Mac command line tools.

    1. HW-klayout-0.29.6-macOS-Monterey-1-qt5MP-RsysPhb311.dmg
    2. ST-klayout-0.29.6-macOS-Sonoma-1-qt5MP-RsysPsys.dmg

    If you want to use the latest KLayout 0.29.11, build it from the source.
    I have already deleted my Monterey development environment.
    Here are the steps: https://github.com/KLayout/klayout/tree/master/macbuild#readme.
    The current macOS build4mac.py build system does not officially support Monterey.
    However, I hope it still works.

    One important note is that Homebrew should not be your choice, as it no longer supports Monterey.
    So, installing Qt5 and other packages from MacPorts is a reasonable choice.

    Kazzz-S
    P.S. My machine is an Intel 2019 MacBook Pro.


    Edit 2025-02-23:

    If you want to use the ./build4mac.py -q qt5macports -r mp33 -p mp312 build command (Fully MacPorts-flavored build), edit macbuild/build4mac_env.py as below.

  • Hi @SRF,

    To reconfirm that the source code build in Monterey is still possible, I set up my Monterey development environment with Xcode 14.2 and the latest MacPorts packages.
    Then, I attempted the two builds for KLayout 0.29.11:

    1. 6A. Standard build using the OS-bundled Ruby and Python with MacPorts Qt5
    2. 6B. Fully MacPorts-flavored build with MacPorts Ruby 3.3 and MacPorts Python 3.12

    Attempt No.1 failed initially with compilation errors.
    See https://github.com/Kazzz-S/klayout/issues/46#issuecomment-1370488269 for how to fix the problems.

    The attempt No.2 went through without any problems.

    I uploaded two DMGs here for your reference.

    Please note that I have already stopped providing DMGs for Monterey.
    If you want to keep using your legacy machine with the latest KLayout, build it from the source.

    Kazzz-S

  • Hi @SRF,

    I recently upgraded my development environment to Sequoia 15.5 + Xcode 16.4 + VMware Fusion 13.6.3. See this ticket.
    I also noticed that the view count of this post increases gradually.

    To reconfirm again that the source code build in Monterey is still possible, I attempted the two builds for KLayout 0.30.2 with the latest MacPorts packages.

    1. 6A. Standard build using the OS-bundled Ruby and Python with MacPorts Qt5
    2. 6B. Fully MacPorts-flavored build with MacPorts Ruby 3.3 and MacPorts Python 3.12

    I uploaded two DMGs here for your reference.

    Please note that I have officially stopped providing DMGs for Monterey.
    If you want to continue using your legacy machine with the latest version of KLayout, you can build it from source.

    Kazzz-S

Sign In or Register to comment.