Saturday, August 09, 2008

Building emacs-current by VC8

Now I am trying to build emacs-current by VC8. 1. invoke vcvars32.bat to set environment for VC8
C:\archives\devel\src\emacs\nt>"c:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat"

C:\archives\devel\src\emacs\nt>"C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
2. install GifLib, Jpeg, LibPng, Tiff, Xpm and Zlib from GnuWin32 project When you intall LibPng, you need to modify zconf.h as following:
#if 0           /* HAVE_UNISTD_H -- this line is updated by ./configure */
since we don't have unistd.h. Also you need to install simx.h from xpm source archives though I don't see the reason. 3. invoke configure.bat as following:
 > configure --prefix c:\emacs-current --with-msvc
4. In making process, resouce compiler complains for icons\emacs.ico.
C:\archives\devel\src\emacs\nt>rc -Foobj-spd/i386/emacs.res emacs.rc
emacs.rc(1) : error RC2176 : old DIB in icons\emacs.ico; pass it through SDKPAINT
This discussion deals with the root cause. So I edit icons\emacs.ico as uncompressed options by IrfanView. But now I am facing on the following missing:
Essential Lisp files seem to be missing. You should either
do 'make bootstrap' or create 'lisp/abbrev.elc' somehow

Wednesday, August 06, 2008

Mercurial using memo

Mercurialではじめる分散構成管理 第1回 「分散」への第一歩〜ローカルでの複製参照。 Visual Studio 2005で開発している際,SimpleWin32.cpp を追加した。
$ hg status
M SimpleWin32.ncb
M SimpleWin32.suo
M SimpleWin32/SimpleWin32.vcproj
? SimpleWin32/SimpleWin32.cpp
? SimpleWin32/Windows Mobile 6 Professional SDK (ARMV4I)/Debug/BuildLog.htm
? SimpleWin32/Windows Mobile 6 Professional SDK (ARMV4I)/Debug/vc80.pdb
$ hg add SimpleWin32/SimpleWin32.cpp 
There was an error in this gadget