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:[EMAIL PROTECTED]:/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?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:
`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
image.c:5396: warning: pointer targets in passing argument 1 of 'slurp_file' differ in signednessWell 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.
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)
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'.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.
HAVE_JPEG=no
if test "${HAVE_X11}" = "yes"; then
if test "${with_jpeg}" != "no"; then
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
_______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel