Edit Links |
LyX /
LyX on CygwinCategories: Cygwin << Mac-X11 | Page list | Group map >>This page describes how to use LyX under Cygwin on Windows by building Qt/Win and LyX from source using cygwin tools. (If you don't want or need to compile LyX yourself, you can download lyx-1.5.X-cygwin.tar.gz from the binary distribution site, un-tar it, and follow the instructions.) Building Qt and LyXNote that the procedure outlined here applies to Qt 4.3.3 only. It cannot be used with a different version, unless you adapt the provided patches. Also note that this Qt port has only been tested with LyX and further patches may be needed when using configuration switches different from the ones reported here. Cygwin packagesWe need quite a slew of tools to build Qt and LyX. Be sure to install at least the cygwin packages listed below. Due to a dependency mechanism, all other tools not listed here should also be marked for installation (I hope I forgot nothing).
Qt4 Open Source EditionGrab the Qt sources from Trolltech:
ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.3.3.tar.gz cd /usr/local/src tar zxvf /path/to/qt-x11-opensource-src-4.3.3.tar.gz Now rename the newly created directory mv qt-x11-opensource-src-4.3.3 qtwin-4.3.3 This step is not strictly necessary, but we will not be building for X11 and
in the following instructions it is assumed that the Qt sources are in located
in a directory called qtwin-4.3.3 in /usr/local/src. If you unpacked the
sources somewhere else, simply replace In order to build Qt for cygwin without X11, part of the sources of the native Windows version are necessary. Trolltech distributes them in a separate archive and you should also grab that archive and move the missing files to the above directory. However, for your convenience, I have collected the missing files in a tar archive, so simply follow the next procedure.
Note: using the above command line, Qt will be installed in /usr/local/qt/4.3.3.
Change this path if you want to install it somewhere else.
You can now move to building LyX. LyX
If you installed Qt4 somewhere else than /usr/local/qt/4.3.3, then give the
directory where you actually installed it as second parameter
/path/to/lyxconfig-cygwin lyx-1.5.X <qt4dir>
MikTeX, ImageMagick, and native convertersWhen compiled as outlined here, LyX is a cygwin application. This means that it understands both posix and windows paths, but it always generates posix paths. So, if you use the native MikTeX and/or ImageMagick packages, as they are unaware of posix paths, these must be translated to native form. The only two programs that need this translation are epstopdf (from MikTeX) and convert (from ImageMagick). Here you can download two scripts which take care of the translation: epstopdf, convert. Place them ahead in your PATH (/usr/local/bin is a good choice) such that LyX finds them before the MikTeX and ImageMagick programs. If you use the tetex and imagemagick cygwin packages, you don't need them. In case you use other native converters, you may call them through the following wrapper script: wrapper.sh. Simply give it the same name as the native application (without any extension) and place it in /usr/local/bin. Now, using a text editor that produces Unix line endings (notepad is not good), go to the last line and change the string command_name to the name of the native application. If such application is not already in the system PATH, use an absolute path, instead (or simply add the path to the application to the "PATH prefix:" entry in Tools->Preferences). The wrapper should be able to deal with the vast majority of native applications and can be easily adapted if it does not exactly fit your needs. Contributors
History
|