Leuven, E. a écrit :
hi guys,
was thinking of trying my hand at building the qt4 frontend on windows...
i found these instructions
http://article.gmane.org/gmane.editors.lyx.devel/55359/match=compile+instructions+windows
is this accurate enough?
Almost, you will need cygwin for the autogen part (Msys does not have
automake-1.9). Personnally I have completely ditched Msys in favor of a
basic install of cygwin (no gcc) combined with mingw. Here is a recipe
that I sent to Uwe some time ago that I modified with my current method:
First I use the official Qt4 for mingw. So no need to compile it. There
are unofficial patch for Qt4 so that you can compile it with MSVC but I
did not try that.
So presuming you want to go with a mingw lyx you have to:
1) install a minimal version of cygwin: the base package+automake-1.9;
WARNING: no gcc, no binutils!
2) install Mingw (here in d:\mingw)
3) install Qt4 (here in d:\program\Qt\4.1)
4) install my Aspell library (d:\program\Aspell-0.60.4) from
http://younes.a.free.fr or compile them
5) install libiconv from gunwin32 project
6) install bzlib2 from gunwin32 project
7) under cygwin at lyx top-level directory, type "sh autogen.sh" in
order to generate the makefiles.
8) ./configure
--with-extra-prefix='/cygdrive/d/mingw:/cygdrive/d/program/Aspell-0.60.4'
--with-included-gettext --with-packaging=windows
--prefix='d:/program/lyx-svn' --without-x --with-aspell
--with-version-suffix=-svn --with-frontend=qt4 --disable-maintainer-mode
--disable-debug --enable-optimization=-O3 --disable-pch
--disable-stdlib-debug --enable-concept-checks
--with-qt4-dir='d:/program/Qt/4.1'
9) make
9-a) if building stops, cd src/ && make
10) make install
That's it, you will see that building lyx with Qt4 is much quicker than
with Qt3. If you don't want to bother with compiling Aspell, download it
from my site: http://younes.a.free.fr/
I don't remember the exact list of package I have installed so if you
wait for this week-end, I will zip my mingw directory and put it on my
web site. I'll put also all the cygwin package that I have installed so
you can install the same set.
Don't hesitate if you need further help,
Abdel.