Results 1 to 5 of 5

Thread: How to run Qt 5.1.0 application on Debian

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2012
    Posts
    132
    Thanks
    10
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: How to run Qt 5.1.0 application on Debian

    Thanks for your answer.

    A missing dependency
    libxcb.so wasn't missing. I checked the dependencies using readelf and discovered that libQt5DBus.so is required by xcb. That one was missing, my applications are running now.

    The paths can be set using qt.conf which seems a better choice than manipulating the system environment.
    I will use qt.conf instead of /etc/environment to tell Qt where to look for plug-ins. But this works only for the plug-in libraries, not for the regular Qt libraries (correct?).
    How tells the installer the system where to look for the Qt libraries (I found no qt.conf file)?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to run Qt 5.1.0 application on Debian

    Quote Originally Posted by Infinity View Post
    But this works only for the plug-in libraries, not for the regular Qt libraries (correct?).
    Correct.

    How tells the installer the system where to look for the Qt libraries (I found no qt.conf file)?
    For Linux based systems you can set rpath or runpath so that the loader looks for libraries in a place set during compilation or you can use LD_LIBRARY_PATH to set the directory during application startup. Qt-based apps are by no means different than any other Linux application in this regard.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Infinity (5th September 2013)

  4. #3
    Join Date
    Oct 2012
    Posts
    132
    Thanks
    10
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: How to run Qt 5.1.0 application on Debian

    I'm using the directory you suggested now and my applications are working. But I'm still interested so I'll check out rpath, runpath and LD_LIBRARY_PATH.

Similar Threads

  1. Replies: 1
    Last Post: 3rd August 2013, 11:39
  2. QtIOCompressor fix for Mac (Debian Linux?)
    By qdm in forum Qt Programming
    Replies: 0
    Last Post: 23rd June 2010, 02:17
  3. How to create a debian package for Qt4 application.
    By genessr in forum Qt Programming
    Replies: 2
    Last Post: 14th July 2009, 09:48
  4. QT 4.4 Package for Debian
    By Tavo92 in forum Installation and Deployment
    Replies: 3
    Last Post: 6th August 2008, 18:03
  5. qt >= 4.3 for debian etch packages
    By majorTom in forum Installation and Deployment
    Replies: 1
    Last Post: 15th September 2007, 13:10

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
  •  
Qt is a trademark of The Qt Company.