Closed frodberserk closed 8 years ago
This file is generated source code. Just build the library by running "make" and it is one of the first things that will be generated.
I am building it in eclipse using NDK. But it is showing error. Actually the Autocorrect.cpp file has some data structures named NODES etc which it can't find, so it is not compiling.
[armeabi] Compile++ thumb: voikko-jni <= AutoCorrect.cpp jni/corevoikko/libvoikko/src/autocorrect/AutoCorrect.cpp:43:32: fatal error: autocorrect/data.hpp: No such file or directory compilation terminated. make.exe: *\ [obj/local/armeabi/objs/voikko-jni/corevoikko/libvoikko/src/autocorrect/AutoCorrect.o] Error 1
This is the error.
My guess is that Eclipse adds some builddir switches that the build system incorrectly ignores. If you could find out what those are and post them here I could try to come up with a fix.
Meanwhile the commands that you can use to generate the file manually are
cd src python ./autocorrect/triecompiler.py ./../data/autocorrect/fi_FI.xml autocorrect/data.hpp
Can you please provide the file?
The autocorrect data is now part of dictionary format 5. Thus it is no longer built as a part of default configuration of libvoikko.
There is a file named Autocorrect.cpp in src/autocorrect. In the file, it includes autocorrect/data.hpp file. But I can't find it in the folder. Please help.