From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: an00na@gmail.com Newsgroups: gmane.emacs.help Subject: Re: How to compile Emacs on Mac OS X with extra libs from MacPorts Date: Sat, 21 Mar 2009 19:14:04 +0800 Message-ID: References: <999bfc30-b636-4a59-b8fa-1679b0e55be3@d2g2000pra.googlegroups.com> <3A06B885-F245-4DAA-9150-C34521817DED@gmail.com> <2E1ED201-E554-41ED-81A8-9D86CFE72338@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/alternative; boundary=Apple-Mail-7--518676520 X-Trace: ger.gmane.org 1237634099 9187 80.91.229.12 (21 Mar 2009 11:14:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Mar 2009 11:14:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 21 12:16:15 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LkzBO-0001aV-0b for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2009 12:16:10 +0100 Original-Received: from localhost ([127.0.0.1]:60328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkzA0-0001MO-Nr for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2009 07:14:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lkz9e-0001MJ-BM for help-gnu-emacs@gnu.org; Sat, 21 Mar 2009 07:14:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lkz9Z-0001M7-PE for help-gnu-emacs@gnu.org; Sat, 21 Mar 2009 07:14:17 -0400 Original-Received: from [199.232.76.173] (port=36098 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lkz9Z-0001M4-JP for help-gnu-emacs@gnu.org; Sat, 21 Mar 2009 07:14:13 -0400 Original-Received: from ti-out-0910.google.com ([209.85.142.187]:7900) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lkz9Y-0002aM-Mt for help-gnu-emacs@gnu.org; Sat, 21 Mar 2009 07:14:13 -0400 Original-Received: by ti-out-0910.google.com with SMTP id y8so840524tia.10 for ; Sat, 21 Mar 2009 04:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=E2CvzOoZtcNfWVVsPYks4R4vZTaW0es0+IMxuTn2xqg=; b=LnV+l7/+nZXi+QiqoK6tnE2bs1lI5Zflfae3RYdJpXJp1ShEE8P8jTTK65jJGaP4vo kCj1aTDKlnLCM6mM2Ks6nrIp/zlqJkEqiVN4Czp+iHE551DH7JZ7H0t6LXVSNzaxBtMG o3SF77ZDy9vYR/3LVOwn/eaLJuhh4+Q7A1adU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=hqoQHXk70XyUxJcssqfYyCt5hJHae78DPVjrXuQDlUJX+PSZwkq2bafwkOiQMycFd5 JMIlf/yL8yTdssxHl97MnVT8lJk9ed+h6hRfVK6TvEnBrgpilVzyREM4Qets2tod2re0 Ls168hbedfvcNkBMXgG3I/y88IU4tb4+Ri18k= Original-Received: by 10.110.52.5 with SMTP id z5mr6640151tiz.11.1237634049313; Sat, 21 Mar 2009 04:14:09 -0700 (PDT) Original-Received: from ?10.0.0.3? ([221.218.204.6]) by mx.google.com with ESMTPS id y5sm335872tia.37.2009.03.21.04.14.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Mar 2009 04:14:07 -0700 (PDT) In-Reply-To: <2E1ED201-E554-41ED-81A8-9D86CFE72338@Web.DE> X-Mailer: Apple Mail (2.930.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63160 Archived-At: --Apple-Mail-7--518676520 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Thanks for so many useful hints. But as I've noticed, you don't configure with `--with-ns'(it is what =20 the nextstep/INSTALL tells me to do), so what's the point, and what =20 are the differences between the two(--with-ns and --without-ns)? On Mar 21, 2009, at 6:41 PM, Peter Dyballa wrote: > > Am 21.03.2009 um 11:13 schrieb an00na: > >> The Emacs that I've so compiled supports jpeg and png out of box, =20 >> even though the configure complaints that Emacs is not using -ljpeg =20= >> or -lpng. > > Right! This is support from the OS (with Mail or Preview you can see =20= > PNG, JPEG, JPEG-2000, TIFF, GIF ...), and so it's not listed. Invoke =20= > for example > > otool -L /nextstep/Emacs.app/Contents/MacOS/Emacs =20 > #(with optional | sort) > > It gives for me: > > /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit =20= > (compatibility version 45.0.0, current version 824.48.0) > /opt/local/lib/libcairo.2.dylib (compatibility version = 10803.0.0, =20 > current version 10803.6.0) > /opt/local/lib/libdbus-1.3.dylib (compatibility version 8.0.0, =20= > current version 8.0.0) > /opt/local/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version =20= > 1401.0.0, current version 1401.7.0) > /opt/local/lib/libglib-2.0.0.dylib (compatibility version = 1801.0.0, =20 > current version 1801.3.0) > /opt/local/lib/libgmodule-2.0.0.dylib (compatibility version =20 > 1801.0.0, current version 1801.3.0) > /opt/local/lib/libgobject-2.0.0.dylib (compatibility version =20 > 1801.0.0, current version 1801.3.0) > /opt/local/lib/libintl.8.dylib (compatibility version 9.0.0, =20 > current version 9.2.0) > /opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, =20= > current version 5.0.0) > /opt/local/lib/librsvg-2.2.dylib (compatibility version 25.0.0, =20= > current version 25.3.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current = =20 > version 88.1.12) > /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current =20= > version 1.0.0) > > You can also try to view graphics files of different types to find =20 > out what already is supported =96 or check the variable image-types =20= > (svg png gif tiff jpeg xpm xbm pbm). In GNU Emacs 23 you're able to =20= > see a lot of formats displayed directly. If you see some binary =20 > garbage in the buffer, then C-c C-c will convert it to a picture =20 > (watch both times the mode-line) =96 and back! > >> However, I'm not clear what's going on behind the scene, or what =20 >> are the conditions of other libs. > > > You could check the file config.log =96 though the configure run much =20= > too often creates only a useless castrated version of a few hundred =20= > bytes length (could be a 'make clean' or 'make distclean' cancels =20 > this "feature" for the next configure). Another option is build =20 > Emacs in a *compilation* buffer: > > M-x compile RET > > delete the text and insert the configure command, then change it to =20= > contain: > > ... sh -x ./configure ... > > This will produce a few thousand lines of output and show you when =20 > and why configure fails to find or determine something. Save the =20 > buffer (best also close it, because a subsequent compilation can =20 > overwrite it), then continue to work, i.e., investigate the errors =20 > by newly opening the saved file (can take minutes of fontification) =20= > and/or let Emacs build a new version. > > -- > Greetings > > Pete > > Got Mole problems? > Call Avogadro 6.02 x 10^23 > > Welcome to drink some Cocoa, play with my Python pet, and sing Lisp =20 songs, together with a nut, @ http://an00na.blogspot.com/. --Apple-Mail-7--518676520 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Thanks for so many useful = hints.
But as I've noticed, you don't configure with `--with-ns'(it = is what the nextstep/INSTALL tells me to do), so what's the point, = and what are the differences between the two(--with-ns and = --without-ns)?

On Mar 21, 2009, at = 6:41 PM, Peter Dyballa wrote:


Am = 21.03.2009 um 11:13 schrieb an00na:

The = Emacs that I've so compiled supports jpeg and png out of box, even = though the configure complaints that Emacs is not using -ljpeg or = -lpng.

Right! This is support from the OS (with Mail = or Preview you can see PNG, JPEG, JPEG-2000, TIFF, GIF ...), and so it's = not listed. Invoke for example

otool -L <path to = sources>/nextstep/Emacs.app/Contents/MacOS/Emacs #(with optional | = sort)

It gives for me:

= /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit = (compatibility version 45.0.0, current version 824.48.0)
= /opt/local/lib/libcairo.2.dylib (compatibility version 10803.0.0, = current version 10803.6.0)
/opt/local/lib/libdbus-1.3.dylib = (compatibility version 8.0.0, current version 8.0.0)
= /opt/local/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version = 1401.0.0, current version 1401.7.0)
= /opt/local/lib/libglib-2.0.0.dylib (compatibility version = 1801.0.0, current version 1801.3.0)
= /opt/local/lib/libgmodule-2.0.0.dylib (compatibility version = 1801.0.0, current version 1801.3.0)
= /opt/local/lib/libgobject-2.0.0.dylib (compatibility version = 1801.0.0, current version 1801.3.0)
/opt/local/lib/libintl.8.dylib = (compatibility version 9.0.0, current version 9.2.0)
= /opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, = current version 5.0.0)
/opt/local/lib/librsvg-2.2.dylib = (compatibility version 25.0.0, current version 25.3.0)
= /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current = version 88.1.12)
/usr/lib/libgcc_s.1.dylib = (compatibility version 1.0.0, current version 1.0.0)

You can also = try to view graphics files of different types to find out what already = is supported =96 or check the variable image-types (svg png gif tiff = jpeg xpm xbm pbm). In GNU Emacs 23 you're able to see a lot of formats = displayed directly.  If you see some binary garbage in the buffer, = then C-c C-c will convert it to a picture (watch both times the = mode-line) =96 and back!

However, I'm = not clear what's going on behind the scene, or what are the conditions = of other libs.


You could check the file = config.log =96 though the configure run much too often creates only a = useless castrated version of a few hundred bytes length (could be a = 'make clean' or 'make distclean' cancels this "feature" for the next = configure). Another option is build Emacs in a *compilation* = buffer:

= M-x compile RET

delete the text and insert the configure = command, then change it to contain:

... sh -x ./configure = ...

This will produce a few thousand lines of output and show you = when and why configure fails to find or determine something. Save the = buffer (best also close it, because a subsequent compilation can = overwrite it), then continue to work, i.e., investigate the errors by = newly opening the saved file (can take minutes of fontification) and/or = let Emacs build a new version.

--
Greetings

=  Pete

Got Mole problems?
Call Avogadro 6.02 x = 10^23



Welcome to drink some Cocoa, play with my Python pet, and = sing Lisp songs, together with a nut, @ http://an00na.blogspot.com/.

= --Apple-Mail-7--518676520--