The official installation instructions for pgModeler recommends installing Xcode and the Enterprise DB distribution of Postgres to fulfill its build requirements. Luckily, Homebrew's got us covered!
-
Checkout the source
git clone https://github.com/pgmodeler/pgmodeler.git git checkout main
-
Install dependencies with brew
brew install postgresql@13 qt@5 libxml2 libpq
-
Tweak build script (
pgmodeler.pri
)macx { PGSQL_LIB = /usr/local/opt/libpq/lib/libpq.dylib PGSQL_INC = /usr/local/opt/libpq/include XML_INC = /usr/local/opt/libxml2/include/libxml2 XML_LIB = /usr/local/opt/libxml2/lib/libxml2.dylib INCLUDEPATH += $$PGSQL_INC $$XML_INC }
Brew installs to a different path by default for Apple Silicon devices:
macx { PGSQL_LIB = /opt/homebrew/opt/libpq/lib/libpq.dylib PGSQL_INC = /opt/homebrew/opt/libpq/include XML_INC = /opt/homebrew/opt/libxml2/include/libxml2 XML_LIB = /opt/homebrew/opt/libxml2/lib/libxml2.dylib INCLUDEPATH += $$PGSQL_INC $$XML_INC }
-
Build
<PATH_TO_QT5_BIN>/qmake -r pgmodeler.pro make make install
Followed instructions. Getting a crash after the app is open for 10-15 seconds.
Mohave 10.14.6
Qt 5.14 (installed with brew)
Postresql 11.6 (installed with Brew)
XCode 11.3.1
Crash Dump:
** pgModeler crashed after receive signal: 11 **
Date/Time: 2020-01-19 13:36:32
Version: 0.9.2
Build: 20200119
Compilation Qt version: 5.14.0
Running Qt version: 5.14.0
[29] 0 pgmodeler 0x000000010b923823 pgmodeler + 26659
[28] 1 libsystem_platform.dylib 0x00007fff665d1b5d _sigtramp + 29
[27] 2 ??? 0x00006000024d3660 0x0 + 105553154881120
[26] 3 QtNetwork 0x000000010ccfb0ba _ZNK13QNetworkReply7requestEv + 26
[25] 4 QtNetwork 0x000000010cce73a4 _ZN21QNetworkAccessManager20setAutoDeleteRepliesEb + 164
[24] 5 QtCore 0x000000010d05648c _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3868
[23] 6 QtNetwork 0x000000010cd4a3e8 _ZN14QHttpMultiPart11setBoundaryERK10QByteArray + 105768
[22] 7 QtCore 0x000000010d04ea3d _ZN7QObject5eventEP6QEvent + 957
[21] 8 QtWidgets 0x000000010c14699d _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 269
[20] 9 QtWidgets 0x000000010c147dd5 _ZN12QApplication6notifyEP7QObjectP6QEvent + 581
[19] 10 pgmodeler 0x000000010b928213 _ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperI15ObjectsDiffInfoLb1EE9ConstructEPvPKv + 11459
[18] 11 QtCore 0x000000010d0245f4 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 212
[17] 12 QtCore 0x000000010d0256a3 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData + 691
[16] 13 libqcocoa.dylib 0x000000010f441142 qt_plugin_instance + 184914
[15] 14 libqcocoa.dylib 0x000000010f441848 qt_plugin_instance + 186712
[14] 15 CoreFoundation 0x00007fff3a47be33 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
[13] 16 CoreFoundation 0x00007fff3a47bdd9 __CFRunLoopDoSource0 + 108
[12] 17 CoreFoundation 0x00007fff3a45f79b __CFRunLoopDoSources0 + 195
[11] 18 CoreFoundation 0x00007fff3a45ed65 __CFRunLoopRun + 1189
[10] 19 CoreFoundation 0x00007fff3a45e66e CFRunLoopRunSpecific + 455
[9] 20 HIToolbox 0x00007fff396bd1ab RunCurrentEventLoopInMode + 292
[8] 21 HIToolbox 0x00007fff396bcee5 ReceiveNextEventCommon + 603
[7] 22 HIToolbox 0x00007fff396bcc76 _BlockUntilNextEventMatchingListInModeWithFilter + 64
[6] 23 AppKit 0x00007fff37a5477d _DPSNextEvent + 1135
[5] 24 AppKit 0x00007fff37a5346b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361
[4] 25 AppKit 0x00007fff37a4d588 -[NSApplication run] + 699
[3] 26 libqcocoa.dylib 0x000000010f4406b8 qt_plugin_instance + 182216
[2] 27 QtCore 0x000000010d02076f _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 431
[1] 28 QtCore 0x000000010d024c42 _ZN16QCoreApplication4execEv + 130
[0] 29 pgmodeler 0x000000010b92495c pgmodeler + 31068