Building OpenROAD on a MacBook M1 macOS Tahoe using homebrew. #9033
Replies: 7 comments 14 replies
-
|
Are those the only deltas required? It wouldn't be hard to add them to cmake. Have you tried bazel? |
Beta Was this translation helpful? Give feedback.
-
|
How does removing system from dst work? It is used throughout the code. |
Beta Was this translation helpful? Give feedback.
-
|
as of Jan 16 2026, OR compiles with swig >= 4.4.0, so pinning swig 4.2.1 is no longer necessary. |
Beta Was this translation helpful? Give feedback.
-
|
By default a homebrew upgrade will install the latest and greatest, in case of swig, that’s currently 4.4.1. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @stefanottili , I am trying to install OpenRoad with the OpenRoad-flow-scripts on MacOS with home-brew. I've edited the various files as above. |
Beta Was this translation helpful? Give feedback.
-
|
brew install cudd -- CUDD library: /opt/homebrew/lib/libcudd.dylib |
Beta Was this translation helpful? Give feedback.
-
|
also:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been building OR using homebrew ever since I got a MacBook M1 in Dec 2021.
Over the last four years I've only heard of a couple other users to attempt to use a Mac and I believe they gave up.
brew upgradefrequently updated packages to versions that broke the build for periods of time.Issues with other packages, notably fmt/spdlog/or-tools/lemon, disappeared over the years.
Here's the Dec 2025 list of changes that allow me to build OR on MacBook M1/homebrew.
These might not be the "right way of doing things", but they "work for me".
The etc/DependenyInstaller.sh doesn't install everything, a couple of packages have to be installed manually.
swig@4.4.0 doesn't work for OR, I had to find/install swig using a 4.2.1 formula and pin it.
OR doesn't compile with the default tcl-tk@9, use
brew install tcl-tk@8.You also need qt@5
~/.zshrc
let cmake find tcl-tk@8 lib
brew install xxxthese three packages manually and add cmake link_directories.-D_GNU_SOURCE is needed, it's also set somewhere, but doesn't take on Mac M1.
boost@1.89 doens't have Boost::system any more, but it's also not needed for dst.
Beta Was this translation helpful? Give feedback.
All reactions