]> git.lyx.org Git - lyx.git/blob - README.MacOSX
fix inInset crash
[lyx.git] / README.MacOSX
1 Building LyX/Mac-1.4.0
2 Ronald Florence <ron@18james.com>
3 Modified by Bennett Helm <bennett.helm@fandm.edu>
4
5 LyX/Mac is built from the LyX source, the GPL-licensed Trolltech
6 Qt/Mac library, and a custom application bundle.
7
8 You will need the MacOSX development tools. The procedure described
9 here builds LyX linked with a static Qt library. If you are using the
10 tcsh shell, change the "export VAR=value" statements to
11 "setenv VAR value".
12
13 1. Download the GPL-licensed Qt/Mac Free Edition library source code
14 from <http://www.trolltech.com/download/qt/mac.html>, untar in a
15 convenient directory, cd to the top of the Qt source hierarcy, and:
16
17      export QTDIR=`pwd`
18      sudo gcc_select 3.3
19      ./configure -static -no-exceptions   [for Panther, use "./configure -static -no-exceptions -lresolv"]
20      make
21      rm lib/libqt.la
22
23 2. Download the LyX/Mac skeleton from
24 <ftp://ftp.lyx.org/pub/lyx/stable/lyx-mac-1.3.5-skeleton.tar.gz> and
25 unpack it in /Applications. Change the references to "1.4.0" in
26 /Applications/LyX.app/Contents/Info.plist to reflect the current
27 version number.
28
29 3. Using the same terminal session you used to build the Qt library,
30 cd to the top of the LyX source hierarchy, and:
31
32      export LDFLAGS="-framework Carbon -framework OpenGL -framework AGL -framework QuickTime -lz"
33      ./configure --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
34
35      make
36      make install
37      rm /Applications/LyX.app/Contents/Resources/LyX/images/lyx.xpm
38
39 [Note that removing lyx.xpm -- the point of the last line above -- is
40 necessary to use the Mac OS X native icon files included in the
41 LyX/Mac skeleton.]
42
43 The information on this page is believed to be accurate, has been used
44 successfully on many systems and sites, and has benefited from the
45 comments and suggestions of many users. Due to the variations in
46 individual systems, this information is conveyed as is with no
47 warranty of any kind.
48
49 For more information on LyX/Mac, see <http://wiki.lyx.org/pmwiki.php/LyX/Mac>.