[texworks] Compile Error on Fedora 9 with hunspell

Dave Crossland dave at lab6.com
Tue Aug 19 19:21:46 CEST 2008


2008/8/19 Jonathan Kew <jonathan at jfkew.plus.com>:
> change the line
>
>         LIBS += -lhunspell
>
> in TeXworks.pro to something like
>
>         LIBS += -lhunspell-1.1

Yup that fixed it :-)

$ yum info hunspell-devel | grep ersion
Version: 1.1.12.2
$

I got a different problem building on Debian, though :-(

> For now, I suggest you just edit it locally; that should let you go
> ahead and build.

Yes.

I wonder, until TeXWorks is packaged for distros, if its worth
maintaining a wiki page about how to compile it on each majro distro
would be good IMO. I can't edit the wiki to do this, but if you'd like
me to, feel free to set permissions for my gaccount
(d.crossland at gmail.com). What I have in mind is something like:

Fedora:

# yum install poppler-devel qt4-devel hunspell-devel
$ svn checkout http://texworks.googlecode.com/svn/trunk/ texworks-read-only
$ cd texworks-read-only
$ qmake
$ make
$ ./texworks

Debian:

# aptitude install build-essential qt4-dev-tools qt4-qtconfig
qt4-designer qt4-doc popplerkit.framework poppler-utils
libhunspell-dev hunspell hunspell-dictionary-en-gb  freetype
freetype-tools freetype2-demos freetype1-dev freetype1-tools
fontconfig fontconfig-config zlib1 zlib1g zlib1-dev zlib1g-dev
zlib-bin svn
$ svn checkout http://texworks.googlecode.com/svn/trunk/ texworks-read-only
$ cd texworks-read-only
$ qmake
$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT  -DQT_NO_DEBUG -DQT_XML_LIB
-DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4
-Isrc -I/usr/include/poppler -I/usr/include/poppler/qt4 -Imoc -Iui -o
obj/main.o src/main.cpp
In file included from src/TWApp.h:29,
                 from src/main.cpp:22:
src/TWUtils.h:31:31: error: hunspell/hunspell.h: No such file or directory
src/TWUtils.h:60: error: ISO C++ forbids declaration of 'Hunhandle'
with no typesrc/TWUtils.h:60: error: expected ';' before '*' token
src/TWUtils.h:90: error: 'Hunhandle' was not declared in this scope
src/TWUtils.h:90: error: template argument 2 is invalid
make: *** [obj/main.o] Error 1
$


More information about the texworks mailing list