videosegmentation / video_segment

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

Error when building seg_tree_sample #15

Open mkaze opened 9 years ago

mkaze commented 9 years ago

After installing all the required dependencies, I tried to build seg_tree_sample; but unfortunately when I entered sudo make -j4, it gave me the following errors:

[  6%] Built target base
[  9%] [ 12%] Built target imagefilter
Building CXX object segment_util/CMakeFiles/segment_util.dir/segmentation_util.cpp.o
[ 16%] Building CXX object video_framework/CMakeFiles/video_framework.dir/flow_reader.cpp.o

/home/masoud/video_seg/video_segment/segment_util/segmentation_util.cpp: In function ‘void segmentation::RenderShapeDescriptor(const std::vector<int>&, const segmentation::SegmentationDesc&, cv::Mat*, const string*)’:
/home/masoud/video_seg/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/masoud/video_seg/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/masoud/video_seg/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/masoud/video_seg/video_segment/segment_util/segmentation_util.cpp:448:3: error: ‘ellipse’ is not a member of ‘cv’
   cv::ellipse(*output,
   ^
/home/masoud/video_seg/video_segment/video_framework/flow_reader.cpp: In member function ‘virtual bool video_framework::DenseFlowUnit::OpenStreams(video_framework::StreamSet*)’:
/home/masoud/video_seg/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/masoud/video_seg/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);
                    ^
make[2]: *** [segment_util/CMakeFiles/segment_util.dir/segmentation_util.cpp.o] Error 1
make[1]: *** [segment_util/CMakeFiles/segment_util.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [video_framework/CMakeFiles/video_framework.dir/flow_reader.cpp.o] Error 1
make[1]: *** [video_framework/CMakeFiles/video_framework.dir/all] Error 2
make: *** [all] Error 2

I am using Ubuntu 14.04, OpenCV 3.0.0 and ffmpeg 2.8. I didn't encounter any errors during installation of OpenCV and ffmpeg (apart from some warnings during installation of ffmpeg). I couldn't figure out what causes this problem.

grundman commented 9 years ago

OpenCV 3.0 changed a bunch functions and modules, e.g. putText, ellipse went to imgproc module. We haven't updated it yet, but feel free to send us a pull request.

(810) 643-1383 www.mgrundmann.com

On Mon, Oct 5, 2015 at 2:37 PM, mkaze notifications@github.com wrote:

After installing all the required dependencies, I tried to build seg_tree_sample; but unfortunately when I entered sudo make -j4, it gave me the following errors:

[ 6%] Built target base [ 9%] [ 12%] Built target imagefilter Building CXX object segment_util/CMakeFiles/segment_util.dir/segmentation_util.cpp.o [ 16%] Building CXX object video_framework/CMakeFiles/video_framework.dir/flow_reader.cpp.o

/home/masoud/video_seg/video_segment/segment_util/segmentationutil.cpp: In function ‘void segmentation::RenderShapeDescriptor(const std::vector&, const segmentation::SegmentationDesc&, cv::Mat, const string_)’: /home/masoud/video_seg/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/masoud/video_seg/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/masoud/video_seg/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/masoud/video_seg/video_segment/segment_util/segmentation_util.cpp:448:3: error: ‘ellipse’ is not a member of ‘cv’ cv::ellipse(_output, ^ /home/masoud/video_seg/video_segment/video_framework/flow_reader.cpp: In member function ‘virtual bool video_framework::DenseFlowUnit::OpenStreams(videoframework::StreamSet)’: /home/masoud/video_seg/video_segment/video_framework/flow_reader.cpp:191:20: error: ‘class cv::DenseOpticalFlow’ has no member named ‘set’ (_flowengine)->set("warps", options_.num_warps); ^ /home/masoud/video_seg/video_segment/video_framework/flow_reader.cpp:192:20: error: ‘class cv::DenseOpticalFlow’ has no member named ‘set’ (_flowengine)->set("iterations", options_.flow_iterations); ^ make[2]: _* [segment_util/CMakeFiles/segment_util.dir/segmentation_util.cpp.o] Error 1 make[1]: * [segment_util/CMakeFiles/segment_util.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... make[2]: * [video_framework/CMakeFiles/video_framework.dir/flow_reader.cpp.o] Error 1 make[1]: * [video_framework/CMakeFiles/video_framework.dir/all] Error 2 make: *\ [all] Error 2

I am using Ubuntu 14.04, OpenCV 3.0.0 and ffmpeg 2.8. I didn't encountered any errors during installation of OpenCV and ffmpeg (apart from some warnings during installation of ffmpeg). I couldn't figure out what causes this problem.

— Reply to this email directly or view it on GitHub https://github.com/videosegmentation/video_segment/issues/15.