]> git.lyx.org Git - lyx.git/blob - INSTALL.MacOSX
0aa370cf67b6c35ff54c106d3146ed152b3599be
[lyx.git] / INSTALL.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. The LyX/Mac application bundle skeleton (LyX.app) can be found in 
24 development/MacOSX. This bundle should be moved to some convenient
25 place. (These instructions assume it is placed in /Applications and
26 named LyX.app.)
27
28 3. Using the same terminal session you used to build the Qt library,
29 cd to the top of the LyX source hierarchy, and:
30
31      export LDFLAGS="-framework Carbon -framework OpenGL -framework AGL -framework QuickTime -lz"
32      ./configure --with-frontend=qt --without-x --prefix=/Applications/LyX.app --enable-maintainer-mode --with-included-gettext --enable-optimization=-Os --disable-concept-checks
33      make
34      make install
35      rm /Applications/LyX.app/Contents/Resources/LyX/images/lyx.xpm
36
37 [Note that removing lyx.xpm -- the point of the last line above -- is
38 necessary for the Mac OS X native icon files included in the LyX/Mac 
39 skeleton to be used.]
40
41 The information on this page is believed to be accurate, has been used
42 successfully on many systems and sites, and has benefited from the
43 comments and suggestions of many users. Due to the variations in
44 individual systems, this information is conveyed as is with no
45 warranty of any kind.
46
47 For more information on LyX/Mac, see <http://wiki.lyx.org/pmwiki.php/LyX/Mac>.