]> git.lyx.org Git - lyx.git/blob - INSTALL.MacOSX
remove obsolete references to saveSelection
[lyx.git] / INSTALL.MacOSX
1 Building LyX/Mac-1.5
2 Ronald Florence <ron@18james.com>
3 Modified by Bennett Helm <bennett.helm@fandm.edu> and by Anders
4 Ekberg <anek@mac.com>.
5
6 LyX/Mac is built from the LyX source, the GPL-licensed Trolltech
7 Qt/Mac library, and a custom application bundle.
8
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".)
15
16
17 PREREQUISITES
18
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
22 well.
23
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:
31
32      ./configure -static -no-exceptions -nomake examples -nomake tools -nomake demos -prefix /path/to/QT4
33      make
34      make install
35      cd /path/to/QT4/lib
36      rm *.la
37
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
42
43      sudo port install automake
44
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
49 using:
50
51      sudo port install gettext
52
53
54 BUILD INSTRUCTIONS
55
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).
60
61 (a) Official Releases
62
63 cd to the top of the LyX source hierarchy, and enter:
64
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
67      make
68      make install-strip
69
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.)
72
73
74 (b) Developmental Versions (svn checkouts)
75
76 Building LyX from developmental sources requires a few more steps.
77 Instead of the instructions above, do the following:
78
79 cd to the top of the LyX source hierarchy, and enter:
80
81      export LDFLAGS="-framework Carbon -framework OpenGL -framework AGL -framework QuickTime -lz -framework Cocoa"
82      ./autogen.sh
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
84      make
85      make install-strip
86
87
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
92 warranty of any kind.
93
94 For more information on LyX/Mac, see <http://wiki.lyx.org/Mac/Mac>.