Instructions for building pgmodeler from source on a Mac
Setup on Mac
Get the source code. At present, this is from the default branch 'develop'.
Open a new Terminal window and navigate to the folder of your choice to store the source code. Then run:
git clone https://github.com/pgmodeler/pgmodeler.git
cd pgmodeler
Install the dependencies. Doesn't matter what directory you're in, but does require you have HomeBrew installed. By extension, this means you'll also need XCode installed, since it's a dependency for HomeBrew.
Build Commands (note: Differing from the instructions on the pgmodeler installation guide, the libssl.1. and libcrypto.1. are found in the openssl install, not in the pg install). Run each command one at a time, except for commands/new lines ending with a , since that negates the new line. In those instances, copy-paste the full command as is.
$QT_ROOT/bin/qmake -r CONFIG+=release pgmodeler.pro
make && make install
$QT_ROOT/bin/macdeployqt $INSTALLATION_ROOT \
$INSTALLATION_ROOT/Contents/MacOS/pgmodeler-ch \
$INSTALLATION_ROOT/Contents/MacOS/pgmodeler-cli
This process builds pgmodeler.app, visually just 'pgmodeler', moves it to the Applications folder, and moves appropriate loading dependencies into the Application files. That's it! You should be able to open pgmodeler from your Applications folder now.