On Mon, Feb 18, 2008 at 05:54:30PM -0500, Steve Litt wrote:
> UIC=/usr/lib/qt4/bin/uic ./configure --with-extra-prefix=/usr/lib/qt4 
> --with-qt4-dir=/usr/lib/qt4 --with-qt4-includes=/usr/lib/qt4/include 
> --with-qt4-libraries=/usr/lib/qt4/lib

There's btw no reason to actuall _install_ Qt, running it from compiled
sources suffices. [./configure -prefix `pwd` helps]
 
> And it errors out like this:
> 
> deps/Dialogs.Tpo -c Dialogs.cpp -o Dialogs.o QAbout.h:24: error: ‘Ui’
> has not been declared QAbout.h:24: error: expected `{' before
> ‘QAboutUi’ QAbout.h:24: error: invalid function declaration make[7]:
> *** [Dialogs.lo] Error 1 make[7]: Leaving directory
> `/home/slitt/junk/lyx-1.5.3/src/frontends/qt4' make[6]: ***
> [all-recursive] Error 1 make[6]: Leaving directory
> `/home/slitt/junk/lyx-1.5.3/src/frontends/qt4' make[5]: *** [all]
> Error 2 make[5]: Leaving directory
> `/home/slitt/junk/lyx-1.5.3/src/frontends/qt4' make[4]: ***
> [all-recursive] Error 1 make[4]: Leaving directory
> `/home/slitt/junk/lyx-1.5.3/src/frontends' make[3]: *** [all] Error 2
> make[3]: Leaving directory `/home/slitt/junk/lyx-1.5.3/src/frontends'
> make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
> `/home/slitt/junk/lyx-1.5.3/src' make[1]: *** [all] Error 2 make[1]:
> Leaving directory `/home/slitt/junk/lyx-1.5.3/src' make: ***
> [all-recursive] Error 1 [EMAIL PROTECTED] lyx-1.5.3]$
> 
> I tried to install qt 2.4.3, but it would have involved messing with
> my entire distribution, which is too much risk to take.

It would have been too old as well.

> It shouldn't be this difficult to compile LyX. It wasn't this
> difficult a couple years ago.

There were several years were certain versions of automake were
required. Not everything was golden in the 1920's...

> Perhaps the features of the latest and greatest QT shouldn't be used
> so early, so that those of us with a year old distro can compile it
> without putting our entire distro's QT on the block.

I am on the fringe of getting upset. If you insist on using an old
distribution, use the version of LyX bundled with it or learn how cope
with the 'problems' you face otherwise. I guess you still have ui_*.h 
files generated files hanging around. Try with a fresh checkout, and
./configure properly. I bet it will compile out-of-the-box.

Andre'

Reply via email to