help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to compile Emacs on Mac OS X with extra libs from MacPorts


From: Mike Mattie
Subject: Re: How to compile Emacs on Mac OS X with extra libs from MacPorts
Date: Sat, 21 Mar 2009 10:04:38 -0700
User-agent: Mutt/1.5.16 (2007-06-09)

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: configure-emacs.sh
Description: Bourne shell script

Attachment: pgpaxO190apOw.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]