Results 1 to 10 of 10

Thread: Qt GUI application is not running on another Ubuntu system?

  1. #1
    Join Date
    Jan 2012
    Location
    India
    Posts
    19
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Qt GUI application is not running on another Ubuntu system?

    Hi,

    I am developing a GUI based application in Qt (QtDesigner and C++) on ubuntu 11.10.
    This application is working fine on my system but when i try to run the same application on another ubuntu system like on client's system, its not running.
    I have changed the permission to <chmod 777 appName>.

    By considering that there may be problem of static/shared linking, I have followed below links
    http://www.qtcentre.org/wiki/index.p...ic_application
    http://www.qtcentre.org/wiki/index.p...on_Linux#Hints

    to build the static application but return with same problem.

    Please help me to solve this problem.

    Thanks,
    Gurmeet
    Last edited by gurmeetsingh; 24th January 2012 at 09:02. Reason: updated contents

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Qt GUI application is not running on another Ubuntu system?

    Are all needed libraries installed on the customers pc? See ldd. And build your application with the Qt version which comes with Ubuntu.

  3. #3
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt GUI application is not running on another Ubuntu system?

    what error you get when running the app on console?

  4. #4
    Join Date
    Jan 2012
    Location
    India
    Posts
    19
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt GUI application is not running on another Ubuntu system?

    Hi Lykurg,
    Thanks for your quick response.

    Quote Originally Posted by Lykurg View Post
    Are all needed libraries installed on the customers pc?
    No. Libraries may or may not be on customer PC. I want to create an application which should be compiled in static linking.

    See ldd. And build your application with the Qt version which comes with Ubuntu.
    How to compile with QT which comes with ubuntu?

    can i compile my application which is in Qt 4.x.x with QT which comes with ubuntu and how?


    Added after 30 minutes:


    Hi Nish,

    I was in hurry and have not seen your msg. sorry.

    what error you get when running the app on console?
    The application is not running. when i try to run it from terminal then it comes with permission denied.
    I have set the permissions <chmod 777 appName> and run directly, then there is no any response. when i try to run it from terminal then it comes with msg "can not execute binary file".
    Last edited by gurmeetsingh; 24th January 2012 at 13:44.

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

    Default Re: Qt GUI application is not running on another Ubuntu system?

    What does "file yourappexe" return? What does uname -a return?
    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.


  6. #6
    Join Date
    Jan 2012
    Location
    India
    Posts
    19
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt GUI application is not running on another Ubuntu system?

    Thanks Wysota for your response.

    Quote Originally Posted by wysota View Post
    What does "file yourappexe" return?
    <file myapp> is returning "ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped"

    What does uname -a return?
    uname -a is returning "Linux user1-desktop 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:34:47 UTC 2011 i686 i686 i386 GNU/Linux"

    Thanks.

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

    Default Re: Qt GUI application is not running on another Ubuntu system?

    So you are trying to run a 64bit application on a 32bit system. This is not going to work.
    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.


  8. #8
    Join Date
    Jan 2012
    Location
    India
    Posts
    19
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt GUI application is not running on another Ubuntu system?

    So you are trying to run a 64bit application on a 32bit system. This is not going to work.
    Thanks.
    How to build 32 - bit application in Qt?
    should i have to install 32 bit version or any other setting in same version?

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

    Default Re: Qt GUI application is not running on another Ubuntu system?

    Start by installing 32bit libraries on your development system (or create a 32bit virtual machine for development).
    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.


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

    gurmeetsingh (25th January 2012)

  11. #10
    Join Date
    Jan 2012
    Location
    India
    Posts
    19
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt GUI application is not running on another Ubuntu system?

    ok, Thanks.

    I will revert with new query if needed.

    Thanks everyone for your valuable response.

Similar Threads

  1. Replies: 4
    Last Post: 7th September 2011, 22:39
  2. Replies: 1
    Last Post: 8th August 2011, 15:04
  3. Ubuntu Unity - GOODBYE SYSTEM TRAY
    By genjix in forum General Programming
    Replies: 1
    Last Post: 13th May 2011, 07:51
  4. System Error when running loadUi()
    By Amelie in forum Qt Programming
    Replies: 0
    Last Post: 9th March 2011, 15:11
  5. Running QT3 and QT4 on the same system?
    By milonguero in forum Installation and Deployment
    Replies: 2
    Last Post: 26th April 2007, 18:38

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.