videosegmentation / video_segment

Main repository for The Video Segmentation Project
Other
168 stars 80 forks source link

Issue while compiling #20

Open mangalnimish opened 7 years ago

mangalnimish commented 7 years ago

I follow the instructions in readme file and get the following error after typing make -j4 [ 29%] Building CXX object video_framework/CMakeFiles/video_framework.dir/video_display_unit.cpp.o /home/mangalnimish/video_segment/segment_util/segmentation_util.cpp: In function ‘void segmentation::RenderShapeDescriptor(const std::vector<int>&, const segmentation::SegmentationDesc&, cv::Mat*, const string*)’: /home/mangalnimish/video_segment/segment_util/segmentation_util.cpp:437:5: error: ‘line’ is not a member of ‘cv’ cv::line(*output, left, right, solid_white); ^ /home/mangalnimish/video_segment/segment_util/segmentation_util.cpp:438:5: error: ‘line’ is not a member of ‘cv’ cv::line(*output, top, bottom, solid_white); ^ /home/mangalnimish/video_segment/segment_util/segmentation_util.cpp:440:5: error: ‘putText’ is not a member of ‘cv’ cv::putText(*output, *label, shape_desc.center, cv::FONT_HERSHEY_PLAIN, 0.8, ^ /home/mangalnimish/video_segment/segment_util/segmentation_util.cpp:448:3: error: ‘ellipse’ is not a member of ‘cv’ cv::ellipse(*output, ^ [ 32%] Building CXX object segment_util/CMakeFiles/segment_util.dir/segmentation_boundary.cpp.o segment_util/CMakeFiles/segment_util.dir/build.make:94: recipe for target 'segment_util/CMakeFiles/segment_util.dir/segmentation_util.cpp.o' failed make[2]: *** [segment_util/CMakeFiles/segment_util.dir/segmentation_util.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 35%] Building CXX object video_framework/CMakeFiles/video_framework.dir/video_reader_unit.cpp.o CMakeFiles/Makefile2:236: recipe for target 'segment_util/CMakeFiles/segment_util.dir/all' failed make[1]: *** [segment_util/CMakeFiles/segment_util.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 37%] Building CXX object video_framework/CMakeFiles/video_framework.dir/video_writer_unit.cpp.o [ 40%] Building CXX object video_framework/CMakeFiles/video_framework.dir/conversion_units.cpp.o [ 43%] Building CXX object video_framework/CMakeFiles/video_framework.dir/flow_reader.cpp.o [ 45%] Building CXX object video_framework/CMakeFiles/video_framework.dir/video_capture_unit.cpp.o [ 48%] Building CXX object video_framework/CMakeFiles/video_framework.dir/video_pipeline.cpp.o /home/mangalnimish/video_segment/video_framework/flow_reader.cpp: In member function ‘virtual bool video_framework::DenseFlowUnit::OpenStreams(video_framework::StreamSet*)’: /home/mangalnimish/video_segment/video_framework/flow_reader.cpp:191:20: error: ‘class cv::DenseOpticalFlow’ has no member named ‘set’ (*flow_engine_)->set("warps", options_.num_warps); ^ /home/mangalnimish/video_segment/video_framework/flow_reader.cpp:192:20: error: ‘class cv::DenseOpticalFlow’ has no member named ‘set’ (*flow_engine_)->set("iterations", options_.flow_iterations); ^ video_framework/CMakeFiles/video_framework.dir/build.make:182: recipe for target 'video_framework/CMakeFiles/video_framework.dir/flow_reader.cpp.o' failed make[2]: *** [video_framework/CMakeFiles/video_framework.dir/flow_reader.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:292: recipe for target 'video_framework/CMakeFiles/video_framework.dir/all' failed make[1]: *** [video_framework/CMakeFiles/video_framework.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2