From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: CHENG Gao Newsgroups: gmane.emacs.devel Subject: Re: [cyd@stupidchicken.com: Emacs pretest 22.0.990] Date: Sat, 19 May 2007 14:09:31 +0800 Organization: cyberhut.org Message-ID: References: <464DD93E.23912.3F7DA9@john.assen.demon.co.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1179555015 11291 80.91.229.12 (19 May 2007 06:10:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 May 2007 06:10:15 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 19 08:10:14 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HpI8q-0002m6-FJ for ged-emacs-devel@m.gmane.org; Sat, 19 May 2007 08:10:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HpI8o-0000RB-SJ for ged-emacs-devel@m.gmane.org; Sat, 19 May 2007 02:10:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HpI8l-0000R4-0M for emacs-devel@gnu.org; Sat, 19 May 2007 02:10:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HpI8j-0000Qs-El for emacs-devel@gnu.org; Sat, 19 May 2007 02:10:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HpI8j-0000Qp-Al for emacs-devel@gnu.org; Sat, 19 May 2007 02:10:05 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HpI8h-0000rl-M2 for emacs-devel@gnu.org; Sat, 19 May 2007 02:10:04 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HpI8W-00080j-Tb for emacs-devel@gnu.org; Sat, 19 May 2007 08:09:52 +0200 Original-Received: from 222.94.199.145 ([222.94.199.145]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 May 2007 08:09:52 +0200 Original-Received: from chenggao by 222.94.199.145 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 May 2007 08:09:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 114 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 222.94.199.145 User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (darwin) Cancel-Lock: sha1:BOlNINeLuYs37/snkdqe1Y7zR4A= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71366 Archived-At: Three years ago when I was still using Windoze I wrote a step by step article for my own reference purpose. I post it here and wish it's of some help to you and others. Since I have abandoned Windoze for fairly long time, files refered in the article must have been updated. Since I am not a natice English speaker, you may find many grammatical and wording errors. Please forgive me for this. Below is the article: How to build CVS Emacs with full image support using MinGW Author: CHENG Gao Originally written on August 1, 2004 in Chinese Translated on October 24, 2004 to English 1. Install Cygwin Go to http://www.cygwin.com, and download setup.exe, and setup a basic cygwin environment. 2. Get Emacs cvs code I use cygwin cvs to get Emacs code. $export CVS_RSH=”ssh” $cvs -z3 -d:ext:anoncvs@savannah.gnu.org:/cvsroot/emacs co emacs 3. Install MinGW Go to http://www.mingw.org (or http://sourceforge.net/projects/mingw if you can not access former URL like me). Download files MinGW-3.1.0-1.exe & mingw32-make-3.80.0-3.exe。 Run MinGW-3.1.0-1.exe and install to C:/MinGW. Run mingw32-make-3.80.0-3.exe and install to C:/MinGW. Browse to C:/MinGW/bin, and rm or copy mingw32-make.exe to make.exe. (If you like to use new softwares like me, you can download latest files gcc-core-3.4.2-20040916-1.tar.gz, mingw-runtime-3.5.tar.gz and w32api-3.1.tar.gz, and uncompress them to C:/MinGW to overwrite old files. Skipping this step wont effect building.) 4. Install image libs All image libs are from GnuWin32 project. Please visit http://gnuwin32.sf.net/ . Direct link to these files is http://sourceforge.net/project/showfiles.php?group_id=23617. 4.1 jpeg support lib Download jpeg-6b-3.exe and install to C:/MinGW. 4.2 gif support lib Download libungif-4.1.0b1-bin.zip & libungif-4.1.0b1-src.zip, and unzip them to C:/MinGW. Then copy C:/MinGW/src/lib/gif_lib.h to C:/MinGW/include/. 4.3 tiff support lib Download tiff-win32-3.6.1-2.exe and install to C:/MinGW. 4.4. xpm support lib Download xpm-nox-4.2.0-bin.exe & xpm-nox-4.2.0-src.exe, and install them to C:/MinGW. Then copy C:/MinGW/src/xom-nox-4.2.0/lib/simx.h to C:/MinGW/include/. Create a directory X11 under C:/MinGW/include/, and copy C:/MinGW/src/xom-nox-4.2.0/lib/xpm.h to C:/MinGW/include/X11/. 4.5. png support lib Download zlib-1.2.1-1.exe & libpng-1.2.5-1.exe, and install them to C:/MinGW. (libpng-1.2.5-1 is what I use. I just found the latest is libpng-1.2.7.) 5. Setup environment variable Edit PATH, and add C:/MinGW/bin/;C:/MinGW/include/;C:/MinGW/lib/. They should come before cygwin directories. For example, mine is C:/MinGW/bin/;C:/MinGW/include/;C:/MinGW/lib/;c:/cygwin/bin/;c:/cygwin/usr/bin/. 6. Build and install Run cmd.exe to open windows shell, go to emacs/nt/ directory, and run PATH_TO_EMACS_CVS_NT_DIR>configure.bat --with-gcc --no-cygwin then >make bootstrap >make info >make install INSTALL_DIR=c:/emacs-cvs You can change emacs installation directory. Be careful that you should use “/” here instead of “\”. 7. Image DLL libs Go to C:/MinGW/bin/, and copy files below to your emacs bin directory (C:/emacs-cvs/bin/): jpeg62.dll, libpng12.dll, libtiff3.dll, libungif.dll, libXpm-noX4.dll & zlib1.dll If you feel like, you can change file names to your like, for example, to: jpeg.dll, libpng.dll, libtiff.dll, libxpm.dll, zlib.dll. In latest CVS Emacs, you can set file names through variable `image-library-alist. The default value is: ((xpm “libXpm-nox4.dll” “libxpm.dll”) (png “libpng13d.dll” “libpng13.dll” “libpng12d.dll” “libpng12.dll” “libpng.dll”) (jpeg “jpeg62.dll” “libjpeg.dll” “jpeg-62.dll” “jpeg.dll”) (tiff “libtiff3.dll” “libtiff.dll”) (gif “libungif.dll”)). Now run Emacs, and evaluate variable `image-types, you’ll see: (png gif tiff jpeg xpm xbm pbm). PS: Personally I like to run native Emacs Windows build through cygwin shell. The benefit is I can use many cygwin built tools like crm114, bogofilter, w3m while using Windows native input method. To achieve this, open cygwin shell, and go to /usr/bin/ and run: $ln -s c:/emacs-cvs/bin/runemacs.exe emacs then in cygwin shell, just run "emacs".