all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Keith David Bershatsky <esq@lawlist.com>
To: Glenn Morris <rgm@gnu.org>, Eli Zaretskii <eliz@gnu.org>,
	Martin Rudalics <rudalics@gmx.at>
Cc: 21590@debbugs.gnu.org
Subject: bug#21590: 25.0.50; MS-Windows; fns.c:4863:21: error: 'MD5_DIGEST_SIZE' undeclared (first use in this function)
Date: Wed, 30 Sep 2015 14:26:08 -0700	[thread overview]
Message-ID: <m2si5v1tvz.wl%esq@lawlist.com> (raw)
In-Reply-To: <m2vbasg27x.wl%esq@lawlist.com>

Eureka!  I now have a working recipe to build Emacs on WindowsXP with image support.  It ended up being a combination of mingw32, ezwinports, and xpm from GnuWin.  I will write up a current "cheat sheet" on emacs.stackexchange.com in the near future -- I opened a question there a couple of days ago.

The build fails at least a couple of ways on WindowsXP as described in this bug report #21590 when using GnuWin32, so there should probably be a strong warning (near the top) in the Emacs INSTALL readme file advising against using that resource -- and suggesting the use of ezwinports instead.  Alternatively, it may be a good idea at some point for the Emacs team to find out why Emacs fails (beyond just moving `md5.h` out of the way) to build with GnuWin32 and create a workaround in the building scripts, etc. since others will undoubtedly try to use that resource in the future.

Eli:  As a feature request, please consider adding an XPM zip archive to ezwinports as this portion of the build recipe is more complicated than it needs to be.

Here is the rough outline of the recipe for building Emacs master branch on Windows XP -- thank you all for helping me to get passed several hurdles until finally reaching a working solution:

;; https://git-scm.com/download/win
Git-2.5.3-32-bit.exe
Run the installer.
Next
Next
Standard installation directory is `C:\Program Files\Git`, but I chose instead:  c:\git
Select components:  default is okay, but I chose nothing instead.
Select start menu folder:  default is okay, bit I chose not to create a folder instead.
Adjusting your PATH environment:  default is okay:  Use Git from Bash only.
;; For this next section, pay close attention to the non-default setting -- see Emacs bug #21582.
Configure the line ending conversions:  Emacs requires a non-default setting of "checkout as-is, commit as-is"
Configuring the terminal emulator to use with Git Bash:  default is okay:  Use MinTTY (the default terminal of MSys2)
Configuring experimental performance tweaks:  I chose NOT to "Enable file system caching".
Finish [view release notes if so desired]

;; http://www.mingw.org/wiki/Getting_Started
;; mingw-get-setup.exe
c:\mingw\bin\mingw-get install mingw32-base
c:\mingw\bin\mingw-get install msys-base
c:\mingw\bin\mingw-get install autoconf
c:\mingw\bin\mingw-get install automake
c:\mingw\bin\mingw-get install msys-coreutils
c:\mingw\msys\1.0\msys.bat
mount c:/mingw /mingw

;; https://sourceforge.net/projects/ezwinports/files/
;; unzip all of the following ezwinports packages into `c:/mingw`, overwriting any duplicates.
giflib-5.1.0-w32-bin.zip
gnutls-3.3.11-w32-bin.zip
jpeg-v9a-w32-bin.zip
libpng-1.6.12-w32-bin.zip
libxml2-2.7.8-w32-bin.zip
mingw-get-setup.exe
tiff-4.0.3-w32-bin.zip
zlib-1.2.8-2-w32-bin.zip

;; https://sourceforge.net/projects/gnuwin32/files/xpm/3.5.1-1/
;; Obtain from:  xpm-3.5.1-1-src.zip
;; Obtain from:  xpm-3.5.1-1-src.zip
;; extract `simx.h` from `xpm-3.5.1-1-src/src/xpm/3.5.1/libXpm-3.5.1-src/lib/simx.h`
;; extract `xpm.h` from `/Users/HOME/Desktop/xpm-3.5.1-1-src/src/xpm/3.5.1/libXpm-3.5.1-src/lib/xpm.h`
;; extract `xpm4.dll` from `/Users/HOME/Desktop/xpm-3.5.1-1-bin/bin/xpm4.dll`
;; copy `simx.h` to `C:\mingw\include`
;; copy `xpm.h` to `C:\mingw\include\X11` -- create that directory.
;; copy `xpm4.dll` to `C:\mingw\bin`

c:\git\git-bash.exe

cd /c/docume~1/lawlist/desktop/

git clone -b master git://git.sv.gnu.org/emacs.git

c:\mingw\msys\1.0\msys.bat

cd /c/docume~1/lawlist/desktop/emacs

./autogen.sh

./configure --prefix=/c/docume~1/lawlist/desktop/trunk

make

make install

;; copy the following files to the `/bin` directory where `emacs.exe` is located.
giflib4.dll
jpeg62.dll
libXpm.dll
libpng16-16.dll
libtiff3.dll
xpm4.dll
zlib1.dll





  parent reply	other threads:[~2015-09-30 21:26 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-30  0:50 bug#21590: 25.0.50; MS-Windows; fns.c:4863:21: error: 'MD5_DIGEST_SIZE' undeclared (first use in this function) Keith David Bershatsky
2015-09-30  1:34 ` Glenn Morris
2015-10-01  6:36   ` Eli Zaretskii
2015-09-30  4:04 ` Keith David Bershatsky
2015-10-01  7:00   ` Eli Zaretskii
2015-09-30 21:26 ` Keith David Bershatsky [this message]
2015-10-01  6:45   ` Eli Zaretskii
2015-10-01 15:54   ` Eli Zaretskii
2015-10-02  8:36   ` martin rudalics
2015-10-02  8:51     ` Eli Zaretskii
2015-10-02  9:00       ` martin rudalics
2015-10-02  9:09         ` Eli Zaretskii
2015-10-01  5:02 ` Keith David Bershatsky
2015-10-01 22:15 ` Keith David Bershatsky
2015-10-02  6:45   ` Eli Zaretskii
2015-10-02  7:00 ` Keith David Bershatsky
2015-10-02  8:00   ` Eli Zaretskii
2015-10-02  7:17 ` Keith David Bershatsky
2015-10-02  8:10   ` Eli Zaretskii
2015-10-02 15:59 ` Keith David Bershatsky
2015-10-02 17:59   ` Eli Zaretskii
2015-10-06 18:33 ` Keith David Bershatsky
2015-10-06 18:45   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2si5v1tvz.wl%esq@lawlist.com \
    --to=esq@lawlist.com \
    --cc=21590@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=rgm@gnu.org \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.