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 18:13:29 +0800 Message-ID: <3A06B885-F245-4DAA-9150-C34521817DED@gmail.com> References: <999bfc30-b636-4a59-b8fa-1679b0e55be3@d2g2000pra.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237630455 32519 80.91.229.12 (21 Mar 2009 10:14:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Mar 2009 10:14:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: an0 Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 21 11:15:32 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 1LkyEh-0002t3-P1 for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2009 11:15:28 +0100 Original-Received: from localhost ([127.0.0.1]:42355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkyDL-0000AH-0M for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2009 06:14:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkyCy-0000AC-HR for help-gnu-emacs@gnu.org; Sat, 21 Mar 2009 06:13:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkyCu-0000A0-TA for help-gnu-emacs@gnu.org; Sat, 21 Mar 2009 06:13:40 -0400 Original-Received: from [199.232.76.173] (port=47058 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkyCu-00009x-PS for help-gnu-emacs@gnu.org; Sat, 21 Mar 2009 06:13:36 -0400 Original-Received: from ti-out-0910.google.com ([209.85.142.189]:2693) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LkyCu-0003Gs-6f for help-gnu-emacs@gnu.org; Sat, 21 Mar 2009 06:13:36 -0400 Original-Received: by ti-out-0910.google.com with SMTP id y8so828950tia.10 for ; Sat, 21 Mar 2009 03:13:34 -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:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=xefQQ34tywfr9lM/6voBCLqFbigqSlbNt31KIxL5QAc=; b=Wj4VNC82UJ/bEjE4mnjPHXO2k4aUog6NPBECcPnR3dH0xdB3y9Ka9y3jnLa+0qjHj9 HyaIGEhT16wTTAQZdeEkD4M6jo/1n9NL8b8EdMRN5oh04eLqgtzqbhCo7d5k5CmzYLim RDGiGUstKXjzi+NcdNaUz667w1+KjrYPi+FzU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=PcIqyDqKLrjrf+204NfVraoDY2lwYlBTm1PkgXQwa1zhAl4eaeDeRK9JtJ6vrj3Ogc A2YlvltG/X6G4G6ELxcbd64KQodapdw+WKjfAXr5EQ1zxVpRrL9UJtANbYwi121SOerE OcRAIuVE0BQ1Ruy8QNxThvB4a9CJWs3lOj+K8= Original-Received: by 10.110.73.19 with SMTP id v19mr1609603tia.1.1237630413159; Sat, 21 Mar 2009 03:13:33 -0700 (PDT) Original-Received: from ?10.0.0.3? ([221.218.204.6]) by mx.google.com with ESMTPS id d7sm221592tib.22.2009.03.21.03.13.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Mar 2009 03:13:32 -0700 (PDT) In-Reply-To: <999bfc30-b636-4a59-b8fa-1679b0e55be3@d2g2000pra.googlegroups.com> 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:63158 Archived-At: I'm an idiot! 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. However, I'm not clear what's going on behind the scene, or what are the conditions of other libs. On Mar 21, 2009, at 11:20 AM, 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. A ghost writing code with soul @ http://an00na.blogspot.com/.