sudo port install automake
-3. [Needed only for developmental builds:] gettext version >= 0.12
+3. [Needed only for developmental builds:] gettext version >= 0.18
(check with gettext --version). If the installed version is
insufficient the easiest way to obtain a later version is to use
MacPorts (from http://www.macports.org/) and install gettext
ftp://ftp.gnu.org/gnu/aspell or one of the mirrors.
At the time of writing aspell-0.60.tar.gz is the current version.
Unpack the tarball in the same directory where you placed the
-svn checkout or LyX tarball.
+git checkout or LyX tarball.
BUILD INSTRUCTIONS
The required compiler flags to compile a Qt4 application has to be provided.
- export QT4_CORE_CFLAGS="-FQtCore"
- export QT4_CORE_LIBS="-framework QtCore"
- export QT4_FRONTEND_CFLAGS="-FQtGui"
- export QT4_FRONTEND_LIBS="-framework QtGui"
+ export QT_CORE_CFLAGS="-FQtCore"
+ export QT_CORE_LIBS="-framework QtCore"
+ export QT_FRONTEND_CFLAGS="-FQtGui"
+ export QT_FRONTEND_LIBS="-framework QtGui"
Depending on the architecture and target os add the compiler flags:
--with-libiconv-prefix=/usr \
--with-x=no \
--prefix=/path/to/LyX.app \
- --with-qt4-dir=/path/to/Qt4
+ --with-qt-dir=/path/to/Qt4
make
make install-strip
user's directory being located at ~/Library/Application Support/LyX-2.0)
-(b) Developmental Versions (svn checkouts)
+(b) Developmental Versions (git checkouts)
Building LyX from developmental sources requires a few more steps.
Instead of the instructions above, do the following:
--with-x=no \
--disable-stdlib-debug \
--prefix=/path/to/LyX.app \
- --with-qt4-dir=/path/to/Qt4
+ --with-qt-dir=/path/to/Qt4
make
make install-strip
-Note that by default svn versions use some extra debugging code that
-somewhat slows LyX down. If it is a real problem, you can pass the
-option --enable-build-type=release to configure.
-
(c) Distribution build
To use it, cd to the top of the LyX source hierarchy, and enter:
- sh development/LyX-Mac-binary-release.sh --with-qt4-dir=/path/to/Qt4
+ sh development/LyX-Mac-binary-release.sh --with-qt-dir=/path/to/Qt4
This script automates all steps of the build process.
It detects the sources for Qt4, Aspell and Hunspell when placed in a
to be usable on all systems from Tiger upwards.
-(d) Developmental Versions (svn checkouts and Qt4 frameworks)
+(d) Development Versions (git checkouts and Qt4 frameworks)
Instead of the instructions in (b), do the following: