Build errors: `not declared in this scope`
StrangeTcy opened this issue · comments
Maxim Smirnov commented
When I follow the cogutils build instructions and get to make
, it only gets as far as 16% and then outputs the following errors:
[ 16%] Building CXX object opencog/learning/PatternMiner/CMakeFiles/PatternMiner.dir/PatternMiner.cc.o
~/opencog/opencog/learning/PatternMiner/PatternMiner.cc: In member function ‘unsigned int opencog::PatternMining::PatternMiner::getAllEntityCountWithSamePredicatesForAPattern(const HandleSeq&)’:
~/opencog/opencog/learning/PatternMiner/PatternMiner.cc:2028:9: error: ‘HandleSetSeq’ was not declared in this scope
HandleSetSeq allEntitiesForEachPredicate;
^
~/opencog/opencog/learning/PatternMiner/PatternMiner.cc:2043:13: error: ‘allEntitiesForEachPredicate’ was not declared in this scope
allEntitiesForEachPredicate.push_back(allEntitiesForThisPredic
^
~/opencog/opencog/learning/PatternMiner/PatternMiner.cc:2049:33: error: ‘allEntitiesForEachPredicate’ was not declared in this scope
boost::set_intersection(allEntitiesForEachPredicate[0],
^
opencog/learning/PatternMiner/CMakeFiles/PatternMiner.dir/build.make:110: recipe for target 'opencog/learning/PatternMiner/CMakeFiles/PatternMiner.dir/PatternMiner.cc.o' failed
make[2]: *** [opencog/learning/PatternMiner/CMakeFiles/PatternMiner.dir/PatternMiner.cc.o] Error 1
CMakeFiles/Makefile2:779: recipe for target 'opencog/learning/PatternMiner/CMakeFiles/PatternMiner.dir/all' failed
make[1]: *** [opencog/learning/PatternMiner/CMakeFiles/PatternMiner.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Linas Vepštas commented
I'm going to close this because there is no pattern miner in cogutils. There is a pattern miner in opencog, but, before you can build that you have to first build and install cogutils, and then build and install the atomspace. Only after doing these two earlier steps can you build the patternminer.