Wn.cc fails to compile: Missing wn.h
winwaed opened this issue · 4 comments
winwaed commented
Looks like the header file "wn.h" is missing?
Make fails when it reaches Wn.cc because wn.h is missing. I tried commenting the include out but this results in various undeclared errors - not surprising really.
hkf commented
Same problem here. Here's the corresponding trace, where the build starts to break down:
Wn.cc:7:16: error: wn.h: No such file or directory
Wn.cc: In static member function ‘static bool srl::WordNet::initialize()’:
Wn.cc:33: error: ‘wninit’ was not declared in this scope
Wn.cc:39: error: ‘morphinit’ was not declared in this scope
Wn.cc: In member function ‘virtual std::string srl::WordNet::morph(const std::string&, const std::string&)’:
Wn.cc:154: error: ‘morphstr’ was not declared in this scope
Wn.cc: In member function ‘bool srl::WordNet::synonyms(const std::string&, const std::string&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, bool, bool)’:
Wn.cc:194: error: ‘SynsetPtr’ was not declared in this scope
Wn.cc:194: error: expected `;' before ‘syns’
Wn.cc:197: error: ‘syns’ was not declared in this scope
Wn.cc:205: error: expected `;' before ‘s’
Wn.cc:205: error: ‘s’ was not declared in this scope
Wn.cc:215: error: expected `;' before ‘s’
Wn.cc:215: error: ‘s’ was not declared in this scope
Wn.cc: In member function ‘bool srl::WordNet::synsets(const std::string&, const std::string&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)’:
Wn.cc:263: error: ‘SynsetPtr’ was not declared in this scope
Wn.cc:263: error: expected `;' before ‘syns’
Wn.cc:266: error: ‘syns’ was not declared in this scope
Wn.cc:272: error: expected `;' before ‘s’
Wn.cc:272: error: ‘s’ was not declared in this scope
make[3]: *** [Wn.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
'''
quanghuyinfor commented
help me. i try this tool SWiRL. i have the same mistake. can you help me. thank you so much.
CeciYoung commented
You should install WordNet first.
fe1w0 commented
brew install wordnet
./configure CPPFLAGS="-I/opt/homebrew/Cellar/wordnet/3.1_1/include" LDFLAGS="-L/opt/homebrew/Cellar/wordnet/3.1_1/lib"
However, I met the following new problems.
make[3]: *** No rule to make target `Assert.h', needed by `all-am'. Stop.
make[3]: *** Waiting for unfinished jobs....