nickgillian / grt

gesture recognition toolkit
853 stars 286 forks source link

MLBase::getMinChange() const’ member function declared in class ‘GRT::MLBase’ #171

Open liudongdong1 opened 4 years ago

liudongdong1 commented 4 years ago

/grt/GRT/CoreModules/MLBase.cpp:262:30: error: no ‘GRT::Float GRT::MLBase::getMinChange() const’ member function declared in class ‘GRT::MLBase’ Float MLBase::getMinChange() const{ ^~~~~ /home/ldd/project_computervision/grt/GRT/CoreModules/MLBase.cpp:316:42: error: no ‘bool GRT::MLBase::getRandomiseTrainingOrder() const’ member function declared in class ‘GRT::MLBase’ bool MLBase::getRandomiseTrainingOrder() const { return randomiseTrainingOrder; } ^~~~~ CMakeFiles/grt.dir/build.make:2150: recipe for target 'CMakeFiles/grt.dir/home/ldd/project_computervision/grt/GRT/CoreModules/MLBase.cpp.o' failed make[2]: [CMakeFiles/grt.dir/home/ldd/project_computervision/grt/GRT/CoreModules/MLBase.cpp.o] Error 1 CMakeFiles/Makefile2:1597: recipe for target 'CMakeFiles/grt.dir/all' failed make[1]: [CMakeFiles/grt.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2

have sovlved Float MLBase::getMinChange() const; bool MLBase::getRandomiseTrainingOrder() const; these two function was annotated

andymule commented 4 years ago

dupe https://github.com/nickgillian/grt/issues/170

feco-m commented 4 years ago

Hello, I have the same problem when I try to $ make -j1

[ 18%] Building CXX object CMakeFiles/grt.dir/home/x/grt-master/GRT/CoreModules/MLBase.cpp.o /home/x/grt-master/GRT/CoreModules/MLBase.cpp:262:7: error: no declaration matches ‘GRT::Float GRT::MLBase::getMinChange() const’ 262 | Float MLBase::getMinChange() const{ | ^~~~~~ /home/x/grt-master/GRT/CoreModules/MLBase.cpp:262:7: note: no functions named ‘GRT::Float GRT::MLBase::getMinChange() const’ In file included from /home/x/grt-master/GRT/CoreModules/MLBase.cpp:22: /home/x/grt-master/GRT/CoreModules/MLBase.h:72:15: note: ‘class GRT::MLBase’ defined here 72 | class GRT_API MLBase : public GRTBase, public Observer< TrainingResult >, public Observer< TestInstanceResult > | ^~~~~~ make[2]: *** [CMakeFiles/grt.dir/build.make:1214: CMakeFiles/grt.dir/home/x/grt-master/GRT/CoreModules/MLBase.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:2713: CMakeFiles/grt.dir/all] Error 2 make: *** [Makefile:161: all] Error 2

I have a look to the MLbase.h and MLbase.cpp in the CoreModules folder and the two functions are not annotated. Can anyone help me? Thanks in advance.

andymule commented 4 years ago

Glance at #170

Basically, in GRT/CoreModules/MLBase.h uncomment bool getUseValidationSet() const; and bool getRandomiseTrainingOrder() const;

Then delete or disable the examples from being buillt. let me know if you need more help.

feco-m commented 4 years ago

The problem was in the MLBase.h, this line was commented Float getMinChange() const;. Now It's unncommented and It works. But I have a new problem...

[ 36%] Linking CXX executable grt-split-tool /usr/bin/ld: CMakeFiles/grt-split-tool.dir/home/x/grt-master/tools/grt-split-tool.cpp.o: en la funciónGRT::WarningLog::WarningLog(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)': grt-split-tool.cpp:(.text._ZN3GRT10WarningLogC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN3GRT10WarningLogC5ERKNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x3c): referencia a GRT::WarningLog::warningLoggingEnabled' sin definir /usr/bin/ld: CMakeFiles/grt-split-tool.dir/home/x/grt-master/tools/grt-split-tool.cpp.o: en la funciónGRT::WarningLog::triggerCallback(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) const': grt-split-tool.cpp:(.text._ZNK3GRT10WarningLog15triggerCallbackERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZNK3GRT10WarningLog15triggerCallbackERKNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x84): referencia a GRT::WarningLog::observerManager' sin definir collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/grt-split-tool.dir/build.make:105: grt-split-tool] Error 1 make[1]: *** [CMakeFiles/Makefile2:362: CMakeFiles/grt-split-tool.dir/all] Error 2 make: *** [Makefile:161: all] Error 2