Closed nikfloydrose closed 9 years ago
Hi @nikfloydrose sorry for my delayed response. I will check this problem and I will let you updated asap.
Hi,
I've got a similar compilation error, with the opencv3 branch:
Here is the output.
Scanning dependencies of target bgs [ 1%] Building CXX object CMakeFiles/bgs.dir/FrameProcessor.cpp.o [ 2%] Building CXX object CMakeFiles/bgs.dir/PreProcessor.cpp.o [ 3%] Building CXX object CMakeFiles/bgs.dir/VideoAnalysis.cpp.o [ 4%] Building CXX object CMakeFiles/bgs.dir/VideoCapture.cpp.o [ 5%] Building CXX object CMakeFiles/bgs.dir/package_bgs/WeightedMovingVarianceBGS.cpp.o [ 6%] Building CXX object CMakeFiles/bgs.dir/package_bgs/pl/BackgroundSubtractorLBSP.cpp.o In file included from /home/adelgado/Descargas/bgslibrary-opencv3/package_bgs/pl/BackgroundSubtractorLBSP.cpp:1:0: /home/adelgado/Descargas/bgslibrary-opencv3/package_bgs/pl/BackgroundSubtractorLBSP.h:29:14: error: ‘AlgorithmInfo’ in namespace ‘cv’ does not name a type virtual cv::AlgorithmInfo* info() const; ^ /home/adelgado/Descargas/bgslibrary-opencv3/package_bgs/pl/BackgroundSubtractorLBSP.cpp:47:5: error: ‘AlgorithmInfo’ in namespace ‘cv’ does not name a type cv::AlgorithmInfo* BackgroundSubtractorLBSP::info() const { ^ CMakeFiles/bgs.dir/build.make:169: recipe for target 'CMakeFiles/bgs.dir/package_bgs/pl/BackgroundSubtractorLBSP.cpp.o' failed make[2]: * [CMakeFiles/bgs.dir/package_bgs/pl/BackgroundSubtractorLBSP.cpp.o] Error 1 CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/bgs.dir/all' failed make[1]: * [CMakeFiles/bgs.dir/all] Error 2 Makefile:76: recipe for target 'all' failed make: *\ [all] Error 2
Is there any solution?
Thanks
Hi,
I have OS X Yosemite 10.10.3, and opecv2.4.11. I got similar error to @skormel, please help us to resolve the issue.
Thanks.
Hello guys! @nikfloydrose @skormel @Mona77 sorry for my late response. I fixed the branch opencv3, now it works great in my Ubuntu 14.04 with OpenCV 3.0 final. Please, let me know if it is working for you. Best
Hi Andrew,
Is it possible to fix the master brach as well, because I have Opencv 2.4 ?
Hi @Mona77, I fixed the BackgroundSubtractorLBSP class, please let me know if it works now for you.
Hello, I am using Ubuntu 14.04 with opencv-3.0.0-rc1 libraries correctly installed. I am trying to build the latest branch of bgslibrary (bgslibrary-opencv3) but when i run the make command i get the following error:
nico@nico-pc:~/Downloads/bgslibrary-opencv3/build$ make Scanning dependencies of target bgs [ 1%] Building CXX object CMakeFiles/bgs.dir/FrameProcessor.cpp.o [ 2%] Building CXX object CMakeFiles/bgs.dir/PreProcessor.cpp.o [ 3%] Building CXX object CMakeFiles/bgs.dir/VideoAnalysis.cpp.o [ 4%] Building CXX object CMakeFiles/bgs.dir/VideoCapture.cpp.o [ 5%] Building CXX object CMakeFiles/bgs.dir/package_bgs/pl/LBSP.cpp.o [ 6%] Building CXX object CMakeFiles/bgs.dir/package_bgs/pl/SuBSENSE.cpp.o In file included from /home/nico/Downloads/bgslibrary-opencv3/package_bgs/pl/BackgroundSubtractorSuBSENSE.h:3:0, from /home/nico/Downloads/bgslibrary-opencv3/package_bgs/pl/SuBSENSE.cpp:2: /home/nico/Downloads/bgslibrary-opencv3/package_bgs/pl/BackgroundSubtractorLBSP.h:29:10: error: ‘AlgorithmInfo’ in namespace ‘cv’ does not name a type virtual cv::AlgorithmInfo* info() const; ^ /home/nico/Downloads/bgslibrary-opencv3/package_bgs/pl/BackgroundSubtractorLBSP.h:23:15: warning: ‘virtual void BackgroundSubtractorLBSP::initialize(const cv::Mat&)’ was hidden [-Woverloaded-virtual] virtual void initialize(const cv::Mat& oInitImg); ^ In file included from /home/nico/Downloads/bgslibrary-opencv3/package_bgs/pl/SuBSENSE.cpp:2:0: /home/nico/Downloads/bgslibrary-opencv3/package_bgs/pl/BackgroundSubtractorSuBSENSE.h:41:15: warning: by ‘virtual void BackgroundSubtractorSuBSENSE::initialize(const cv::Mat&, const cv::Mat&)’ [-Woverloaded-virtual] virtual void initialize(const cv::Mat& oInitImg, const cv::Mat& oROI); ^ make[2]: * [CMakeFiles/bgs.dir/package_bgs/pl/SuBSENSE.cpp.o] Error 1 make[1]: * [CMakeFiles/bgs.dir/all] Error 2 make: *\ [all] Error 2
I really don't get the point of the error: can anybody help me please? Thanks