emacs-devel
[Top][All Lists]
Advanced

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

Help with configuring emacs for Mac OS X (Carbon, not X11)


From: Jim T.
Subject: Help with configuring emacs for Mac OS X (Carbon, not X11)
Date: Wed, 28 Sep 2005 22:54:34 -0400
User-agent: Microsoft-Entourage/10.0.0.1309

I just subscribed to this mailing list, hoping that someone can help me w/ my configure problem under Mac OS X.

First off, I’m no C programmer, but I do know my way around Perl, Lisp, etc.  Additionally, I’ve used Mac OS and UNIX for years, so I’m comfortable with them, and with configuring/compiling large open-source packages like emacs, xemacs, and perl.

That said, I’m stuck w/ configuring the latest emacs that I pulled from CVS a couple of days ago.  :-(  The standard proceed that I’ve used in the past was:
   cvs -z3 -d:ext:address@hidden:/cvsroot/emacs co emacs
    cd emacs
    ./configure --enable-carbon-app --without-x
    make bootstrap
    sudo make install

But it’s failing now.  If I run the above configure command, at the end I get:
 What operating system and machine description files should Emacs use?
        `s/darwin.h' and `m/powermac.h'
  What compiler should emacs be built with?               gcc -I/sw/include -L/sw/lib -g -O2
  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?                    mac
  What toolkit should Emacs use?                          none
  Where do we find X Windows header files?                NONE
  Where do we find X Windows libraries?                   NONE
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   no
  Does Emacs use -ljpeg?                                  no
  Does Emacs use -ltiff?                                  no
  Does Emacs use -lungif?                                 no
  Does Emacs use -lpng?                                   no
  Does Emacs use X toolkit scroll bars?                   yes

It seemed odd to me that the Xpm/jpeg/tiff/ungif/png stuff didn’t get detected, but I decided to “make” and see what happens:
image.c:5396: warning: pointer targets in passing argument 1 of 'slurp_file' differ in signedness
image.c: In function 'png_load':
image.c:6244: error: 'kQTFileTypePNG' undeclared (first use in this function)
image.c: In function 'tiff_load':
image.c:7116: error: 'kQTFileTypeTIFF' undeclared (first use in this function)
image.c: In function 'gif_load':
image.c:7500: error: 'Movie' undeclared (first use in this function)
image.c:7500: error: parse error before "movie"
image.c:7502: error: 'Track' undeclared (first use in this function)
image.c:7502: error: parse error before "track"
image.c:7503: error: 'Media' undeclared (first use in this function)
image.c:7535: error: 'kQTFileTypeGIF' undeclared (first use in this function)
image.c:7547: error: 'movie' undeclared (first use in this function)
image.c:7570: error: 'kDataRefExtensionMacOSFileType' undeclared (first use in this function)
image.c:7583: error: 'HandleDataHandlerSubType' undeclared (first use in this function)
image.c:7608: error: 'track' undeclared (first use in this function)
image.c:7609: error: 'media' undeclared (first use in this function)

Well that failed miserably.  :-(  I tried my other method of compiling emacs (for X11, using “configure —without-carbon”), and all the graphic formats became enabled (except for ungif, due to a failure w/ EGifPutExtensionLast – is that a known problem?) and make worked fine.

But I wanted a Carbon app, not an X11 app, so I went back to the configure script to figure out why the graphics formats weren’t getting detected/configured for Carbon, and I kept coming across code like:
### Use -ljpeg if available, unless `--with-jpeg=no'.
HAVE_JPEG=no
if test "${HAVE_X11}" = "yes"; then
  if test "${with_jpeg}" != "no"; then

I read that first “if” as “if you don’t have X11, skip this whole JPEG section”.  How come the JPEG section and the other graphic sections are disabled in non-X11 configs?  I know this used to work for Carbon, but I don’t have the old configure script to figure out what changed.

Also, isn’t the whole EGifPutExtensionLast part of the ungif detection considered a bug?  I found some controversial discussions about it while Googling.  I have libungif 4.1.0final-3 installed (thru Fink), which seems to be pretty recent.

I know this was long, esp. for a first post.  But, I wanted to give as much info as possible and hope an emacs expert out there can help me figure out what’s wrong with this configure/compile.

Thanks!
    hypert

reply via email to

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