delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/20/13:39:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 20 Jun 2002 11:38:15 -0600
From: Rob Wheatley <wheatley AT shaw DOT ca>
Subject: Re: FW: Building a MinGW build of aspell without much luck :(
To: purpledinosaur <purpledinosaur AT barrysworld DOT com>
Cc: cygwin AT cygwin DOT com
Message-id: <3D121307.70702@shaw.ca>
MIME-version: 1.0
X-Accept-Language: en-us, en
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0rc3) Gecko/20020523
References: <002601c217fb$b2bbafb0$be3210ac AT sncxp>

purpledinosaur wrote:
> Hi all, I'm new to cygwin and mingw, and UNIX style development in
> general hence I would really appreciate some help here. I'm trying to
> build the aspell (http://aspell.sourceforge.net) win32 binary using the
> mingw compiler in the cygwin environment but am getting some linker
> problems.

I got aspell to compile with some work.  I have separate mingw and 
cygwin installations on my computer.  It has been a while, but I believe 
I set up my paths so that I was using the mingw gcc compiler, but the 
remaining tools (make, etc) were from the cygwin bin directory.  The 
link errors you are getting are from aspell trying to use posix 
functions, which suggests you are compiling a cygwin version instead of 
a mingw version of aspell.

My notes (hopefully up to date) are as follows.  You will have to change 
the prefix and bindir to suit your system.

CLEAN EVERYTHING
make distclean

NO DEBUG
CXXFLAGS="-O2" ; export CXXFLAGS
make -e

TO COMPILE A CYGWIN VERSION
PSPELL
./configure --disable-shared --disable-ltdl --disable-curses 
--enable-win32-relocatable --prefix=/cygspell --bindir=/cygspell

ASPELL
./configure --disable-shared --enable-win32-relocatable --disable-curses 
--prefix=/cygspell --bindir=/cygspell

TO COMPILE A MINGW VERSION
PSPELL
./configure --disable-shared --disable-ltdl --disable-curses 
--enable-win32-relocatable --prefix=/mev2/spell --bindir=/mev2/spell
make
make install

ASPELL
./configure --disable-shared --enable-win32-relocatable --disable-curses 
--prefix=/mev2/spell --bindir=/mev2/spell
make
make install


Although not is my notes, there is also the following step.
The pspell manual states that when compiling with --disable-ltdl, you 
need to manually link in the necessary modules by doing the following:

     cd modules
     ./add-modules
     cd ..
     make
     make install

Hope this helps.

Rob Wheatley





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019