Leaving this note here if anybody's looking for a solution for MacOS Mojave. The workaround is overkill but if you absolutely need RapidWright in a macos, go ahead :) (I use two machines (macos and linux) and just needed it for logistics reasons).
- Setup: macOS Mojave.
- Download qt4 using macports (Note: qt4 from brew didn't work):
sudo port selfupdate
sudo port install qt4-mac
- cd qtjambi
- Find all instance of "1.5" and change it "1.7" in the repo (Note: including the inverted commas)
- export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
- export QTDIR=/opt/local/libexec/qt4
- env MAKEOPTS="-j4" ant all
- cp qtjambi-4.8.7.jar ~/workspace/code/RapidWright/jars/
cp build/qtjambi-native-macosx-gcc-4.8.7.jar ~/workspace/code/RapidWright/jars/
- Change all instance of QApplication.exec() to QApplication.execStatic()
- Run with -XstartOnFirstThread in the java command.
Overkill isn't it? :) But yeah, if you don't need a GUI, don't bother. I'm just using the GUI to visually understand things.