These four steps will compile, test and install LyX:
0) Linux users beware: if compiling the Qt frontend, you need
- qt and qt-devel packages of the same version to compile LyX.
+ qt4 and qt4-devel packages of the same version to compile LyX.
- 1) ./configure --with-frontend=qt4
+ 1) ./configure
configures LyX according to your system.
When compiling for Qt, you may have to set
- --with-qt-dir=<path-to-your-qt-installation>
+ --with-qt4-dir=<path-to-your-qt4-installation>
if the environment variable QTDIR is not set.
2) make
-----------------------------
If you have checked this out from Subversion, you need to have:
-* automake >= 1.9
+* automake >= 1.5
* autoconf >= 2.52
* gettext >= 0.12
Then type "./autogen.sh" to build the needed configuration
For more complicated cases, LyX configure takes the following specific
flags:
- o --with-frontend=FRONTEND that allows to specify which frontend you
- want to use. There is no default value: this switch is required.
-
o --with-extra-lib=DIRECTORY that specifies the path where LyX will
find extra libraries (qt4) it needs. Defaults to NONE
(i.e. search in standard places). You can specify several
installation. [defaults to /usr/local]
o --datadir=DIRECTORY gives the directory where all extra LyX
- files (lyxrc example, documentation, templates and layouts
- definitions) will be installed.
+ files (documentation, templates and layout definitions)
+ will be installed.
[defaults to ${prefix}/share/lyx${program_suffix}]
o --bindir=DIRECTORY gives the directory where the lyx binary
latex cannot be found. If you find that you have to use this
flag, please report it as a bug.
+ o --with-frontend=FRONTEND that allows to specify which frontend you
+ want to use. The default value is qt4, which is the only available
+ frontend for now.
+
Compiling and installing LyX
----------------------------
make install-strip
-BTW: in the images subdirectory there is also a small icon "lyx.xpm",
+BTW: in the images subdirectory there is also a small icon "lyx.png",
that can be used to display lyx-documents in filemanagers.
If configure fails for some strange reason