Skip to content

Instantly share code, notes, and snippets.

@TheFern2
Created April 28, 2022 00:58
Show Gist options
  • Save TheFern2/1a696e523e6220a763bc82dfab3f8347 to your computer and use it in GitHub Desktop.
Save TheFern2/1a696e523e6220a763bc82dfab3f8347 to your computer and use it in GitHub Desktop.
pgmodeler

Windows compilation for pgmodeler

Install msys2

1: pacman -Suy
2: pacman -Suy
3: pacman -S base-devel mingw-w64-x86_64-make mingw-w64-x86_64-gcc mingw-w64-x86_64-postgresql mingw-w64-x86_64-qt5

Pre flight

/mingw64/share/qt5

export QT_ROOT=/mingw64/share/qt5 export INSTALLATION_ROOT=/C/Users/fernandob/git/pgmodeler/build

Added /mingw64/bin to path in .bashrc

Compile

1: qmake -r CONFIG+=release PREFIX=$INSTALLATION_ROOT pgmodeler.pro 2: make 3: make install 4: cd $INSTALLATION_ROOT 5: windeployqt pgmodeler.exe pgmodeler_ui.dll

Resolve dependencies

1: cd $MSYS2_ROOT/mingw64/bin/ 2: cp libicuin*.dll libicuuc*.dll libicudt*.dll libpcre2-16-0.dll libharfbuzz-0.dll
libpng16-16.dll libfreetype-6.dll libgraphite2.dll libglib-2.0-0.dll libpcre-1.dll
libbz2-1.dll libssl-1_1-x64.dll libcrypto-1_1-x64.dll libgcc_s_seh-1.dll
libstdc++-6.dll libwinpthread-1.dll zlib1.dll libpq.dll libxml2-2.dll liblzma-5.dll
libiconv-2.dll libintl-8.dll libbrotlidec.dll libbrotlicommon.dll
libdouble-conversion.dll libzstd.dll libmd4c.dll $INSTALLATION_ROOT

Archive build into pgmodeler-0.9.4.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment