This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Building a MinGW build of aspell without much luck :(


Hi Rob, thanks for the reply. I've tried that configuration (i.e. having
cygwin and mingw installed seperately and setting the path to include
mingw's binaries first) but I kept getting the "libtool: compile: unable
to infer tagged configuration" error.

Anyhow, I've managed to get pass my original problem but am getting path
problems in aspell while compiling the dictionaries. 

This is really fustrating. Any ideas Rob?

BTW, I tot I might share how I got pass my problem. I've checked and
found the definition of opendir, readdir and closedir to exist in the
lib libmingwex.a which was never included by the configure process.
Hence the fix is to edit the gcc's specs file to include this lib
whenever the -mno-cygwin switch is given. Is this considered a bug?


-----Original Message-----
From: Rob Wheatley [mailto:wheatley@shaw.ca] 
Sent: Friday, 21 June, 2002 1:38 AM
To: purpledinosaur
Cc: cygwin@cygwin.com
Subject: Re: FW: Building a MinGW build of aspell without much luck :(


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]