2 Ronald Florence <ron@18james.com>
3 Modified by Bennett Helm <bennett.helm@fandm.edu> and by Anders
6 LyX/Mac is built from the LyX source, the GPL-licensed Trolltech
7 Qt/Mac library, and a custom application bundle.
9 You will need the MacOSX development tools. The procedure described
10 here builds LyX linked with a static Qt library. Also note that
11 building LyX/Mac requires gcc version 4.0 or higher. (You can check
12 your version by entering "gcc -v" in the Terminal; you can change
13 your gcc version to version 4.0, for example, by entering
14 "sudo gcc_select 4.0".)
19 Note: Only Qt/Mac is needed for building official LyX releases, and
20 so steps 2 and 3 can be skipped in these cases. Those wanting to
21 build developmental versions must have automake and gettext as
24 1. Qt/Mac Opensource Edition, version 4. This library is GPL-
25 licensed and can be downloaded from
26 <http://trolltech.com/developer/downloads/qt/mac/>. To compile it,
27 create a directory where you want to install QT4. In the following,
28 the full path to this directory is called /path/to/QT4
29 Decompress Qt/Mac in a convenient directory, cd to the top of the
30 Qt source hierarcy, and enter:
32 ./configure -static -no-exceptions -nomake examples -nomake tools -nomake demos -prefix /path/to/QT4
38 2. [Needed only for developmental builds:] automake, version 1.5
39 or higher (check with automake --version). Probably the easiest
40 way to get this is to use MacPorts (from http://www.macports.org/)
41 and install automake using
43 sudo port install automake
45 3. [Needed only for developmental builds:] gettext version >= 0.12
46 (check with gettext --version). If the installed version is
47 insufficient the easiest way to obtain a later version is to use
48 MacPorts (from http://www.macports.org/) and install gettext
51 sudo port install gettext
56 In what follows, /path/to/LyX.app is the location where you want LyX
57 to create the LyX binary. You should substitute something appropriate,
58 like: ~/Desktop/LyX.app. Also, substitute the appropriate path to
59 where you installed Qt for /path/to/QT4 (as above).
63 cd to the top of the LyX source hierarchy, and enter:
65 export LDFLAGS="-framework Carbon -framework OpenGL -framework AGL -framework QuickTime -lz -framework Cocoa"
66 ./configure --prefix=/path/to/LyX.app --with-version-suffix=-1.5 --without-x --with-frontend=qt4 --with-qt4-dir=/path/to/QT4 --with-included-gettext --enable-optimization=-Os
70 (Note that the --with-version-suffix=-1.5 option will result in LyX's
71 user's directory being located at ~/Library/Application Support/LyX-1.5.)
74 (b) Developmental Versions (svn checkouts)
76 Building LyX from developmental sources requires a few more steps.
77 Instead of the instructions above, do the following:
79 cd to the top of the LyX source hierarchy, and enter:
81 export LDFLAGS="-framework Carbon -framework OpenGL -framework AGL -framework QuickTime -lz -framework Cocoa"
83 ./configure --prefix=/path/to/LyX.app --with-version-suffix=-1.5 --without-x --with-frontend=qt4 --with-qt4-dir=/path/to/QT4 --with-included-gettext --enable-optimization=-Os --disable-stdlib-debug --disable-concept-checks
88 The information on this page is believed to be accurate, has been used
89 successfully on many systems and sites, and has benefited from the
90 comments and suggestions of many users. Due to the variations in
91 individual systems, this information is conveyed as is with no
94 For more information on LyX/Mac, see <http://wiki.lyx.org/Mac/Mac>.