edrosten / libcvd

libcvd - efficient and easy to use C++ computer vision library.
Other
238 stars 103 forks source link

building error with latest version #58

Closed noahzn closed 4 years ago

noahzn commented 4 years ago

[ 53%] Building CXX object CMakeFiles/CVD.dir/cvd_src/Linux/dvbuffer3_dc1394v2.cc.o [ 54%] Building CXX object CMakeFiles/CVD.dir/cvd_src/gltext.cpp.o [ 55%] Building CXX object CMakeFiles/CVD.dir/cvd_src/glwindow.cc.o /home/lib/libcvd/cvd_src/glwindow.cc: In constructor 'CVD::Exceptions::GLWindow::CreationError::CreationError(std::__cxx11::string)': /home/lib/libcvd/cvd_src/glwindow.cc:12:5: error: invalid use of member function 'virtual const char* std::runtime_error::what() const' (did you forget the '()' ?) what="GLWindow creation error: " + w; ^~~~ /home/lib/libcvd/cvd_src/glwindow.cc: In constructor 'CVD::Exceptions::GLWindow::RuntimeError::RuntimeError(std::__cxx11::string)': /home/lib/libcvd/cvd_src/glwindow.cc:17:5: error: invalid use of member function 'virtual const char* std::runtime_error::what() const' (did you forget the '()' ?) what="GLWindow error: " + w; ^~~~ CMakeFiles/CVD.dir/build.make:816: recipe for target 'CMakeFiles/CVD.dir/cvd_src/glwindow.cc.o' failed make[2]: *** [CMakeFiles/CVD.dir/cvd_src/glwindow.cc.o] Error 1 CMakeFiles/Makefile2:161: recipe for target 'CMakeFiles/CVD.dir/all' failed make[1]: *** [CMakeFiles/CVD.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2

I can build successfully with commit 28e8a8