all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [cyd@stupidchicken.com: Emacs pretest 22.0.990]
       [not found] <E1Hp24x-0005dS-0T@fencepost.gnu.org>
@ 2007-05-18 15:50 ` John McCabe
  2007-05-18 17:26   ` Eli Zaretskii
                     ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: John McCabe @ 2007-05-18 15:50 UTC (permalink / raw)
  To: emacs-devel

Hi

> I have rolled the Emacs 22.0.990 pretest tarball.  It is available at
> the usual location:
> 
> 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
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

However this is the first pretest I've tried building, and the toolbar 
buttons look rubbish (no colour). Have I done something wrong?

Best Regards
John McCabe <john@assen.demon.co.uk>

^ 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
       [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
       [not found]     ` <464E2AE1.23138.17E6203@john.assen.demon.co.uk>
  2007-05-19  6:09   ` CHENG Gao
  2 siblings, 1 reply; 7+ messages in thread
From: Jason Rumney @ 2007-05-18 20:51 UTC (permalink / raw)
  To: John McCabe; +Cc: emacs-devel

John McCabe wrote:
> However this is the first pretest I've tried building, and the toolbar 
> buttons look rubbish (no colour). Have I done something wrong?
>   

You don't have xpm support compiled in. If you are using the image
libraries from gnuwin32.sourceforge.net, the xpm header files have to be
extracted from the source package.

^ 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

* Re: [cyd@stupidchicken.com: Emacs pretest 22.0.990]
       [not found]     ` <464E1FE4.30970.1537609@john.assen.demon.co.uk>
@ 2007-05-19  7:16       ` Eli Zaretskii
  2007-05-19  8:17         ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2007-05-19  7:16 UTC (permalink / raw)
  To: John McCabe; +Cc: emacs-devel

> From: "John McCabe" <john@assen.demon.co.uk>
> Date: Fri, 18 May 2007 21:51:32 +0100
> 
> However the link to the http://ourcomments.org/Emacs/EmacsW32.html
> in the INSTALL file isn't actually of much help.

Sorry, it looks like that page was modified, and a better link is this:

  http://ourcomments.org/Emacs/w32-build-emacs.html

For your specific problem, look under "How to Get Images Support
(Optional)" on the above URL.

I will update nt/INSTALL.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [cyd@stupidchicken.com: Emacs pretest 22.0.990]
       [not found]     ` <464E2AE1.23138.17E6203@john.assen.demon.co.uk>
@ 2007-05-19  7:27       ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2007-05-19  7:27 UTC (permalink / raw)
  To: John McCabe; +Cc: emacs-devel, jasonr

> From: "John McCabe" <john@assen.demon.co.uk>
> Date: Fri, 18 May 2007 22:38:25 +0100
> 
> Thank you both for your help there. I had to download the xpm library from 
> gnuwin32, along with the sources, use the --cflags -Ic:/GnuWin32/include 
> option on configure.bat, as well as downloading the source of xmp and 
> copying the simx.h file into c:/GnuWin32/include (seems a bit of a bodge 
> but it certainly worked).

I think it is better to put the image headers into your usual include
directory, where the compiler looks for its standard headers.  Then
you don't need to use the extra --cflags option to configure.bat.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [cyd@stupidchicken.com: Emacs pretest 22.0.990]
  2007-05-19  7:16       ` Eli Zaretskii
@ 2007-05-19  8:17         ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2007-05-19  8:17 UTC (permalink / raw)
  To: john, emacs-devel

> Date: Sat, 19 May 2007 10:16:17 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> > From: "John McCabe" <john@assen.demon.co.uk>
> > Date: Fri, 18 May 2007 21:51:32 +0100
> > 
> > However the link to the http://ourcomments.org/Emacs/EmacsW32.html
> > in the INSTALL file isn't actually of much help.
> 
> Sorry, it looks like that page was modified, and a better link is this:
> 
>   http://ourcomments.org/Emacs/w32-build-emacs.html
> 
> For your specific problem, look under "How to Get Images Support
> (Optional)" on the above URL.
> 
> I will update nt/INSTALL.

Done.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-05-19  8:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1Hp24x-0005dS-0T@fencepost.gnu.org>
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-19  7:16       ` Eli Zaretskii
2007-05-19  8:17         ` Eli Zaretskii
2007-05-18 20:51   ` Jason Rumney
     [not found]     ` <464E2AE1.23138.17E6203@john.assen.demon.co.uk>
2007-05-19  7:27       ` Eli Zaretskii
2007-05-19  6:09   ` CHENG Gao

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.