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.
+
1) ./configure
- configures LyX to your system.
+ configures LyX to your system. By default, LyX configures
+ the xforms frontend, use --with-frontend=qt to build a Qt
+ version. You may have to set
+ --with-qt-dir=<path-to-your-qt-installation> to succeed.
2) make
compiles the program.
with gcc 2.7.x and 2.8.x, and this is not likely to change in the
future.
-Note that, contrary to LyX 1.0.x, LyX 1.2.x makes great use of C++
+Note that, contrary to LyX 1.0.x, LyX 1.3.x makes great use of C++
Standard Template Library (STL); this means that gcc users will have
to install the relevant libstdc++ library to be able to compile this
version.
For more complicated cases, LyX configure takes the following specific
flags:
- o --with-extra-lib=DIRECTORY that specifies the path where LyX will find
- extra libraries (Xpm, xforms) it needs. Defaults to NONE (i.e. search
- in standard places). You can specify several directories, separated
- by colons.
+ o --with-frontend=FRONTEND that allows to specify which frontend you
+ want to use. Default is "xforms", and the other possible value is
+ "qt".
+
+ o --with-extra-lib=DIRECTORY that specifies the path where LyX will
+ find extra libraries (Xpm, xforms, qt) it needs. Defaults to NONE
+ (i.e. search in standard places). You can specify several
+ directories, separated by colons.
o --with-extra-inc=DIRECTORY that gives the place where LyX will find
xforms headers. Defaults to NONE (i.e. search in standard places).
--with-extra-lib=DIRECTORY/lib --with-extra-inc=DIRECTORY/include
If DIRECTORY is not specified, the current prefix is used.
- o --with-version-suffix will install LyX as lyx-<version>, e.g. lyx-1.2.0
- The LyX data directory will be something like <whatever>/lyx-1.2.0/.
+ o --with-version-suffix will install LyX as lyx-<version>, e.g. lyx-1.3.1
+ The LyX data directory will be something like <whatever>/lyx-1.3.1/.
Additionally your user configuration files will be found in e.g.
- $HOME/.lyx-1.2.0
+ $HOME/.lyx-1.3.1
- You can use this feature to install more than one version of LyX on
- the same system. You can optionally specify a "version" of your own,
- by doing something like : ./configure --with-version-suffix=-latestcvs
+ You can use this feature to install more than one version of LyX
+ on the same system. You can optionally specify a "version" of your
+ own, by doing something like :
+ ./configure --with-version-suffix=-latestcvs
- Note that the standard configure options --program-prefix,--program-suffix
- and the others will not affect the shared LyX directory etc. so it
- is recommended that you use --with-version-suffix (or --prefix) instead.
+ Note that the standard configure options --program-prefix,
+ --program-suffix and the others will not affect the shared LyX
+ directory etc. so it is recommended that you use --with-version-suffix
+ (or --prefix) instead.
o --enable-optimization=VALUE enables you to set optimization to a
higher level as the default (-O), for example --enable-optimization=-O3.