Based on this tutorial for the M1 Mac, find below a step-by-step guide on how to compile GTKWave from scratch for the M3 MacBook (Pro). See my LinkedIn post with the short announcement here.
Note: it is a prerequisite to have HomeBrew installed (find installation instructions at site).
brew install gtk+3 gtk-mac-integration tcl-tk desktop-file-utils meson cmake pango libffi zlib expat shared-mime-info
export LDFLAGS="-L/opt/homebrew/opt/libffi/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libffi/include"
export PKG_CONFIG_PATH="/opt/homebrew/lib/pkgconfig:/opt/homebrew/opt/libffi/lib/pkgconfig:/opt/homebrew/opt/zlib/lib/pkgconfig:/opt/homebrew/opt/gtk+3/lib/pkgconfig:/opt/homebrew/opt/expat/lib/pkgconfig"
git clone "[email protected]:gtkwave/gtkwave.git"
cd gtkwave
meson setup build -Dintrospection=false
meson compile -C build
meson install -C build
gtkwave
I had the same error as @MicroGrit , it turns out the directory was already populated with a gtkwave. (Probably from a previous installation attempt?)
I fixed it by simply doing
rm /opt/homebrew/bin/gtkwave
, and then runningmeson install -C build
again.Hope this helps.
Thank you for the rundown @V0XNIHILI ! I had issues getting gtkwave to run on my M1 but this fixed my issues and I have a working build now.