On Tue, Aug 21, 2007 at 07:56:36PM +0200, Andre Poenitz wrote:

> On Tue, Aug 21, 2007 at 03:18:15AM +0200, Enrico Forestieri wrote:
> > On Tue, Aug 21, 2007 at 02:29:00AM +0200, Andre Poenitz wrote:
> > 
> > > On Tue, Aug 21, 2007 at 01:10:29AM +0200, Enrico Forestieri wrote:
> > > > Note that it is much simpler and faster building Qt4 from sources than 
> > > > it
> > > > is building LyX. I have 4.1.5, 4.2.3, and 4.3.1 installed and I 
> > > > configure
> > > > LyX for each version through a script without any hassle.
> > > 
> > > And that's with more than one million lines in Qt *.cpp, and just 148000
> > > in LyX. It is really a shame.
> > 
> > Yes, it is quite strange, but with LyX I simply do
> > configure; make; make install
> > whereas with Qt I have to write down qmake.conf and qplatformdefs.h
> > (and I should know what to put there) if my platform is not directly
> > supported.
> 
> That's a one-time effort, requires you to copy two files with 250 lines
> and adjust maybe 10 of them.

I was also forgetting that you may need to patch *.pri files.
Then the Qt build system doesn't let you perform out of tree
builds (shadow builds in Qt parliance), even if Qt 4.3 is a big step
forward in this respect. With a few patches in tools/configure and
*.pri files, I was even able to perform a shadow mingw build.

> The price for not doing that is n-times increased compile and
> link times for _everybody_ for _every_ build.
> 
> > > PS: Wonder why?
> > 
> > autotools? You can't eat your cake and have it ;-)
> 
> That's not about pure compilation. This is about having unnecessary
> abstraction layers _and_ choosing regularily the most expensive method
> of abstraction.

There must be something wrong in the way we use autotools. I build many
other programs using autotools but do not experience the same
slowness as with lyx. But I would like to say that this is with
non Linux platforms, as in that case I don't see a real problem.
I really don't care when compilation takes 10 minutes instead of 12,
but I am concerned when with scons I can compile in almost half the
time.

-- 
Enrico

Reply via email to