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