Build Emacs on Windows XP with image support -------------------------------------------- Should not be difficult, still some notes. General build steps: C:\> cd nt C:\> configure --no-cygwin --cflags=-Ic:/progra~1/gnuwin32/include --ldflags=-Lc:/progra~1/gnuwin32/lib C:\> make SHELL=cmd.exe C:\> make SHELL=cmd.exe install Usually, you will see it complaining missing some image libraries. Let us fix it: 1. Install image libraries from: http://gnuwin32.sourceforge.net/packages.html 2. Notice the cflags, ldflags in the above configure command. 3. xpm problem: missing simx.h. Actually xpm library itself doesn't depend on simx.h, only when compiling emacs... So download one from here: http://derekslager.com/blog/attachment.ashx/emacs-hack-3-compile-emacs-from-cvs-on-windows/simx.h 4. After `make install', make sure "c:/gnuwin32/bin" is included in %path%, or you will get error like invalid image format, etc. Cheers!