[texworks] Compiling with mingw32

Stefan Löffler st.loeffler at gmail.com
Sun May 23 09:54:55 CEST 2010


Hi,

Am 2010-05-23 08:07, schrieb Paul A Norman:
> My TW build directories are as in wiki by Stefan, and all steps there
> including building hunspell appeared to work (with errors for hunspell
> as Stefan indicated would be the case.)
>   

I wrote that there may be warnings, but errors are bad ;).

> This is what I get after running mingw32-make
>
> last lines...
>
> c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe:
> cannot find -lhunspell-1.2
> collect2: ld returned 1 exit status
> mingw32-make[1]: *** [release/TeXworks.exe] Error 1
> mingw32-make[1]: Leaving directory `C:/texworks'
> mingw32-make: *** [release] Error 2
>   

As it says on the second line: the compiler/linker can't find the
hunspell library. If you check
c:\texworks\hunspell-1.2.11\src\hunspell\.libs I have no doubt that you
won't find the file libhunspell-1.2.a. That's the problem.

> And       hunspell is in c:\texworks\hunspell-1.2.11
>   

As the wiki guide states, it was written for hunspell 1.2.8. Apparently,
a few things have changed in 1.2.11 in the build system. Simply replace
the line
    ./configure
by
    ./configure --disable-shared
for the hunspell build instructions and rebuild hunspell. It worked for
me, at least.

HTH
Stefan


More information about the texworks mailing list