Results 1 to 3 of 3

Thread: QtCreator and RPM

  1. #1
    Join Date
    Nov 2010
    Posts
    122
    Thanks
    62
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Cool QtCreator and RPM

    I have developed a Linux daemon in Qt and not need to distribute it along with two Qt libraries (QtCore and QtNetwork) to a Linux platform based on the Redhat Package Manager.

    Does anyone have any experience in using Qt Creator to created RPMs?

    My ambition for the RPM is to simply distribute my binary (to /usr/sbin), a local configuration file, and the two Qt libraries to a platform.

    If Qt Creator is not the best tool for this and the develoment of a .SPEC file, is there a good tool for Fedora?

    Thanks in advance

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    506
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QtCreator and RPM

    Hi, as spec files are simple text files you can write them with any editor you like. The syntax is quite simple if you only want a simple package, see here (especially chapters 11 & 13).

    As a side note: your RPM-package should depend on the Qt libraries. Do not ship them yourself (as you would do on Windows), let the package manager of the target system handle the dependency.

    Ginsengelf

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

    bob2oneil (20th December 2011)

  4. #3
    Join Date
    Nov 2010
    Posts
    122
    Thanks
    62
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Cool Re: QtCreator and RPM

    Just to follow up on your comments, I very much wish to ship the dependant Qt libraries (QtCore and QtNetwork) so that I can ensure the application which uses them has these available without a formal Qt install.

    I want to distribute the latest binaries available for a specific Linux distro (say Fedora or Ubuntu) as opposed to what might be available via a "yum install" or "apt" install.

    It would be for a very specific version of Fedora or Ubuntu as opposed to a more generalized install.

    The point of the RPM was to distirbute my custom binary, all dependant libraries and configuration files in one bundled setup.

    I have no real need for an RPM other than to redistribute the dependant libraries.

Similar Threads

  1. QtCreator 2.0 crashes application working in QtCreator 1.3
    By been_1990 in forum Qt Programming
    Replies: 2
    Last Post: 21st September 2010, 12:58
  2. QtCreator x64
    By Dato0011 in forum Qt Tools
    Replies: 6
    Last Post: 15th February 2010, 12:59
  3. Replies: 1
    Last Post: 10th February 2010, 07:28
  4. QtCreator like UI (MDI?)
    By soxs060389 in forum Qt Programming
    Replies: 4
    Last Post: 8th December 2009, 12:25
  5. AsM in QTCreator
    By XavierQT in forum Qt Programming
    Replies: 2
    Last Post: 8th June 2009, 02:09

Tags for this Thread

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.