Results 1 to 3 of 3

Thread: Stretch - Ough!

  1. #1
    Join Date
    Apr 2013
    Location
    Prague
    Posts
    258
    Thanks
    3
    Thanked 65 Times in 59 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Stretch - Ough!

    I have installed Debian 9 (KDE) and the Qt SDK. Then I tried to compile a simple project. The project compiled ok in Debian 8. It also compiled now, in Debian 9 but the resulting file is a shared library instead of an executable. Strange - the "shared library" can run inside the Creator. Even more strange - the "shared library" can run from a prompt in the terminal. But it refuse to run from the desktop. Yes, "run in the terminal" wasn't selected during building. It's a simple desktop window application. Yes, the .pro file contains "TEMPLATE = app".

    What have I forgotten?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Stretch - Ough!

    If it can be run directly from a shell prompt then it must be either an executable or shell script (with shebang line). What makes you think it is a "shared library"?

    If it runs inside Creator and from your shell prompt but not when launched using a desktop icon then the most likely cause is the different environment in which the executable is being launched. In the shell/Creator the system library path, PATH and LD_LIBRARY_PATH are suitable for the application to find its libraries etc., and in the desktop environment they are not. Are the Qt runtime librarfolders in the system default library path (/etc/ld.so.conf)?

  3. #3
    Join Date
    Apr 2013
    Location
    Prague
    Posts
    258
    Thanks
    3
    Thanked 65 Times in 59 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Stretch - Ough!

    "Shared library" is reported by the Properties. Sure, it is an executable and not a library but it happened somehow that the executable got a MIME type of a shared library. Nice, but what should I do with it?
    The environment: it seems to be okay if the "shared library" runs from terminal launched outside Creator.

    Notes:
    Debug build is also a "shared library".
    The "shared library does not have the .so extent.

Similar Threads

  1. stretch label of QCheckBox
    By tuli in forum Qt Programming
    Replies: 3
    Last Post: 29th April 2013, 07:37
  2. Qt Designer Layout and stretch factor
    By folibis in forum Qt Tools
    Replies: 2
    Last Post: 26th April 2012, 22:53
  3. Stretch Last Section
    By skizzik in forum Qt Programming
    Replies: 1
    Last Post: 10th January 2011, 14:45
  4. Can Layouts Stretch to Fit?
    By kylemhall in forum Newbie
    Replies: 2
    Last Post: 17th December 2009, 15:37
  5. stretch QTableWodgetItem
    By Shawn in forum Qt Programming
    Replies: 5
    Last Post: 5th September 2007, 09:49

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.