4 Ronald Florence <ron@18james.com>
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
10 described here builds LyX linked with a static Qt library. If you
11 are using the tcsh shell, change the "export VAR=value" statements
12 to "setenv VAR value".
14 1. Download the GPL-licensed Qt/Mac library source code from
15 <ftp://ftp.lyx.org/pub/lyx/contrib/qt-mac-free-3.1.2.sit>,
16 untar in a convenient directory, cd to the top of the Qt source
20 patch -p0 < LYX-SOURCE-DIRECTORY/development/MacOSX/qt.patch
22 ./configure -static [for Panther, use "./configure -static -lresolv"]
26 Adendum, 19 May 2004. From comments by Jean-Marc
27 There now appears to be no need for this patch.
29 a. The additional line
30 +{ '^', MAP_KEY(Qt::Key_AsciiCircum) },
31 is fixed already in Qt/Mac 3.3.x.
33 b. The line commenting out 'ControlRef' to prevent a name
34 clash is also fixed in recent versions of the Qt library.
36 These instructions are still there in README.OSX because the 1.3.x
37 port relies on qt 3.1.x (because of other problems, I believe).
39 For the 1.4.x port, Bennett Helm aims at using the latest Qt version
40 with the current gcc 3 compiler.
42 2. Download the LyX/Mac skeleton from
43 <ftp://ftp.lyx.org/pub/lyx/stable/lyx-mac-1.3.4-skeleton.tar.gz>
44 and unpack it in /Applications. Change the references to
45 "1.3.4" in /Applications/LyX.app/Contents/Info.plist to
48 3. Using the same terminal session you used to build the Qt
49 library, cd to the top of the LyX source hierarchy, and:
51 export LDFLAGS="-framework Carbon -framework OpenGL -framework AGL -framework QuickTime -lz"
52 ./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
55 rm /Applications/LyX.app/Contents/Resources/LyX/images/lyx.xpm
58 The information on this page is believed to be accurate, has been
59 used successfully on many systems and sites, and has benefited from
60 the comments and suggestions of many users. Due to the variations
61 in individual systems, this information is conveyed as is with no