Pike on Windows
Starting with version 7.7, Pike can be compiled directly on Windows. This technique uses MinGW and MSYS to produce a native Windows binary (ie there's no POSIX compatibility layer as with CygWin).This technique seems to work, however there are some issues currently. The most serious of these seems to be the lack of working dynamic modules. A more promising technique is to use the freely available Microsoft Visual C++ Toolkit, which contains the "cl" command line compiler, and the Microsoft Platform SDK, which contains all of the necessary headers and libraries. We then use rnctl, a pike script which converts gcc command line options into cl command line options.You'll need the following in $HOME/nt-tools/tools:- rntcl
- ar
- pntld
- ranlib
PATH=/c/progra~1/mica4c6~1/bin:/c/progra~1/mic977~1/bin/win64:/c/progra~1/mic$HOME/nt-tools/tools:$PATH
export PATH
LDFLAGS="-LC:/Progra~1/MIC977~1/lib -LC:/Progra~1/thirdpartylibs/lib"
export LDFLAGS
CPPFLAGS="-IC:/Progra~1/MIC977~1/include -IC:/Progra~1/thirdpartylibs/include"
export CPPFLAGS
INCLUDE=C:\Program Files\Microsoft Visual C++ Toolkit 2003\include
LIB=C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib
export INCLUDE LIBCC=rntcl make The general procedure:
install a standard windows build of pike.download a snapshot of pike from 7.7 cvs
compile gmp as usual:cd to bundles
untar gmp
./configure
make
make installcompile nettle:cd to bundles
untar nettle-1.12.tar.gz
untar nettle-1.12.ptar.gzset env variables:CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
export CFLAGS LDFLAGScompile nettle:./configure --disable-assembler
make
make install
compile pike 7.7:./configure
make
make install
Powered by PikeWiki2
|
|