Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libvoikko installation instructions don't work #39

Open
bowersd opened this issue Feb 18, 2018 · 6 comments
Open

libvoikko installation instructions don't work #39

bowersd opened this issue Feb 18, 2018 · 6 comments

Comments

@bowersd
Copy link

bowersd commented Feb 18, 2018

On https://github.com/hfst/hfst-ospell/wiki/UseAsSpellChecker you provide instructions for installing libvoikko. Setting aside that the libvoikko link does not go to http://voikko.puimula.org/sources.html and that the instructions you give do not tell users to cd into the libvoikko... directory after untarring it, running make (on my machine at least) throws an error and fails:

Using libvoikko version 3.4.1:
-Werror -pedantic -MT spellchecker/SpellerFactory.lo -MD -MP -MF spellchecker/.deps/SpellerFactory.Tpo -c spellchecker/SpellerFactory.cpp -fPIC -DPIC -o spellchecker/.libs/SpellerFactory.o
In file included from /usr/include/ospell.h:27:0,
from ./spellchecker/HfstSpeller.hpp:26,
from spellchecker/SpellerFactory.cpp:26:
/usr/include/hfst-ol.h:39:9: error: 'uint16_t' does not name a type
typedef uint16_t SymbolNumber;
^

Trying with libvoikko version 4.1.1:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -std=c++11 -fvisibility=hidden -Wall -Werror -pedantic -MT morphology/AnalyzerFactory.lo -MD -MP -MF morphology/.deps/AnalyzerFactory.Tpo -c morphology/AnalyzerFactory.cpp -fPIC -DPIC -o morphology/.libs/AnalyzerFactory.o
In file included from morphology/AnalyzerFactory.cpp:43:0:
./morphology/HfstAnalyzer.hpp:52:3: error: ‘hfst_ol’ does not name a type
hfst_ol::Transducer *t;
^

I know that libvoikko isn't strictly your gig, but if you know of a way to get around these installation problems, you should share them with your users. :)

@bowersd
Copy link
Author

bowersd commented Feb 18, 2018

I'm on Ubuntu (xenial)

@flammie
Copy link
Member

flammie commented Feb 19, 2018

I think there is ongoing work to get hfst-enabled voikko into debian and ubuntu, maybe you can find a version of these in Tino Didriksen's packages, some informations are in the apertium wiki: http://wiki.apertium.org/wiki/Install_Apertium_core_using_packaging

@bowersd
Copy link
Author

bowersd commented Feb 20, 2018

Tino Didriksen's apertium core packages did the trick!

@bowersd
Copy link
Author

bowersd commented Feb 27, 2018

It seems to not work again, at least it worked once...

@blackPantherOS
Copy link

We have same problem on blackPanther OS 17.1 64bit, Gcc-8.2.1

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -std=c++11 -fvisibility=hidden -Wall -Werror -pedantic -MT morphology/AnalyzerFactory.lo -MD -MP -MF morphology/.deps/AnalyzerFactory.Tpo -c morphology/AnalyzerFactory.cpp  -fPIC -DPIC -o morphology/.libs/AnalyzerFactory.o
In file included from morphology/AnalyzerFactory.cpp:43:
./morphology/HfstAnalyzer.hpp:52:3: error: 'hfst_ol' does not name a type; did you mean 'wcstol'?
   hfst_ol::Transducer *t;
   ^~~~~~~
   wcstol
make[3]: *** [Makefile:1466: morphology/AnalyzerFactory.lo] Error 1
make[3]: Leaving directory '/usr/src/RPM/BUILD/libvoikko-4.1.1/src'
make[2]: *** [Makefile:866: all] Error 2
make[2]: Leaving directory '/usr/src/RPM/BUILD/libvoikko-4.1.1/src'
make[1]: *** [Makefile:435: all-recursive] Error 1
make[1]: Leaving directory '/usr/src/RPM/BUILD/libvoikko-4.1.1'
make: *** [Makefile:367: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.BihlDz (%build)

@flammie
Copy link
Member

flammie commented Sep 2, 2018

current hfst-ospell is only compatible with the newest libvoikko, the relevant change is here: voikko/corevoikko@c516a6e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants