Results 1 to 4 of 4

Thread: Deploy QT on various Linux distributions

  1. #1
    Join Date
    Mar 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Deploy QT on various Linux distributions

    Hi.

    Short Question
    ==============
    What's the best way to develop QT application to be deployed on different Linux Distributions (without recompiling...)?


    Long Question
    =============
    I'm developing a simple QT project, on Ubuntu 11.10 (32 bit)
    Currently, I have a working binary on my personal machine.
    I wanted to try my binary on other machines.
    Copied it over to a RHEL5 (64 bit) and it failed with a segmentation fault, before anything happened.
    Well, I thought - maybe it's some 32/64 bits issue.
    Tried it on a SL6 (RHEL based) - 32 bits. This time the GUI started, but when any action was required - it failed.
    Final try - copied it to another Ubuntu 11.10 (32 bits) - and now it's working.

    Googling gave me this:
    http://blog.rubypdf.com/2010/07/15/l...linux-distros/

    It seems that QT should somehow support Linux Standard Base, and that should facilitate this process.

    Is it accurate?
    How do I do this?
    And why isn't it the default process??

    Or maybe, there is a better solution?

    Thanks,
    Zvika

  2. #2
    Join Date
    Nov 2011
    Location
    Poland
    Posts
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Deploy QT on various Linux distributions

    I sugest to migrate from qmake pro to cmake. Than You can easy use cpack generators to create deb and rpm packages. When Your project will became more complicated migration can be painfull.

  3. #3
    Join Date
    Mar 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Deploy QT on various Linux distributions

    Hi.

    How cmake should help me?
    My problem is not with the RPM/DEB packaging.
    I've manually copied the binary to various systems, and wasn't able to run it.

    What about the LSB?
    Should I consider using it?

    Thanks...

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: Deploy QT on various Linux distributions

    Did you build your app against an LSB-enabled environment?
    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.


Similar Threads

  1. Linux distributions
    By marcel in forum General Discussion
    Replies: 43
    Last Post: 2nd May 2011, 16:44
  2. Deploy app in Linux
    By The_Fallen in forum Installation and Deployment
    Replies: 4
    Last Post: 13th October 2010, 15:43
  3. How to deploy application using shared library in Linux
    By cutie.monkey in forum Installation and Deployment
    Replies: 9
    Last Post: 21st January 2010, 18:41
  4. Program in Windows, Deploy in Linux
    By suitto in forum Installation and Deployment
    Replies: 1
    Last Post: 8th April 2009, 13:11
  5. Different behaviour on different distributions
    By Kumula in forum Qt Programming
    Replies: 17
    Last Post: 6th March 2006, 23:58

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.