A D Vishnu Prasad

Director of Cloud Engineering @ Team8Solutions, Freelancer

Build PgModeler From Source in MacOS Mojave

Download the Source

Download source from here
Please refer Official build document

I had to make the following changes to make it work in my mac (MacOS Mojave)

Install Requirements

1
2
3
4
  brew install qt    
  brew link qt5 —force
  brew install postgresql
  brew install libxml2

Edit pgmodeler.pri

Open the cloned repo.

Edit PGSQL_LIB, PGSQL_INC, XML_INC, XML_LIB in pgmodeler.pri Please note that the following works only if you have used brew to install the requirements

1
2
3
4
  PGSQL_LIB = /usr/local/opt/postgresql/lib/libpq.dylib
  PGSQL_INC = /usr/local/opt/postgresql/include
  XML_INC = /usr/local/opt/libxml2/include/libxml2
  XML_LIB = /usr/local/opt/libxml2/lib/libxml2.dylib

Build the software

1
2
3
4
5
6
7
export PGMODELER_ROOT=/Applications/pgmodeler.app/
qmake -r pgmodeler.pro
make
make install
macdeployqt $PGMODELER_ROOT \
                            -executable=$PGMODELER_ROOT/Contents/MacOS/pgmodeler-ch \
                            -executable=$PGMODELER_ROOT/Contents/MacOS/pgmodeler-cli