[Development] Examples packaging

Alan Alpert 416365416c at gmail.com
Thu Nov 22 15:54:48 CET 2012


On Thu, Nov 22, 2012 at 1:52 AM, Kalinowski Maurice
<Maurice.Kalinowski at digia.com> wrote:
> Hi,
>
> We are currently going through the examples for the final Qt 5 packages and as mentioned before, there are some differences compared to Qt 4 packaging.
>
> Most prominently, examples are packaged via make install and then taken from the prefix directory. This has two problems:
> a) We need to adapt some install rules to also include dependencies, otherwise they would not build on user's target installation
> b) We are packaging a whole bunch of generated binaries (the example binaries themselves) while one would expect users to use qmake/make in any case.
>
> Also install rules are a bit misused as they need to install the sources, which is what you usually do not want to do and taking example code as a guideline for beginners might lead them into the wrong direction.
>
> My question is, what are the benefits compared to picking the example source code from the source package directly. Does anybody really want to have prebuilt binaries in the examples directory? Current assumption is that you go through the list via Qt Creator and build the examples are required for testing purposes.

To my knowledge the point of having prebuilt examples is for use in
QtDemo. This demo application did a great job showcasing Qts
functionality even before developers chose to start an IDE.

>  As we are so close to the final release, most likely nothing will happen within the 5.0 timeframe, but we should aim for a decision at least for 5.1.

I don't think QtDemo made it into 5.0 :( . If we can bring it back for
5.1 then it's still worth having built examples for it to launch.

--
Alan Alpert



More information about the Development mailing list