Results 1 to 4 of 4

Thread: DebianvsQt

  1. #1
    Join Date
    Mar 2017
    Posts
    2
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default DebianvsQt

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: DebianvsQt

    Quote Originally Posted by KellyDink View Post
    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?

    Quote Originally Posted by KellyDink View Post
    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,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    KellyDink (7th March 2017)

  4. #3
    Join Date
    Mar 2017
    Posts
    2
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: DebianvsQt

    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 [url]http://launchpadlibrarian.net/75954717/libmysqlclient16_5.1.58-1ubuntu1_amd64.deb[/url]
    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

    Qt Code:
    1. root@KaterinaDeb:/opt/Qt5.6.2/5.6/gcc_64/plugins/sqldrivers# dpkg --list | grep sql
    2. ii libaprutil1-dbd-sqlite3:amd64 1.5.4-1 amd64 Apache Portable Runtime Utility Library - SQLite3 Driver
    3. ii libhsqldb1.8.0-java 1.8.0.10+dfsg-3 all Java SQL database engine
    4. ii libmysqlclient16 5.1.58-1ubuntu1 amd64 MySQL database client library
    5. ii libmysqlclient18:amd64 5.5.54-0+deb8u1 amd64 MySQL database client library
    6. ii libqt4-sql:amd64 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 amd64 Qt 4 SQL module
    7. ii libqt4-sql-mysql:amd64 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 amd64 Qt 4 MySQL database driver
    8. ii libqt4-sql-sqlite:amd64 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 amd64 Qt 4 SQLite 3 database driver
    9. ii libqt5sql5:amd64 5.3.2+dfsg-4+deb8u2 amd64 Qt 5 SQL module
    10. ii libqt5sql5-psql:amd64 5.3.2+dfsg-4+deb8u2 amd64 Qt 5 PostgreSQL database driver
    11. ii libqt5sql5-sqlite:amd64 5.3.2+dfsg-4+deb8u2 amd64 Qt 5 SQLite 3 database driver
    12. ii libreoffice-sdbc-hsqldb 1:4.3.3-2+deb8u6 amd64 HSQLDB SDBC driver for LibreOffice
    13. ii libsqlite3-0:amd64 3.8.7.1-1+deb8u2 amd64 SQLite 3 shared library
    14. ii libsqlite3-0:i386 3.8.7.1-1+deb8u2 i386 SQLite 3 shared library
    15. ii mysql-common 5.5.54-0+deb8u1 all MySQL database common files, e.g. /etc/mysql/my.cnf
    16. ii postgresql-client 9.4+165+deb8u2 all front-end programs for PostgreSQL (supported version)
    17. ii postgresql-client-9.4 9.4.10-0+deb8u1 amd64 front-end programs for PostgreSQL 9.4
    18. ii postgresql-client-common 165+deb8u2 all manager for multiple PostgreSQL client versions
    To copy to clipboard, switch view to plain text mode 
    Last edited by KellyDink; 7th March 2017 at 09:58.

  5. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: DebianvsQt

    PSQL is the PostgreSQL driver (not the MySQL driver), you might be missing the respective client libraries.

    Cheers,
    _

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.