* Re: [cyd@stupidchicken.com: Emacs pretest 22.0.990]
2007-05-18 15:50 ` [cyd@stupidchicken.com: Emacs pretest 22.0.990] John McCabe
@ 2007-05-18 17:26 ` Eli Zaretskii
[not found] ` <464E1FE4.30970.1537609@john.assen.demon.co.uk>
2007-05-18 20:51 ` Jason Rumney
2007-05-19 6:09 ` CHENG Gao
2 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2007-05-18 17:26 UTC (permalink / raw)
To: John McCabe; +Cc: emacs-devel
> From: "John McCabe" <john@assen.demon.co.uk>
> Date: Fri, 18 May 2007 16:50:06 +0100
>
> > ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-22.0.990.tar.gz
> > ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-22.0.99-22.0.990.xdelta
>
> No problems building here with:
>
> $ mingw32-make --version
> GNU Make 3.80
Thanks. Please also tell which compiler was used.
> However this is the first pretest I've tried building, and the toolbar
> buttons look rubbish (no colour). Have I done something wrong?
You need to install the image libraries. See nt/INSTALL, under
"Optional image library support", for the gory details. After
installing the libraries, if everything is okay, you should see that
configure.bat says something like this:
...PNG header available, building with PNG support.
...JPEG header available, building with JPEG support.
...GIF header available, building with GIF support.
...TIFF header available, building with TIFF support.
...XPM header available, building with XPM support.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [cyd@stupidchicken.com: Emacs pretest 22.0.990]
2007-05-18 15:50 ` [cyd@stupidchicken.com: Emacs pretest 22.0.990] John McCabe
2007-05-18 17:26 ` Eli Zaretskii
2007-05-18 20:51 ` Jason Rumney
@ 2007-05-19 6:09 ` CHENG Gao
2 siblings, 0 replies; 7+ messages in thread
From: CHENG Gao @ 2007-05-19 6:09 UTC (permalink / raw)
To: emacs-devel
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".
^ permalink raw reply [flat|nested] 7+ messages in thread