Bug: Scroll bar does not work
Angus Leeming
leeming at lyx.org
Mon May 9 13:02:16 CEST 2005
Christian Ehrlicher wrote:
>>> Dear Qt Win/Free developers,
>>>
>>> this is the last bug report for today. In LyX, there is a dialog that
>>> looks as follows:
>>
>> Sorry, the thunderbird ate my screen shot. Please have a look at the
>> attachment.
> Hallo Michael
> Wie kann ich am besten und schnellsten lyx/win32 kompilieren?
See http://www.devel.lyx.org/cvs.php3
Reproducing here:
$ cvs -d :pserver:anoncvs at anoncvs.us.lyx.org:/cvs/lyx login
The password is "lyx" (without the quotes).
$ cvs -d :pserver:anoncvs at anoncvs.us.lyx.org:/cvs/lyx checkout lyx-devel
> geht es auch mit msvc?
Yes. And judging from the speed of response of Rob Bearman when answering
my questions about "does this or that work under MSVC",
compilation/linking is much, much, much, much, much faster than with mingw.
See development/Win32/readme.txt:
=====================================================================
To compile using MicroSoft Visual Studio 2003.NET, do this:
1) Checkout Qt/Free from CVS next to lyx-devel and compile.
See http://kde-cygwin.sourceforge.net/qt3-win32/compile-net.php
for more info. If you get a linking error about qt-mt3.lib, then
copy lib/qt-mt333.lib to qt-mt3.lib and rerun configure.
2) Make sure QTDIR is set in your global environment, and QTDIR\bin
is in your path. Control panel, system, advanced, environment
variables is your friend on Windows XP.
3) Open the development\win32\lyx.sln file in Visual Studio,
compile and run. You can probably also use the free version
of Microsoft's compiler, but I haven't tried that.
Development:
To get a stack-trace for assertions in LyX, make a breakpoint
in src/Boost.C.
To see the output from LyX, add "2> c:\errors.txt" to the command
line in Project, Build properties, Debugging, Command arguments
To run LyX, you need a bunch of generated files from configure.
Run "fake.bat" to copy chkconfig.ltx, lyxrc.defaults, packages.lst
and textclass.lst from fakeconfig to their destination.
At start-up, you might get an assertion about a unix path in
boost::filesystem. You can safely ignore that.
=====================================================================
I believe that you'll need to
cp development/Win32/config.h src/.
cp development/Win32/version.C src/.
cp development/Win32/package.C src/support/.
for compilation to succeed, but I've never used Visual Studio so I'm just
guessing.
LyX should compile out of the box with MinGW/MSys with the usual:
$ cd lyx-devel
$ ./autogen.sh
$ mkdir build && cd build
$ ../configure --with-included-gettext --with-frontend=qt \
--with-qt-dir=${QTDIR}
$ make
Note, however, that linking lyx 1.4.x takes over 1 hour on my 2.7GHz box
when using mingw. Actually, that's not true. I run out of virtual memory
(512kB + 1024kB swap) when trying to link when running under WinXP. I can
succeed in linking (takes 62 minutes) when using the mingw cross-compiler
when booting the same machine under linux. Go figure :(
Did I mention that MSVC was much, much, much faster than mingw? :)
HTH,
Angus
More information about the kde-cygwin
mailing list