[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Emacs pretest 22.0.990]
From: |
CHENG Gao |
Subject: |
Re: address@hidden: Emacs pretest 22.0.990] |
Date: |
Sat, 19 May 2007 14:09:31 +0800 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (darwin) |
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:address@hidden:/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".