Skip to content

Latest commit

 

History

History
85 lines (62 loc) · 1.85 KB

build_pgmodeler_from_source_ubuntu.md

File metadata and controls

85 lines (62 loc) · 1.85 KB

Build PgModeler from source => Ubuntu

Installing libraries (Dependencies)

 sudo apt-get install build-essential
 sudo apt-get install git
 sudo apt-get install qtcreator
 sudo apt-get install qt6-base-dev 
 sudo apt-get install qt5-qmake
 sudo apt-get install libpq5
 sudo apt-get install libxml2
 sudo apt-get install pkg-config
 sudo apt-get install xml2
 sudo apt-get install libxml2-dev
 sudo apt-get install libpq-dev
 sudo apt-get install libqt5svg5-dev
 sudo apt-get install libqt6svg6*
 sudo apt-get install libxext-dev

or install all dependencies in one command line

sudo apt-get install build-essential git qtcreator qt6-base-dev qt5-qmake libpq5 libxml2 pkg-config xml2 libxml2-dev libpq-dev libqt5svg5-dev qmake6 libqt6svg6* libxext-dev

Make qt6 default in system for current user (since 1.0.2 qmake6 - REQUIERED)

qtchooser -install $(which qmake6)
export QT_SELECT=qt6

Getting the source

Clone the PgModeler from github https://github.com/pgmodeler/pgmodeler.git

git clone https://github.com/pgmodeler/pgmodeler.git
cd pgmodeler

Build the application

Once everything is prepared, you can compile and install pgmodeler using the following commands

qmake pgmodeler.pro
make
sudo make install

The binary will be available in /usr/local/bin/

Open PgModeler

Just type the below command in terminal

pgmodeler

Tested with Ubuntu-20.04 Enjoy !!!

Extras

Add Desktop shortcut

Create PgModeler.desktop file in the ~Desktop location with the following content

[Desktop Entry]
Version=1.0
Type=Application
Name=PgModeler
Exec=/usr/local/bin/pgmodeler
Icon=/home/enkindle/Pictures/pgmodeler_logo.png
Terminal=false

Right click on the file and Allow Launcing and Allow Execution.

output