| 1 |
Building LyX/Mac-1.4 |
|---|
| 2 |
Ronald Florence <ron@18james.com> |
|---|
| 3 |
Modified by Bennett Helm <bennett.helm@fandm.edu> and 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. If you are using the |
|---|
| 11 |
tcsh shell, change the "export VAR=value" statements to |
|---|
| 12 |
"setenv VAR value". |
|---|
| 13 |
|
|---|
| 14 |
PREREQUISITES |
|---|
| 15 |
|
|---|
| 16 |
1. Qt/Mac Free Edition, version 3.3 (latest version). |
|---|
| 17 |
This library is GPL-licensed and can be downloaded from |
|---|
| 18 |
<http://www.trolltech.com/download/qt/mac.html>. You will need to |
|---|
| 19 |
compile it yourself (as described below). |
|---|
| 20 |
|
|---|
| 21 |
2. automake, version 1.9 or higher (check with automake --version). |
|---|
| 22 |
Probably the easiest way to get this is to use DarwinPorts (from |
|---|
| 23 |
<http://darwinports.opendarwin.org/getdp/>) and install automake |
|---|
| 24 |
using |
|---|
| 25 |
sudo port install automake |
|---|
| 26 |
|
|---|
| 27 |
3. gettext version >= 0.12 (check with gettext --version) |
|---|
| 28 |
If the installed version is insufficient the |
|---|
| 29 |
easiest way to obtain a later version is to get DarwinPorts |
|---|
| 30 |
(from http://darwinports.opendarwin.org/getdp/) and install gettext |
|---|
| 31 |
using |
|---|
| 32 |
sudo port install gettext |
|---|
| 33 |
|
|---|
| 34 |
BUILD INSTRUCTIONS |
|---|
| 35 |
|
|---|
| 36 |
Note that building LyX/Mac requires gcc version 3.3 or higher. (You |
|---|
| 37 |
can check your version by entering "gcc -v" in the Terminal; you |
|---|
| 38 |
can change your gcc version to version 3.3, for example, by entering |
|---|
| 39 |
"sudo gcc_select 3.3".) |
|---|
| 40 |
|
|---|
| 41 |
1. Decompress Qt/Mac in a convenient directory. In the following, |
|---|
| 42 |
the full path to this directory is called /path/to/QT3 |
|---|
| 43 |
cd to the top of the Qt source hierarcy, and: |
|---|
| 44 |
|
|---|
| 45 |
./configure -static -no-exceptions -lresolv [for OS X 10.2, use "./configure -static -no-exceptions"] |
|---|
| 46 |
make |
|---|
| 47 |
rm lib/libqt.la |
|---|
| 48 |
|
|---|
| 49 |
2. The LyX/Mac application bundle skeleton (LyX.app) can be found in |
|---|
| 50 |
the LyX source hierarchy at development/MacOSX. Copy this bundle to a |
|---|
| 51 |
directory. In the following, the full path to this directory is called |
|---|
| 52 |
/path/to/LyX.app. (The default settings assume that this path is |
|---|
| 53 |
/Applications/LyX.app.) |
|---|
| 54 |
|
|---|
| 55 |
3. cd to the top of the LyX source hierarchy, and: |
|---|
| 56 |
|
|---|
| 57 |
export LDFLAGS="-framework Carbon -framework OpenGL -framework AGL -framework QuickTime -lz" |
|---|
| 58 |
./autogen.sh |
|---|
| 59 |
|
|---|
| 60 |
[Note: If you have automake version 1.10 or higher, you will need to |
|---|
| 61 |
comment out the explicit check for version 1.9 (or downgrade). Do this |
|---|
| 62 |
by opening autogen.sh and comment out as follows: |
|---|
| 63 |
#case $automake_version in |
|---|
| 64 |
# *' '1.9*) |
|---|
| 65 |
# ;; |
|---|
| 66 |
# *) |
|---|
| 67 |
# |
|---|
| 68 |
# echo "This automake version is not supported by LyX." |
|---|
| 69 |
# echo "LyX only supports automake 1.9." |
|---|
| 70 |
# exit 1 |
|---|
| 71 |
# ;; |
|---|
| 72 |
#esac |
|---|
| 73 |
] |
|---|
| 74 |
|
|---|
| 75 |
Then do |
|---|
| 76 |
|
|---|
| 77 |
./configure --with-frontend=qt --without-x --prefix=/path/to/LyX.app --disable-concept-checks --with-qt-dir=/path/to/QT3 --enable-optimization=-Os --disable-assertions --disable-stdlib-debug --with-included-gettext --with-version-suffix=-1.4 |
|---|
| 78 |
make |
|---|
| 79 |
make install |
|---|
| 80 |
|
|---|
| 81 |
(Note that the --with-version-suffix=-1.4 option will result in LyX's |
|---|
| 82 |
user's directory being located at ~/Library/Application Support/LyX-1.4.) |
|---|
| 83 |
|
|---|
| 84 |
The information on this page is believed to be accurate, has been used |
|---|
| 85 |
successfully on many systems and sites, and has benefited from the |
|---|
| 86 |
comments and suggestions of many users. Due to the variations in |
|---|
| 87 |
individual systems, this information is conveyed as is with no |
|---|
| 88 |
warranty of any kind. |
|---|
| 89 |
|
|---|
| 90 |
For more information on LyX/Mac, see <http://wiki.lyx.org/Mac/Mac>. |
|---|