Building pgModeler
This apply to version 0.9.0 and Windows OS. Read first installer instruction on https://pgmodeler.com.br/support/installation; this just adding some clarifications, the instructions (mainly related to QT paths) are a little bit “confused”.
Download and install the prerequisites
Be sure to:
- Download 32 bits versions for all prerequisites
- Install them in paths without spaces, like
D:\PostgreSQL32\9.6
Qt framework
Download the MingW32 bits version from http://download.qt.io/archive/qt/5.6/5.6.2/qt-opensource-windows-x86-mingw492–5.6.2.exe
Install it in default location; otherwise change the paths below accordingly.
Add C:/Qt/Qt5.6.2/Tools/mingw492_32/bin
to system path; at some point the make process will invoke g++
and will not find it otherwise.
PostgreSQL
Download from EnterpriseDB the 32 bits version and install it in D:\PostgreSQL32
; otherwise change the paths below accordingly.
If you already have a 64 bits version installed be sure to go services and stop/disable the 32 bits service.
Git
Install Git as instructed
Run the build
Download source code from https://github.com/pgmodeler/pgmodeler.git
(watch out the path: no spaces…). Check-out version 0.9.0
Change the pgmodeler.pri
acordingly:
windows {
!defined(PGSQL_LIB, var): PGSQL_LIB = "D:/PostgreSQL32/9.6/lib/libpq.dll"
!defined(PGSQL_INC, var): PGSQL_INC = "D:/PostgreSQL32/9.6/include"
!defined(XML_INC, var): XML_INC = "D:/PostgreSQL32/9.6/include"
!defined(XML_LIB, var): XML_LIB = "D:/PostgreSQL32/9.6/bin/libxml2.dll"
...
Start bash
from a command window in pgmodeler directory.
At the command prompt run the commands:
C:/Qt/Qt5.6.2/5.6/mingw49_32/bin/qmake.exe pgmodeler.pro
C:/Qt/Qt5.6.2/Tools/mingw492_32/bin/mingw32-make.exe
C:/Qt/Qt5.6.2/Tools/mingw492_32/bin/mingw32-make.exe install
cd build
C:/Qt/Qt5.6.2/5.6/mingw49_32/bin/windeployqt pgmodeler.exe
Please be patient, it might take more than 30 minutes…
In order to run build\pgmodeler.exe
you have to copy in several libraries from:
- C:/Qt/Qt5.6.2/5.6/mingw49_32/bin:
- D:/PostgreSQL32/9.6/
- lib/libpq.dll
- bin/libxml2.dll
Now run build\pgmodeler.exe
…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