PDA

View Full Version : DebianvsQt



KellyDink
3rd March 2017, 08:01
Hello, I installed Qtcreator on Debian jessie and faced with a problem. I can debug local project, but when I do this from the cloned project from git qtcreator produces an error - can't write changes to the file /home/projectname/projectname.pro.user: permission denied. Is this bed? =)
Also I have installed QtCore, but there isn't <QtCore/QCommandLineParser>, <QtCore/QCommandLineOption>. How can I add them? should I do this from QtCreator interface or I can add them directly to installation folder? Or I should add them to the project folder?

anda_skoa
3rd March 2017, 11:45
can't write changes to the file /home/projectname/projectname.pro.user: permission denied. Is this bed? =)

Do you have write permissions to that file?

Are you sure you cloned into /home instead of a directory within your user account?



Also I have installed QtCore, but there isn't <QtCore/QCommandLineParser>, <QtCore/QCommandLineOption>. How can I add them? should I do this from QtCreator interface or I can add them directly to installation folder? Or I should add them to the project folder?

Did you install Qt development packages?
E.g. qtbase5-dev?

Cheers,
_

KellyDink
7th March 2017, 09:19
I installed Qt from grafical installer and changed Qt for version 5.6.2. Also I started Qtcreator from command line with root rights. So the problems with dll's and .pro file gone and I can build the project. In the project I connect to the PostgreSQL base and bow it shows an error - QPSQL Driver not loaded

In the folder /opt/Qt5.6.2/5.6/gcc_64/plugins/sqldrivers is libqsqlpsql.so also I tried to install sudo apt-get install libqt5sql5-psql
wget http://launchpadlibrarian.net/75954717/libmysqlclient16_5.1.58-1ubuntu1_amd64.deb
sudo dpkg -i ./libmysqlclient16_5.1.58-1ubuntu1_amd64.deb
sudo apt-get install libssl1.0.0

Added after 1 14 minutes:


But I can't install them by apt-get because they are not found in the repositories. Also there is suspiciously few sql packets


root@KaterinaDeb:/opt/Qt5.6.2/5.6/gcc_64/plugins/sqldrivers# dpkg --list | grep sql
ii libaprutil1-dbd-sqlite3:amd64 1.5.4-1 amd64 Apache Portable Runtime Utility Library - SQLite3 Driver
ii libhsqldb1.8.0-java 1.8.0.10+dfsg-3 all Java SQL database engine
ii libmysqlclient16 5.1.58-1ubuntu1 amd64 MySQL database client library
ii libmysqlclient18:amd64 5.5.54-0+deb8u1 amd64 MySQL database client library
ii libqt4-sql:amd64 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 amd64 Qt 4 SQL module
ii libqt4-sql-mysql:amd64 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 amd64 Qt 4 MySQL database driver
ii libqt4-sql-sqlite:amd64 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 amd64 Qt 4 SQLite 3 database driver
ii libqt5sql5:amd64 5.3.2+dfsg-4+deb8u2 amd64 Qt 5 SQL module
ii libqt5sql5-psql:amd64 5.3.2+dfsg-4+deb8u2 amd64 Qt 5 PostgreSQL database driver
ii libqt5sql5-sqlite:amd64 5.3.2+dfsg-4+deb8u2 amd64 Qt 5 SQLite 3 database driver
ii libreoffice-sdbc-hsqldb 1:4.3.3-2+deb8u6 amd64 HSQLDB SDBC driver for LibreOffice
ii libsqlite3-0:amd64 3.8.7.1-1+deb8u2 amd64 SQLite 3 shared library
ii libsqlite3-0:i386 3.8.7.1-1+deb8u2 i386 SQLite 3 shared library
ii mysql-common 5.5.54-0+deb8u1 all MySQL database common files, e.g. /etc/mysql/my.cnf
ii postgresql-client 9.4+165+deb8u2 all front-end programs for PostgreSQL (supported version)
ii postgresql-client-9.4 9.4.10-0+deb8u1 amd64 front-end programs for PostgreSQL 9.4
ii postgresql-client-common 165+deb8u2 all manager for multiple PostgreSQL client versions

anda_skoa
7th March 2017, 09:25
PSQL is the PostgreSQL driver (not the MySQL driver), you might be missing the respective client libraries.

Cheers,
_