On Tue, Sep 4, 2012 at 9:37 AM, Uwe Brauer <oub(a)mat.ucm.es> wrote:
[...]
The other possibility would be to compile 21.5.X for Mac
(using X11).
I have never done this and have two questions:
- The required libraries. Debian has the following
nice command:
apt-get build-dep xemacs21
Regarding your question about 21.5 on OS X, here are the libraries for
Lion or Mountain Lion for 21.5
/Users/royar/usr/local/bin/xemacs:
/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0,
current version 5.4.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current
version 1.2.5)
/opt/X11/lib/libpng15.15.dylib (compatibility version 27.0.0,
current version 27.0.0)
/opt/X11/lib/libXpm.4.dylib (compatibility version 16.0.0,
current version 16.0.0)
/opt/X11/lib/libXft.2.dylib (compatibility version 6.0.0,
current version 6.1.0)
/opt/X11/lib/libXrender.1.dylib (compatibility version 5.0.0,
current version 5.0.0)
/opt/X11/lib/libXt.6.dylib (compatibility version 7.0.0,
current version 7.0.0)
/opt/X11/lib/libXext.6.dylib (compatibility version 11.0.0,
current version 11.0.0)
/opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0,
current version 10.0.0)
/opt/X11/lib/libSM.6.dylib (compatibility version 7.0.0,
current version 7.1.0)
/opt/X11/lib/libICE.6.dylib (compatibility version 10.0.0,
current version 10.0.0)
/opt/X11/lib/libfontconfig.1.dylib (compatibility version
7.0.0, current version 7.0.0)
/opt/local/lib/libtiff.3.dylib (compatibility version 13.0.0,
current version 13.5.0)
/opt/local/lib/libjpeg.8.dylib (compatibility version 13.0.0,
current version 13.0.0)
/opt/local/lib/libesd.0.dylib (compatibility version 3.0.0,
current version 3.39.0)
/opt/X11/lib/libXaw3d.8.dylib (compatibility version 9.0.0,
current version 9.0.0)
/opt/X11/lib/libXmu.6.dylib (compatibility version 9.0.0,
current version 9.0.0)
/opt/local/lib/libgmp.10.dylib (compatibility version 11.0.0,
current version 11.4.0)
/opt/local/lib/libgdbm.4.dylib (compatibility version 5.0.0,
current version 5.0.0)
/opt/local/lib/libintl.8.dylib (compatibility version 10.0.0,
current version 10.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 169.3.0)
I think you will need /opt/local/lib/libintl.8.dylib (which I have
from Macports). The other /opt/local/lib graphics libraries are also
probably needed. The esd sound library, the big-num library libgmp,
and libgdbm may not be needed for your configuration. You also need to
have XQuartz installed which is easiest if you get it directly from
macosforge. The /opt/X11/lib files are from the macosforge installed
XQuartz. That is the current version of X11's libraries provided by
Apple as third-party installation. You can also get them from
macports, but I find the macosforge DMG much more convenient.
Does port provide a similar functionality?
1. Install XQuartz
2. Install the most recent XCode for your OS, including the
command-line tools. (needed to install and run macports port)
3. Install macports
4. Issue the command
port selfupdate
(to get the latest port files)
5. Issue the command
port install tiff jpeg gettext
(for the graphics and libintl)
port is likely to install a number of prerequisites including some
that may be needed only to build.
To compile XEmacs, you may need to tell cpp to look in the correct
include directories. I use the following environment variables:
export CPPFLAGS="-I/opt/local/include -I/opt/X11/include
-I/opt/X11/include/freetype2"
export LDFLAGS='-L/usr/lib -lncurses -lz -L/opt/X11/lib -lpng -lXpm
-lXft -lXrender -lXt -lXext -lX11 -lSM -lICE -lfontconfig
-L/opt/local/lib -ltiff -ljpeg -lesd'
Here is my configure command:
./configure --with-mule --with-gcc \
--with-scrollbars=lucid --with-widgets=athena --with-athena=3d
--with-dialogs=athena \
--prefix=${ParentPath} --with-png --with-jpeg --with-tiff \
--with-xim=no --enable-sound=none,esd --disable-xfs \
--with-compiler=gcc --with-pdump \
--disable-kkcc --without-ipv6-cname --without-ldap --without-postgresql \
--x-includes=/opt/X11/include --x-libraries=/opt/X11/lib \
--with-xft=emacs,gauges,tabs --with-union-type --with-bignum=gmp \
--without-error-checking --with-dynamic --enable-dump-in-exec
With Mountain Lion, I had to add
export CC=/usr/bin/gcc so as not to invoke clang
BTW $ParentPath is /Users/royar/usr/local
I hope this helps.
--
Robert Delius Royar
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta