PgModeler compile

PgModeler|PgModeler

Requirements

 * GCC Development Tools 4.7 or above
 * Qt 5.x framework (5.1.x is recommended)
 * XML2 library


 * PostgreSQL, of course

Pgkconfig check
The compilation script uses the pkgconfig tool to find the correct paths to PostgreSQL client library and XML2 library

-I/usr/include/libxml2 -lxml2

OK.

Package libpq was not found in the pkg-config search path. Perhaps you should add the directory containing `libpq.pc' to the PKG_CONFIG_PATH environment variable No package 'libpq' found

Edit /usr/lib/i386-linux-gnu/pkgconfig/libpq.pc

prefix=/usr libdir=${prefix}/lib includedir=${prefix}/include Name: LibPQ Version: 5.0.0 Description: Library PQ Requires: Libs: -L${libdir} -lpq Cflags: -I${includedir}/postgresql

-I/usr/include/postgresql -lpq

OK.

Compile
Project MESSAGE: Warning: unknown QT: widgets Project MESSAGE: Warning: unknown QT: printsupport WARNING: pgmodeler_data.path is not defined: install target not created WARNING: pgmodeler_doc.path is not defined: install target not created

Let's go on, anyway...

cd libutils/ && make -f Makefile make[1]: Entering directory `/usr/local/src/pgmodeler-0.7.2/libutils' g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../share/qt4/mkspecs/linux-g++ -I. -I../../../../include/qt4/QtCore -I../../../../include/qt4/QtNetwork -I../../../../include/qt4/QtGui -I../../../../include/qt4 -Isrc -I../libpgconnector/src -I../libparsers/src -I../libpgmodeler/src -I../libobjrenderer/src -I../libpgmodeler_ui/src -I../main/src -I/usr/X11R6/include -Imoc -I../../../../include/postgresql -I../../../../include/libxml2 -o obj/exception.o src/exception.cpp In file included from src/exception.cpp:18:0: src/exception.h:314:3: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat] src/exception.h:314:108: error: ‘nullptr’ was not declared in this scope src/exception.h:316:130: error: ‘nullptr’ was not declared in this scope src/exception.h:318:110: error: ‘nullptr’ was not declared in this scope [...]

OK, identifier ‘nullptr’ is a keyword in C++11

Check if Qt 5.3 is correctly setting the flags to use C++11 language keywords. I recommend you to compile using Qt 5.2.1 because pgModeler compilation wasn't test on this new version

Right, I installed Qt4 (qt4-qmake libqt4-dev)...

Debian packages?


 * https://packages.debian.org/sid/qt5-default (5.3.1+dfsg-2 and others)
 * https://packages.debian.org/sid/qt5-qmake (5.3.1+dfsg-2 and others)

Official?


 * http://download.qt-project.org/official_releases/qt/5.2/5.2.1/