Lyx
Before you start digging into LyX
(Release /
Dev)
face all requirements first
- teTeX TeX base library
- QT GUI Toolkit
- gettext translation Library
- imagemagick image conversion tool
- aspell spell checking library incl. german dictionary
v1.6.2
./configure --prefix=/opt/lyx-1.6 --with-qt4-dir=/opt/qt-4.5 --enable-static=yes --enable-shared=no
Upgrade to 1.6.4 because of a nasty bug crashing lyx on documents with embedded images.
v1.5.x
Starting with this version - lyx has a build in session management of its own. So
no need to maintain my own patches any more.
Dont be disappointed, after the first start, all tex-Settings are greyed out. No problem.
Add the following to the preferences PATH-PREFIX.
/usr/bin:/usr/local/bin:/opt/tex/bin:/opt/imagemagick/bin:/opt/aspell/bin
Select in the TOOLS Menu RECONFIGURE and restart LyX.
Spellchecker error ngerman not found...
/opt/aspell/lib/aspell-0.60 ahammer$ cp swiss.alias ngerman.alias
v1.4.x
A new link to LyX.app and alternative tar-balls for cvs access ftp://ftp.sylvan.com/pub/lyx/devel/
export LDFLAGS="-framework Carbon -framework OpenGL -framework AGL -framework QuickTime -lz" export CFLAGS="-Os" export CXXFLAGS="-Os" export IMG=/opt/imagemagick-6.2.5 export QTDIR=/opt/qt-3.3.5 export GETTEXT=/opt/gettext-0.14.5 export GS=/opt/gs-8.5.3 export ASPELL=/opt/aspell-0.60 export PATH=$PATH:$QTDIR/bin:$GETTEXT/bin:$IMG/bin:$GS/bin:$ASPELL/bin export DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH ./autogen.sh ./configure --with-frontend=qt --without-x --with-included-gettext --with-aspell --with-extra-lib=$ASPELL/lib --with-extra-inc=$ASPELL/include --with-qt-dir=$QTDIR --with-qt-include=$QTDIR/include --with-qt-libraries=$QTDIR/lib --enable-optimization=-0s --disable-concept-checks
Dont be disappointed, after the first start, all tex-Settings are greyed out. No problem. Add the following to the preferences PATH-PREFIX.
/usr/bin:/usr/local/bin:/opt/tex/bin:/opt/imagemagick/bin:/opt/aspell/bin
Select in the TOOLS Menu RECONFIGURE and restart LyX.
The following 4 patches implement a simple Restore last windows size and position
feature
lyx_gui.diff
lyxfunc.diff
lyxrc_C.diff
lyxrc_h.diff
v1.3.x / CVS
LyX is a TeX based document processor. First you need the Application Bundle lyx-mac-skeleton.
Unpack it in /Applications and change the references from "1.3.3" to "1.4.0" in /Applications/LyX.app/Contents/Info.plist to reflect the current version number.
export LDFLAGS="-framework Carbon -framework OpenGL -framework AGL -framework QuickTime -lz" export IMG=/opt/imagemagick-6.2.1 export QTDIR=/Data/Source/qt-3.3.4 export GETTEXT=/opt/gettext-0.14.4 export GS=/opt/gs-8.5.1 export ASPELL=/opt/aspell-0.60 export PATH=$PATH:$QTDIR/bin:$GETTEXT/bin:$IMG/bin:$GS/bin:$ASPELL/bin export DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH ./configure --with-qt-dir=$QTDIR --with-qt-include=$QTDIR/include --with-qt-libraries=$QTDIR/lib --with-frontend=qt --without-x --datadir=/Applications/LyX.app/Contents/Resources --bindir=/Applications/LyX.app/Contents/MacOS --mandir=/Applications/LyX.app/Contents/Resources/man --enable-maintainer-mode --with-included-gettext --enable-optimization=-Os make make install strip /Applications/LyX.app/Contents/MacOs/lyx rm /Applications/LyX.app/Contents/Resources/LyX/images/lyx.xpm
At them moment, better optimizing the code leeds to an instable installation.
And the removal of the XPM icons is needed for a proper MacOsX Icon.
To check a preconfigured binary use
lyx -version
Using the LANG / LANGUAGE environment settings you can choose the GUI language. Create
$HOME/.MacOSX/environment.plist with the following content.
You have to try it de_CH, de_CH.ISO-8859-1 odr de_CH.UTF-8 is right for your system.
Unfortunately some entries are missing. So add the following lines to the file /Application/LyX.app/Contents/Resources/locale/locale.alias
de de_DE.ISO-8859-1 de_DE de_DE.ISO-8859-1 de_CH de_CH.ISO-8859-1