PDA

View Full Version : QtCreator and RPM



bob2oneil
15th December 2011, 21:05
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

Ginsengelf
20th December 2011, 13:19
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 (http://www.rpm.org/max-rpm/index.html) (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

bob2oneil
20th December 2011, 14:52
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.