Skip to main content.
home | support | download

Back to List Archive

Compiling on W2K - Mingw

From: Dhruva Krishnamurthy <seagull(at)not-real.fastmail.fm>
Date: Wed Apr 16 2003 - 15:12:36 GMT
On Wed, 16 Apr 2003 07:56:31 -0700, "Roy Tennant" <roy.tennant@ucop.edu>
said:
> This should go to the SWISH-E discussion list (see 
> <http://swish-e.org/Discussion/>) rather than to us personally. Thanks,
> Roy
> 
On Wednesday, April 16, 2003, at 07:54 AM, Dhruva Krishnamurthy wrote:

Hello,
I was able to port SWISH-E (daily snapshot swish-e-2.3.5-2003-04-16) 
on W2K using MinGW32 environment (using GCC 3.2). I got a working
executable and an archive file (library). If this is not NEW or if
someone else has  already reported success, kindly ignore this email. Is
there plans of supporting complete regex in query or is it already
supported? I would like to work on this. I am quite good at REGEX (due  
to extensive usage of FLex and Bison).

W2K port using MinGW32:
${MINGW32} : Path to top level directory of MinGW32 tools installation

Files to Install in ${MINGW32} from SourceForge (gnuwin32):
1. pcre - perl compatible regular expression library
2. GNU Regex library
3. libxml2 (www.xmlsoft.org)
4. libexpat

Configure options (from MKS korn sh)
1.  Set the following variables (most of them general for MinGW env):
  export AS=as
  export AR=ar
  export CC=gcc
  export CFLAGS='-mno-cygwin'
  export CPP='gcc -E'
  export CXX=g++
  export F77=g77
  export LD=ld
  export NM=nm
  export AWK=gawk
  export SED=sed
  export FLEX=flex
  export LEX=flex
  export YACC='bison -y'
  export GREP='grep'
  export EGREP='grep -e'
  export BISON=bison
  export BISON_HAIRY=${MINGW32}/share/bison.hairy
  export BISON_SIMPLE=${MINGW32}/share/bison.simple
  export MAKE=gmake
  export LN=cp
  export RANLIB=ranlib
  export DLLTOOL=dlltool
  export MAKEINFO='makeinfo --force'
  export SHELL=sh
  export CONFIG_SHELL=sh
  export PATH_SEPARATOR="\;"

2. ./configure i386-pc-mingw32 --prefix=D:/Applications/SWISH-E
    --with-pcre=${MINGW32} --with-zlib=${MINGW32}
    --with-libxml2=${MINGW32}
3. Edit the ./libtool as follows:
      Search for "-L\*". In the "case $dir", add "-l*) ;;"
4. Edit src/Makefile as following:
       Search for swish_e_LDADD, append the following:
       "replace/libreplace.la ${MINGW32}/lib/libregex.a
       ${MINGW32}/lib/libz.a
        ${MINGW32}/lib/libxml2.dll ${MINGW32}/lib/libexpat.a"

with regards,
dhruva
-- 
Dhruva Krishnamurthy
Home: http://www32.brinkster.com/schemer/
Received on Wed Apr 16 15:12:37 2003