]> git.lyx.org Git - lyx.git/blob - README.MacOSX
handle framewidths != 1
[lyx.git] / README.MacOSX
1
2                            Building LyX/Mac-1.4.0
3
4                   Ronald Florence <ron@18james.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
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".
13
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
17        hierarcy, and:
18
19      export QTDIR=`pwd` 
20      patch -p0 < LYX-SOURCE-DIRECTORY/development/MacOSX/qt.patch
21      sudo gcc_select 3.3 
22      ./configure -static   [for Panther, use "./configure -static -lresolv"]
23      make 
24      rm lib/libqt.la
25
26        Adendum, 19 May 2004. From comments by Jean-Marc
27        There now appears to be no need for this patch.
28
29        a. The additional line
30        +{ '^', MAP_KEY(Qt::Key_AsciiCircum) },
31        is fixed already in Qt/Mac 3.3.x.
32
33        b. The line commenting out 'ControlRef' to prevent a name
34        clash is also fixed in recent versions of the Qt library.
35
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).
38
39        For the 1.4.x port, Bennett Helm aims at using the latest Qt version
40        with the current gcc 3 compiler.
41
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
46        "1.4.0".
47  
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:
50
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
53      make
54      make install
55      rm /Applications/LyX.app/Contents/Resources/LyX/images/lyx.xpm
56
57
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
62    warranty of any kind.