unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mike Mattie <codermattie@gmail.com>
To: an0 <an00na@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to compile Emacs on Mac OS X with extra libs from MacPorts
Date: Sat, 21 Mar 2009 10:04:38 -0700	[thread overview]
Message-ID: <20090321170436.GA6362@reforged> (raw)
In-Reply-To: <999bfc30-b636-4a59-b8fa-1679b0e55be3@d2g2000pra.googlegroups.com>


[-- Attachment #1.1: Type: text/plain, Size: 2807 bytes --]

Here is my solution. ymmv.

It assumes that emacs cvs/tarball is in a subdir "emacs".

As far as getting Emacs to pick up the X11 headers I have never been able to build
against a pure Apple X11. To get all the right headers I usually install gtk
via macports, which fails, but pulls just about all the X headers in the process.

It's ugly, but it can run when I go to bed, and in the morning building Emacs
actually works.

I hope it helps a bit.

On Fri, Mar 20, 2009 at 08:20:27PM -0700, an0 wrote:
> I've been using Emacs 23 cvs on Mac OS X, but never succeeded in
> compiling it with extra libraries such as jpeg and png which are
> installed via MacPorts(MacPorts itself is installed under /opt/
> local/).
> 
> Here is how I configure Emacs before compiling:
> PKG_CONFIG_PATH=/opt/local/lib/pkgconfig/ CPPFLAGS+='-I/opt/local/
> include' LDFLAGS+='-L/opt/local/lib' ./configure --with-ns --with-jpeg
> --with-png
> 
> And here is the summary of configure output:
> What operating system and machine description files should Emacs use?
>         `s/darwin.h' and `m/intel386.h'
>   What compiler should emacs be built with?               gcc -I/opt/
> local/include
>   Should Emacs use the GNU version of malloc?             no
>     (The GNU allocators don't work with this system configuration.)
>   Should Emacs use a relocating allocator for buffers?    no
>   Should Emacs use mmap(2) for buffer allocation?         no
>   What window system should Emacs use?                    nextstep
>   What toolkit should Emacs use?                          none
>   Where do we find X Windows header files?                /usr/X11/
> include
>   Where do we find X Windows libraries?                   /usr/X11/lib
>   Does Emacs use -lXaw3d?                                 no
>   Does Emacs use -lXpm?                                   no
>   Does Emacs use -ljpeg?                                  no
>   Does Emacs use -ltiff?                                  no
>   Does Emacs use a gif library?                           no
>   Does Emacs use -lpng?                                   no
>   Does Emacs use -lrsvg-2?                                no
>   Does Emacs use -lgpm?                                   no
>   Does Emacs use -ldbus?                                  no
>   Does Emacs use -lfreetype?                              no
>   Does Emacs use -lm17n-flt?                              no
>   Does Emacs use -lotf?                                   no
>   Does Emacs use -lxft?                                   no
>   Does Emacs use toolkit scroll bars?                     yes
> 
> Have anyone made it on Mac OS X with MacPorts? Any hints are
> appreciated.

-- 
GnuPG Key: B9012279 is available from HKP server pgp.mit.edu

[-- Attachment #1.2: configure-emacs.sh --]
[-- Type: application/x-sh, Size: 1252 bytes --]

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  parent reply	other threads:[~2009-03-21 17:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-21  3:20 How to compile Emacs on Mac OS X with extra libs from MacPorts an0
2009-03-21  9:34 ` Peter Dyballa
2009-03-21  9:56   ` an00na
2009-03-21 12:34   ` Nikolaj Schumacher
2009-03-21 13:11     ` Peter Dyballa
2009-03-21 10:13 ` an00na
2009-03-21 10:41   ` Peter Dyballa
2009-03-21 11:14     ` an00na
2009-03-21 11:24       ` Peter Dyballa
2009-03-21 12:19         ` an00na
2009-03-21 17:04 ` Mike Mattie [this message]
2009-03-21 17:47   ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090321170436.GA6362@reforged \
    --to=codermattie@gmail.com \
    --cc=an00na@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).