google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.76k stars 5.18k forks source link

How to build the desktop example on CENTOS 7 with GPU only or with CPU only. #2264

Closed Tortoise17 closed 3 years ago

Tortoise17 commented 3 years ago

I am using CENTOS 7 and trying to compile and build the desktop example.

the error is ERROR: /user/home/mediapipe-master/mediapipe/examples/desktop/face_detection/BUILD:27:10: Linking of rule '//mediapipe/examples/desktop/face_detection:face_detection_cpu' failed (Exit 1): gcc failed: error executing command /usr/local/bin/gcc @bazel-out/k8-opt/bin/mediapipe/examples/desktop/face_detection/face_detection_cpu-2.params

which I think corresponds to the conflict of CPU or GPU. Maybe the experts can guide what or why is the issue. If you can help would be kind to resolve the issue.

I have GPU and CUDA installed.

sgowroji commented 3 years ago

Hi @Tortoise17, Could you please fetch the latest repo and try building. That will solve the issue.

Tortoise17 commented 3 years ago

HI @sgowroji Thank you. I again cloned this branch from your archive today. I am using tensorflow (recent version). I tried with and without GPU but, ``ERROR: /user/local/media2/mediapipe-0.8.6/mediapipe/examples/desktop/face_detection/BUILD:27:10: Linking of rule '//mediapipe/examples/desktop/face_detection:face_detection_cpu' failed (Exit 1): gcc failed: error executing command /usr/local/bin/gcc @bazel-out/k8-opt/bin/mediapipe/examples/desktop/face_detection/face_detection_cpu-2.params ``

this is from that branch. Is this due to the bazel or gcc version? or something else. ? I am using gcc 8.3.0and bazel 3.7.2

Tortoise17 commented 3 years ago

@sgowroji can you tell me which gcc version is the demand of this tool? I tried only building autoflip and it also didn't work.

problem starts from here I think.

 INFO: From ProtoCompile mediapipe/calculators/image/scale_image_calculator.pb.h:
bazel-out/k8-opt/bin/external/com_google_protobuf/src: warning: directory does not exist.

so, for CENTOS particularly, mention the OpenCV version exact one, and bazel version, gcc version.

Tortoise17 commented 3 years ago

complete error @sgowroji :


$ bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/autoflip:run_autoflip
DEBUG: /home/lab/.cache/bazel/_bazel_lab/0ea30c92976ae045d41f84289dad1f53/external/org_tensorflow/third_party/repo.bzl:108:14: 
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /home/lab/.cache/bazel/_bazel_lab/0ea30c92976ae045d41f84289dad1f53/external/org_tensorflow/third_party/repo.bzl:108:14: 
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /home/lab/.cache/bazel/_bazel_lab/0ea30c92976ae045d41f84289dad1f53/external/org_tensorflow/third_party/repo.bzl:108:14: 
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /home/lab/.cache/bazel/_bazel_lab/0ea30c92976ae045d41f84289dad1f53/external/org_tensorflow/third_party/repo.bzl:108:14: 
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /home/lab/.cache/bazel/_bazel_lab/0ea30c92976ae045d41f84289dad1f53/external/org_tensorflow/third_party/repo.bzl:108:14: 
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /home/lab/.cache/bazel/_bazel_lab/0ea30c92976ae045d41f84289dad1f53/external/org_tensorflow/third_party/repo.bzl:108:14: 
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /home/lab/.cache/bazel/_bazel_lab/0ea30c92976ae045d41f84289dad1f53/external/org_tensorflow/third_party/repo.bzl:108:14: 
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /home/lab/.cache/bazel/_bazel_lab/0ea30c92976ae045d41f84289dad1f53/external/org_tensorflow/third_party/repo.bzl:108:14: 
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: /home/lab/.cache/bazel/_bazel_lab/0ea30c92976ae045d41f84289dad1f53/external/org_tensorflow/third_party/repo.bzl:108:14: 
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /home/lab/.cache/bazel/_bazel_lab/0ea30c92976ae045d41f84289dad1f53/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
INFO: Analyzed target //mediapipe/examples/desktop/autoflip:run_autoflip (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /run/media/lab/video_lab/media2/mediapipe-0.8.6/mediapipe/examples/desktop/autoflip/BUILD:39:10: Linking of rule '//mediapipe/examples/desktop/autoflip:run_autoflip' failed (Exit 1): gcc failed: error executing command /usr/local/bin/gcc @bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/run_autoflip-2.params

Use --sandbox_debug to see verbose messages from the sandbox gcc failed: error executing command /usr/local/bin/gcc @bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/run_autoflip-2.params

Use --sandbox_debug to see verbose messages from the sandbox
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/scale_image_calculator/scale_image_calculator.o:scale_image_calculator.cc:function mediapipe::ScaleImageCalculator::Process(mediapipe::CalculatorContext*) [clone .cold.426]: error: undefined reference to 'cv::Mat::~Mat()'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/scale_image_calculator/scale_image_calculator.o:scale_image_calculator.cc:function mediapipe::ScaleImageCalculator::Process(mediapipe::CalculatorContext*) [clone .cold.426]: error: undefined reference to 'cv::Mat::~Mat()'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/scale_image_calculator/scale_image_calculator.o:scale_image_calculator.cc:function mediapipe::ScaleImageCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/scale_image_calculator/scale_image_calculator.o:scale_image_calculator.cc:function mediapipe::ScaleImageCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::~Mat()'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/scale_image_calculator/scale_image_calculator.o:scale_image_calculator.cc:function mediapipe::ScaleImageCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::~Mat()'
bazel-out/k8-opt/bin/mediapipe/util/_objs/image_frame_util/image_frame_util.o:image_frame_util.cc:function mediapipe::image_frame_util::GetSrgbToLinearRgb16Lut(): error: undefined reference to 'cv::Mat::Mat(int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/image_frame_util/image_frame_util.o:image_frame_util.cc:function mediapipe::image_frame_util::GetLinearRgb16ToSrgbLut(): error: undefined reference to 'cv::Mat::Mat(int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/image_frame_util/image_frame_util.o:image_frame_util.cc:function mediapipe::image_frame_util::SrgbToLinearRgb16(cv::Mat const&, cv::Mat*): error: undefined reference to 'cv::LUT(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/image_frame_util/image_frame_util.o:image_frame_util.cc:function mediapipe::image_frame_util::LinearRgb16ToSrgb(cv::Mat const&, cv::Mat*): error: undefined reference to 'cv::Mat::create(cv::Size_<int>, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/image_frame_util/image_frame_util.o:image_frame_util.cc:function mediapipe::image_frame_util::RescaleSrgbImage(cv::Mat const&, int, int, int, cv::Mat*): error: undefined reference to 'cv::Mat::Mat()'
bazel-out/k8-opt/bin/mediapipe/util/_objs/image_frame_util/image_frame_util.o:image_frame_util.cc:function mediapipe::image_frame_util::RescaleSrgbImage(cv::Mat const&, int, int, int, cv::Mat*): error: undefined reference to 'cv::Mat::Mat()'
bazel-out/k8-opt/bin/mediapipe/util/_objs/image_frame_util/image_frame_util.o:image_frame_util.cc:function mediapipe::image_frame_util::RescaleSrgbImage(cv::Mat const&, int, int, int, cv::Mat*): error: undefined reference to 'cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::FindDominantColor(cv::Mat const&, mediapipe::autoflip::Color*): error: undefined reference to 'cv::Mat::Mat()'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::FindDominantColor(cv::Mat const&, mediapipe::autoflip::Color*): error: undefined reference to 'cv::Mat::total() const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::FindDominantColor(cv::Mat const&, mediapipe::autoflip::Color*): error: undefined reference to 'cv::Mat::total() const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::FindDominantColor(cv::Mat const&, mediapipe::autoflip::Color*): error: undefined reference to 'cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::FindDominantColor(cv::Mat const&, mediapipe::autoflip::Color*): error: undefined reference to 'cv::Mat::Mat()'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::FindDominantColor(cv::Mat const&, mediapipe::autoflip::Color*): error: undefined reference to 'cv::Mat::convertTo(cv::_OutputArray const&, int, double, double) const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::FindDominantColor(cv::Mat const&, mediapipe::autoflip::Color*): error: undefined reference to 'cv::Mat::total() const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::FindDominantColor(cv::Mat const&, mediapipe::autoflip::Color*): error: undefined reference to 'cv::Mat::reshape(int, int) const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::FindDominantColor(cv::Mat const&, mediapipe::autoflip::Color*): error: undefined reference to 'cv::kmeans(cv::_InputArray const&, int, cv::_InputOutputArray const&, cv::TermCriteria, int, int, cv::_OutputArray const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::FindDominantColor(cv::Mat const&, mediapipe::autoflip::Color*): error: undefined reference to 'cv::Mat::operator=(cv::Mat const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::DetectBorder(cv::Mat const&, mediapipe::autoflip::Color const&, mediapipe::autoflip::Border_RelativePosition const&, mediapipe::autoflip::StaticFeatures*): error: undefined reference to 'cv::Mat::Mat(cv::Mat const&, cv::Rect_<int> const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::Mat(cv::Mat const&, cv::Rect_<int> const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::Mat(cv::Mat const&, cv::Rect_<int> const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/border_detection_calculator/border_detection_calculator.o:border_detection_calculator.cc:function mediapipe::autoflip::BorderDetectionCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::Mat(cv::Mat const&, cv::Rect_<int> const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/face_to_region_calculator/face_to_region_calculator.o:face_to_region_calculator.cc:function mediapipe::autoflip::FaceToRegionCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::release()'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/face_to_region_calculator/face_to_region_calculator.o:face_to_region_calculator.cc:function mediapipe::autoflip::FaceToRegionCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::fastFree(void*)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/visual_scorer/visual_scorer.o:visual_scorer.cc:function mediapipe::autoflip::VisualScorer::CalculateColorfulness(cv::Mat const&, float*) const: error: undefined reference to 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/visual_scorer/visual_scorer.o:visual_scorer.cc:function mediapipe::autoflip::VisualScorer::CalculateColorfulness(cv::Mat const&, float*) const: error: undefined reference to 'cv::Mat::Mat(int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/visual_scorer/visual_scorer.o:visual_scorer.cc:function mediapipe::autoflip::VisualScorer::CalculateColorfulness(cv::Mat const&, float*) const: error: undefined reference to 'cv::calcHist(cv::Mat const*, int, int const*, cv::_InputArray const&, cv::_OutputArray const&, int, int const*, float const**, bool, bool)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function void std::vector<cv::Mat, std::allocator<cv::Mat> >::_M_realloc_insert<cv::Mat const&>(__gnu_cxx::__normal_iterator<cv::Mat*, std::vector<cv::Mat, std::allocator<cv::Mat> > >, cv::Mat const&): error: undefined reference to 'cv::Mat::Mat(cv::Mat const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function void std::vector<cv::Mat, std::allocator<cv::Mat> >::_M_realloc_insert<cv::Mat const&>(__gnu_cxx::__normal_iterator<cv::Mat*, std::vector<cv::Mat, std::allocator<cv::Mat> > >, cv::Mat const&): error: undefined reference to 'cv::Mat::Mat(cv::Mat const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function void std::vector<cv::Mat, std::allocator<cv::Mat> >::_M_realloc_insert<cv::Mat const&>(__gnu_cxx::__normal_iterator<cv::Mat*, std::vector<cv::Mat, std::allocator<cv::Mat> > >, cv::Mat const&): error: undefined reference to 'cv::Mat::Mat(cv::Mat const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function void std::vector<cv::Mat, std::allocator<cv::Mat> >::_M_realloc_insert<cv::Mat const&>(__gnu_cxx::__normal_iterator<cv::Mat*, std::vector<cv::Mat, std::allocator<cv::Mat> > >, cv::Mat const&): error: undefined reference to 'cv::Mat::Mat(cv::Mat const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::FormatAndOutputCroppedFrames(int, int, int, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, bool*, std::vector<cv::Scalar_<double>, std::allocator<cv::Scalar_<double> > >*, float*, std::vector<cv::Mat, std::allocator<cv::Mat> > const*, mediapipe::CalculatorContext*) [clone .cold.743]: error: undefined reference to 'cv::Mat::~Mat()'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::FormatAndOutputCroppedFrames(int, int, int, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, bool*, std::vector<cv::Scalar_<double>, std::allocator<cv::Scalar_<double> > >*, float*, std::vector<cv::Mat, std::allocator<cv::Mat> > const*, mediapipe::CalculatorContext*) [clone .cold.743]: error: undefined reference to 'cv::Mat::~Mat()'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::FormatAndOutputCroppedFrames(int, int, int, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, bool*, std::vector<cv::Scalar_<double>, std::allocator<cv::Scalar_<double> > >*, float*, std::vector<cv::Mat, std::allocator<cv::Mat> > const*, mediapipe::CalculatorContext*) [clone .cold.743]: error: undefined reference to 'cv::Mat::~Mat()'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::FormatAndOutputCroppedFrames(int, int, int, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, bool*, std::vector<cv::Scalar_<double>, std::allocator<cv::Scalar_<double> > >*, float*, std::vector<cv::Mat, std::allocator<cv::Mat> > const*, mediapipe::CalculatorContext*): error: undefined reference to 'cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::FormatAndOutputCroppedFrames(int, int, int, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, bool*, std::vector<cv::Scalar_<double>, std::allocator<cv::Scalar_<double> > >*, float*, std::vector<cv::Mat, std::allocator<cv::Mat> > const*, mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::Mat(int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::FormatAndOutputCroppedFrames(int, int, int, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, bool*, std::vector<cv::Scalar_<double>, std::allocator<cv::Scalar_<double> > >*, float*, std::vector<cv::Mat, std::allocator<cv::Mat> > const*, mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::operator=(cv::Scalar_<double> const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::FormatAndOutputCroppedFrames(int, int, int, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, bool*, std::vector<cv::Scalar_<double>, std::allocator<cv::Scalar_<double> > >*, float*, std::vector<cv::Mat, std::allocator<cv::Mat> > const*, mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::Mat(int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::FormatAndOutputCroppedFrames(int, int, int, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, bool*, std::vector<cv::Scalar_<double>, std::allocator<cv::Scalar_<double> > >*, float*, std::vector<cv::Mat, std::allocator<cv::Mat> > const*, mediapipe::CalculatorContext*): error: undefined reference to 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::FormatAndOutputCroppedFrames(int, int, int, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, bool*, std::vector<cv::Scalar_<double>, std::allocator<cv::Scalar_<double> > >*, float*, std::vector<cv::Mat, std::allocator<cv::Mat> > const*, mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::convertTo(cv::_OutputArray const&, int, double, double) const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::FormatAndOutputCroppedFrames(int, int, int, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, bool*, std::vector<cv::Scalar_<double>, std::allocator<cv::Scalar_<double> > >*, float*, std::vector<cv::Mat, std::allocator<cv::Mat> > const*, mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::~Mat()'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::FormatAndOutputCroppedFrames(int, int, int, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, bool*, std::vector<cv::Scalar_<double>, std::allocator<cv::Scalar_<double> > >*, float*, std::vector<cv::Mat, std::allocator<cv::Mat> > const*, mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::copyTo(cv::_OutputArray const&) const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::RemoveStaticBorders(mediapipe::CalculatorContext*, int*, int*): error: undefined reference to 'cv::Mat::copyTo(cv::_OutputArray const&) const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::RemoveStaticBorders(mediapipe::CalculatorContext*, int*, int*): error: undefined reference to 'cv::Mat::operator=(cv::Mat const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/scene_cropping_calculator/scene_cropping_calculator.o:scene_cropping_calculator.cc:function mediapipe::autoflip::SceneCroppingCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::copyTo(cv::_OutputArray const&) const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/padding_effect_generator/padding_effect_generator.o:padding_effect_generator.cc:function mediapipe::autoflip::PaddingEffectGenerator::Process(mediapipe::ImageFrame const&, float, int, float, mediapipe::ImageFrame*, cv::Scalar_<double> const*): error: undefined reference to 'cv::Mat::Mat(int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/padding_effect_generator/padding_effect_generator.o:padding_effect_generator.cc:function mediapipe::autoflip::PaddingEffectGenerator::Process(mediapipe::ImageFrame const&, float, int, float, mediapipe::ImageFrame*, cv::Scalar_<double> const*): error: undefined reference to 'cv::Mat::operator=(cv::Scalar_<double> const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/padding_effect_generator/padding_effect_generator.o:padding_effect_generator.cc:function mediapipe::autoflip::PaddingEffectGenerator::Process(mediapipe::ImageFrame const&, float, int, float, mediapipe::ImageFrame*, cv::Scalar_<double> const*): error: undefined reference to 'cv::Mat::t() const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/padding_effect_generator/padding_effect_generator.o:padding_effect_generator.cc:function mediapipe::autoflip::PaddingEffectGenerator::Process(mediapipe::ImageFrame const&, float, int, float, mediapipe::ImageFrame*, cv::Scalar_<double> const*): error: undefined reference to 'cv::Mat::t() const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/padding_effect_generator/padding_effect_generator.o:padding_effect_generator.cc:function mediapipe::autoflip::PaddingEffectGenerator::Process(mediapipe::ImageFrame const&, float, int, float, mediapipe::ImageFrame*, cv::Scalar_<double> const*): error: undefined reference to 'cv::Mat::t() const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/padding_effect_generator/padding_effect_generator.o:padding_effect_generator.cc:function mediapipe::autoflip::PaddingEffectGenerator::Process(mediapipe::ImageFrame const&, float, int, float, mediapipe::ImageFrame*, cv::Scalar_<double> const*): error: undefined reference to 'cv::Mat::copyTo(cv::_OutputArray const&) const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/padding_effect_generator/padding_effect_generator.o:padding_effect_generator.cc:function mediapipe::autoflip::PaddingEffectGenerator::Process(mediapipe::ImageFrame const&, float, int, float, mediapipe::ImageFrame*, cv::Scalar_<double> const*): error: undefined reference to 'cv::GaussianBlur(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/padding_effect_generator/padding_effect_generator.o:padding_effect_generator.cc:function mediapipe::autoflip::PaddingEffectGenerator::Process(mediapipe::ImageFrame const&, float, int, float, mediapipe::ImageFrame*, cv::Scalar_<double> const*): error: undefined reference to 'cv::GaussianBlur(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_<int>, double, double, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/padding_effect_generator/padding_effect_generator.o:padding_effect_generator.cc:function mediapipe::autoflip::PaddingEffectGenerator::Process(mediapipe::ImageFrame const&, float, int, float, mediapipe::ImageFrame*, cv::Scalar_<double> const*): error: undefined reference to 'cv::Mat::zeros(cv::Size_<int>, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/padding_effect_generator/padding_effect_generator.o:padding_effect_generator.cc:function mediapipe::autoflip::PaddingEffectGenerator::Process(mediapipe::ImageFrame const&, float, int, float, mediapipe::ImageFrame*, cv::Scalar_<double> const*): error: undefined reference to 'cv::addWeighted(cv::_InputArray const&, double, cv::_InputArray const&, double, double, cv::_OutputArray const&, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/padding_effect_generator/padding_effect_generator.o:padding_effect_generator.cc:function mediapipe::autoflip::PaddingEffectGenerator::Process(mediapipe::ImageFrame const&, float, int, float, mediapipe::ImageFrame*, cv::Scalar_<double> const*): error: undefined reference to 'cv::Mat::convertTo(cv::_OutputArray const&, int, double, double) const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/scene_cropper/scene_cropper.o:scene_cropper.cc:function mediapipe::autoflip::SceneCropper::ProcessKinematicPathSolver(mediapipe::autoflip::SceneKeyFrameCropSummary const&, std::vector<long, std::allocator<long> > const&, std::vector<bool, std::allocator<bool> > const&, std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, bool, std::vector<cv::Mat, std::allocator<cv::Mat> >*): error: undefined reference to 'cv::Mat::eye(int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/scene_cropper/scene_cropper.o:scene_cropper.cc:function mediapipe::autoflip::SceneCropper::CropFrames(mediapipe::autoflip::SceneKeyFrameCropSummary const&, std::vector<long, std::allocator<long> > const&, std::vector<bool, std::allocator<bool> > const&, std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, int, int, bool, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, std::vector<cv::Mat, std::allocator<cv::Mat> >*): error: undefined reference to 'cv::Mat::zeros(int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/scene_cropper/scene_cropper.o:scene_cropper.cc:function mediapipe::autoflip::SceneCropper::CropFrames(mediapipe::autoflip::SceneKeyFrameCropSummary const&, std::vector<long, std::allocator<long> > const&, std::vector<bool, std::allocator<bool> > const&, std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, int, int, bool, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, std::vector<cv::Mat, std::allocator<cv::Mat> >*): error: undefined reference to 'cv::Mat::eye(int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/scene_cropper/scene_cropper.o:scene_cropper.cc:function mediapipe::autoflip::SceneCropper::CropFrames(mediapipe::autoflip::SceneKeyFrameCropSummary const&, std::vector<long, std::allocator<long> > const&, std::vector<bool, std::allocator<bool> > const&, std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, int, int, bool, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >*, std::vector<cv::Mat, std::allocator<cv::Mat> >*): error: undefined reference to 'cv::Mat::operator=(cv::Mat const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/polynomial_regression_path_solver/polynomial_regression_path_solver.o:polynomial_regression_path_solver.cc:function mediapipe::autoflip::PolynomialRegressionPathSolver::ComputeCameraPath(std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, int, int, int, int, std::vector<cv::Mat, std::allocator<cv::Mat> >*): error: undefined reference to 'cv::Mat::eye(int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/scene_cropping_viz/scene_cropping_viz.o:scene_cropping_viz.cc:function mediapipe::autoflip::DrawDetectionsAndCropRegions(std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<bool, std::allocator<bool> > const&, std::vector<mediapipe::autoflip::KeyFrameInfo, std::allocator<mediapipe::autoflip::KeyFrameInfo> > const&, std::vector<mediapipe::autoflip::KeyFrameCropResult, std::allocator<mediapipe::autoflip::KeyFrameCropResult> > const&, mediapipe::ImageFormat_Format, std::vector<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> >, std::allocator<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> > > >*): error: undefined reference to 'cv::rectangle(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/scene_cropping_viz/scene_cropping_viz.o:scene_cropping_viz.cc:function mediapipe::autoflip::DrawDetectionsAndCropRegions(std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<bool, std::allocator<bool> > const&, std::vector<mediapipe::autoflip::KeyFrameInfo, std::allocator<mediapipe::autoflip::KeyFrameInfo> > const&, std::vector<mediapipe::autoflip::KeyFrameCropResult, std::allocator<mediapipe::autoflip::KeyFrameCropResult> > const&, mediapipe::ImageFormat_Format, std::vector<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> >, std::allocator<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> > > >*): error: undefined reference to 'cv::rectangle(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/scene_cropping_viz/scene_cropping_viz.o:scene_cropping_viz.cc:function mediapipe::autoflip::DrawDetectionAndFramingWindow(std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > > const&, mediapipe::ImageFormat_Format, float, std::vector<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> >, std::allocator<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> > > >*): error: undefined reference to 'cv::Mat::zeros(cv::Size_<int>, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/scene_cropping_viz/scene_cropping_viz.o:scene_cropping_viz.cc:function mediapipe::autoflip::DrawDetectionAndFramingWindow(std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > > const&, mediapipe::ImageFormat_Format, float, std::vector<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> >, std::allocator<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> > > >*): error: undefined reference to 'cv::addWeighted(cv::_InputArray const&, double, cv::_InputArray const&, double, double, cv::_OutputArray const&, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/scene_cropping_viz/scene_cropping_viz.o:scene_cropping_viz.cc:function mediapipe::autoflip::DrawFocusPointAndCropWindow(std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, float, int, int, mediapipe::ImageFormat_Format, std::vector<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> >, std::allocator<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> > > >*): error: undefined reference to 'cv::Mat::clone() const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/scene_cropping_viz/scene_cropping_viz.o:scene_cropping_viz.cc:function mediapipe::autoflip::DrawFocusPointAndCropWindow(std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, float, int, int, mediapipe::ImageFormat_Format, std::vector<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> >, std::allocator<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> > > >*): error: undefined reference to 'cv::Mat::zeros(cv::Size_<int>, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/scene_cropping_viz/scene_cropping_viz.o:scene_cropping_viz.cc:function mediapipe::autoflip::DrawFocusPointAndCropWindow(std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, float, int, int, mediapipe::ImageFormat_Format, std::vector<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> >, std::allocator<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> > > >*): error: undefined reference to 'cv::addWeighted(cv::_InputArray const&, double, cv::_InputArray const&, double, double, cv::_OutputArray const&, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/scene_cropping_viz/scene_cropping_viz.o:scene_cropping_viz.cc:function mediapipe::autoflip::DrawFocusPointAndCropWindow(std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<mediapipe::autoflip::FocusPointFrame, std::allocator<mediapipe::autoflip::FocusPointFrame> > const&, float, int, int, mediapipe::ImageFormat_Format, std::vector<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> >, std::allocator<std::unique_ptr<mediapipe::ImageFrame, std::default_delete<mediapipe::ImageFrame> > > >*): error: undefined reference to 'cv::circle(cv::_InputOutputArray const&, cv::Point_<int>, int, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/utils/utils.o:utils.cc:function mediapipe::autoflip::FindSolidBackgroundColor(std::vector<mediapipe::autoflip::StaticFeatures, std::allocator<mediapipe::autoflip::StaticFeatures> > const&, std::vector<long, std::allocator<long> > const&, double, bool*, mediapipe::autoflip::PiecewiseLinearFunction*, mediapipe::autoflip::PiecewiseLinearFunction*, mediapipe::autoflip::PiecewiseLinearFunction*): error: undefined reference to 'cv::Mat::Mat(int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/utils/utils.o:utils.cc:function mediapipe::autoflip::FindSolidBackgroundColor(std::vector<mediapipe::autoflip::StaticFeatures, std::allocator<mediapipe::autoflip::StaticFeatures> > const&, std::vector<long, std::allocator<long> > const&, double, bool*, mediapipe::autoflip::PiecewiseLinearFunction*, mediapipe::autoflip::PiecewiseLinearFunction*, mediapipe::autoflip::PiecewiseLinearFunction*): error: undefined reference to 'cv::Mat::operator=(cv::Scalar_<double> const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/utils/utils.o:utils.cc:function mediapipe::autoflip::FindSolidBackgroundColor(std::vector<mediapipe::autoflip::StaticFeatures, std::allocator<mediapipe::autoflip::StaticFeatures> > const&, std::vector<long, std::allocator<long> > const&, double, bool*, mediapipe::autoflip::PiecewiseLinearFunction*, mediapipe::autoflip::PiecewiseLinearFunction*, mediapipe::autoflip::PiecewiseLinearFunction*): error: undefined reference to 'cv::Mat::convertTo(cv::_OutputArray const&, int, double, double) const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/utils/utils.o:utils.cc:function mediapipe::autoflip::FindSolidBackgroundColor(std::vector<mediapipe::autoflip::StaticFeatures, std::allocator<mediapipe::autoflip::StaticFeatures> > const&, std::vector<long, std::allocator<long> > const&, double, bool*, mediapipe::autoflip::PiecewiseLinearFunction*, mediapipe::autoflip::PiecewiseLinearFunction*, mediapipe::autoflip::PiecewiseLinearFunction*): error: undefined reference to 'cv::Mat::Mat(int, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/utils/utils.o:utils.cc:function mediapipe::autoflip::FindSolidBackgroundColor(std::vector<mediapipe::autoflip::StaticFeatures, std::allocator<mediapipe::autoflip::StaticFeatures> > const&, std::vector<long, std::allocator<long> > const&, double, bool*, mediapipe::autoflip::PiecewiseLinearFunction*, mediapipe::autoflip::PiecewiseLinearFunction*, mediapipe::autoflip::PiecewiseLinearFunction*): error: undefined reference to 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/quality/_objs/utils/utils.o:utils.cc:function mediapipe::autoflip::AffineRetarget(cv::Size_<int> const&, std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<cv::Mat, std::allocator<cv::Mat> > const&, std::vector<cv::Mat, std::allocator<cv::Mat> >*): error: undefined reference to 'cv::warpAffine(cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, cv::Size_<int>, int, int, cv::Scalar_<double> const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/shot_boundary_calculator/shot_boundary_calculator.o:shot_boundary_calculator.cc:function mediapipe::autoflip::ShotBoundaryCalculator::ComputeHistogram(cv::Mat const&, cv::Mat*): error: undefined reference to 'cv::Mat::clone() const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/shot_boundary_calculator/shot_boundary_calculator.o:shot_boundary_calculator.cc:function mediapipe::autoflip::ShotBoundaryCalculator::ComputeHistogram(cv::Mat const&, cv::Mat*): error: undefined reference to 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/shot_boundary_calculator/shot_boundary_calculator.o:shot_boundary_calculator.cc:function mediapipe::autoflip::ShotBoundaryCalculator::ComputeHistogram(cv::Mat const&, cv::Mat*): error: undefined reference to 'cv::noArray()'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/shot_boundary_calculator/shot_boundary_calculator.o:shot_boundary_calculator.cc:function mediapipe::autoflip::ShotBoundaryCalculator::ComputeHistogram(cv::Mat const&, cv::Mat*): error: undefined reference to 'cv::minMaxLoc(cv::_InputArray const&, double*, double*, cv::Point_<int>*, cv::Point_<int>*, cv::_InputArray const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/shot_boundary_calculator/shot_boundary_calculator.o:shot_boundary_calculator.cc:function mediapipe::autoflip::ShotBoundaryCalculator::ComputeHistogram(cv::Mat const&, cv::Mat*): error: undefined reference to 'cv::equalizeHist(cv::_InputArray const&, cv::_OutputArray const&)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/shot_boundary_calculator/shot_boundary_calculator.o:shot_boundary_calculator.cc:function mediapipe::autoflip::ShotBoundaryCalculator::ComputeHistogram(cv::Mat const&, cv::Mat*): error: undefined reference to 'cv::calcHist(cv::Mat const*, int, int const*, cv::_InputArray const&, cv::_OutputArray const&, int, int const*, float const**, bool, bool)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/shot_boundary_calculator/shot_boundary_calculator.o:shot_boundary_calculator.cc:function mediapipe::autoflip::ShotBoundaryCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::clone() const'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/shot_boundary_calculator/shot_boundary_calculator.o:shot_boundary_calculator.cc:function mediapipe::autoflip::ShotBoundaryCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::compareHist(cv::_InputArray const&, cv::_InputArray const&, int)'
bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/shot_boundary_calculator/shot_boundary_calculator.o:shot_boundary_calculator.cc:function mediapipe::autoflip::ShotBoundaryCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::operator=(cv::Mat const&)'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/image_transformation_calculator/image_transformation_calculator.o:image_transformation_calculator.cc:function mediapipe::ImageTransformationCalculator::RenderCpu(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::release()'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/image_transformation_calculator/image_transformation_calculator.o:image_transformation_calculator.cc:function mediapipe::ImageTransformationCalculator::RenderCpu(mediapipe::CalculatorContext*): error: undefined reference to 'cv::fastFree(void*)'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/image_transformation_calculator/image_transformation_calculator.o:image_transformation_calculator.cc:function mediapipe::ImageTransformationCalculator::RenderCpu(mediapipe::CalculatorContext*): error: undefined reference to 'cv::flip(cv::_InputArray const&, cv::_OutputArray const&, int)'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/image_transformation_calculator/image_transformation_calculator.o:image_transformation_calculator.cc:function mediapipe::ImageTransformationCalculator::RenderCpu(mediapipe::CalculatorContext*): error: undefined reference to 'cv::rotate(cv::_InputArray const&, cv::_OutputArray const&, int)'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/image_transformation_calculator/image_transformation_calculator.o:image_transformation_calculator.cc:function mediapipe::ImageTransformationCalculator::RenderCpu(mediapipe::CalculatorContext*): error: undefined reference to 'cv::rotate(cv::_InputArray const&, cv::_OutputArray const&, int)'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/image_transformation_calculator/image_transformation_calculator.o:image_transformation_calculator.cc:function mediapipe::ImageTransformationCalculator::RenderCpu(mediapipe::CalculatorContext*): error: undefined reference to 'cv::rotate(cv::_InputArray const&, cv::_OutputArray const&, int)'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/image_transformation_calculator/image_transformation_calculator.o:image_transformation_calculator.cc:function mediapipe::ImageTransformationCalculator::RenderCpu(mediapipe::CalculatorContext*): error: undefined reference to 'cv::copyMakeBorder(cv::_InputArray const&, cv::_OutputArray const&, int, int, int, int, int, cv::Scalar_<double> const&)'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/image_transformation_calculator/image_transformation_calculator.o:image_transformation_calculator.cc:function mediapipe::ImageTransformationCalculator::RenderCpu(mediapipe::CalculatorContext*): error: undefined reference to 'cv::getRotationMatrix2D(cv::Point_<float>, double, double)'
bazel-out/k8-opt/bin/mediapipe/calculators/image/_objs/image_transformation_calculator/image_transformation_calculator.o:image_transformation_calculator.cc:function mediapipe::ImageTransformationCalculator::RenderCpu(mediapipe::CalculatorContext*): error: undefined reference to 'cv::warpAffine(cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, cv::Size_<int>, int, int, cv::Scalar_<double> const&)'
bazel-out/k8-opt/bin/mediapipe/calculators/util/_objs/annotation_overlay_calculator/annotation_overlay_calculator.o:annotation_overlay_calculator.cc:function mediapipe::AnnotationOverlayCalculator::CreateRenderTargetCpu(mediapipe::CalculatorContext*, std::unique_ptr<cv::Mat, std::default_delete<cv::Mat> >&, mediapipe::ImageFormat_Format*): error: undefined reference to 'cv::Mat::Mat(int, int, int, cv::Scalar_<double> const&)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawRoundedRectangle(cv::Mat, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int): error: undefined reference to 'cv::line(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawRoundedRectangle(cv::Mat, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int): error: undefined reference to 'cv::line(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawRoundedRectangle(cv::Mat, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int): error: undefined reference to 'cv::line(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawRoundedRectangle(cv::Mat, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int): error: undefined reference to 'cv::line(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawRoundedRectangle(cv::Mat, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int): error: undefined reference to 'cv::ellipse(cv::_InputOutputArray const&, cv::Point_<int>, cv::Size_<int>, double, double, double, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawRoundedRectangle(cv::Mat, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int): error: undefined reference to 'cv::ellipse(cv::_InputOutputArray const&, cv::Point_<int>, cv::Size_<int>, double, double, double, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawRoundedRectangle(cv::Mat, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int): error: undefined reference to 'cv::ellipse(cv::_InputOutputArray const&, cv::Point_<int>, cv::Size_<int>, double, double, double, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawRoundedRectangle(cv::Mat, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int): error: undefined reference to 'cv::ellipse(cv::_InputOutputArray const&, cv::Point_<int>, cv::Size_<int>, double, double, double, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawRectangle(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::RotatedRect::points(cv::Point_<float>*) const'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawRectangle(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::rectangle(cv::Mat&, cv::Rect_<int>, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawFilledRectangle(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::RotatedRect::points(cv::Point_<float>*) const'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawFilledRectangle(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::fillConvexPoly(cv::Mat&, cv::Point_<int> const*, int, cv::Scalar_<double> const&, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawFilledRectangle(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::rectangle(cv::Mat&, cv::Rect_<int>, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawPoint(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::circle(cv::_InputOutputArray const&, cv::Point_<int>, int, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawGradientLine(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::LineIterator::LineIterator(cv::Mat const&, cv::Point_<int>, cv::Point_<int>, int, bool)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawGradientLine(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::rectangle(cv::Mat&, cv::Rect_<int>, cv::Scalar_<double> const&, int, int, int)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawText(mediapipe::RenderAnnotation const&) [clone .cold.81]: error: undefined reference to 'cv::String::deallocate()'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawText(mediapipe::RenderAnnotation const&) [clone .cold.81]: error: undefined reference to 'cv::String::deallocate()'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawText(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::getTextSize(cv::String const&, int, double, int, int*)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawText(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::String::deallocate()'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawText(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::putText(cv::_InputOutputArray const&, cv::String const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawText(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::String::deallocate()'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawText(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::String::allocate(unsigned long)'
bazel-out/k8-opt/bin/mediapipe/util/_objs/annotation_renderer/annotation_renderer.o:annotation_renderer.cc:function mediapipe::AnnotationRenderer::DrawText(mediapipe::RenderAnnotation const&): error: undefined reference to 'cv::String::allocate(unsigned long)'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_decoder_calculator/opencv_video_decoder_calculator.o:opencv_video_decoder_calculator.cc:function mediapipe::OpenCvVideoDecoderCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::empty() const'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_decoder_calculator/opencv_video_decoder_calculator.o:opencv_video_decoder_calculator.cc:function mediapipe::OpenCvVideoDecoderCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::empty() const'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_decoder_calculator/opencv_video_decoder_calculator.o:opencv_video_decoder_calculator.cc:function mediapipe::OpenCvVideoDecoderCalculator::Open(mediapipe::CalculatorContext*): error: undefined reference to 'cv::VideoCapture::VideoCapture(cv::String const&)'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_decoder_calculator/opencv_video_decoder_calculator.o:opencv_video_decoder_calculator.cc:function mediapipe::OpenCvVideoDecoderCalculator::Open(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::empty() const'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_decoder_calculator/opencv_video_decoder_calculator.o:opencv_video_decoder_calculator.cc:function mediapipe::OpenCvVideoDecoderCalculator::Open(mediapipe::CalculatorContext*): error: undefined reference to 'cv::String::allocate(unsigned long)'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_decoder_calculator/opencv_video_decoder_calculator.o:opencv_video_decoder_calculator.cc:function mediapipe::OpenCvVideoDecoderCalculator::Open(mediapipe::CalculatorContext*): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_encoder_calculator/opencv_video_encoder_calculator.o:opencv_video_encoder_calculator.cc:function mediapipe::OpenCvVideoEncoderCalculator::SetUpVideoWriter(float, int, int): error: undefined reference to 'cv::VideoWriter::VideoWriter(cv::String const&, int, double, cv::Size_<int>, bool)'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_encoder_calculator/opencv_video_encoder_calculator.o:opencv_video_encoder_calculator.cc:function mediapipe::OpenCvVideoEncoderCalculator::SetUpVideoWriter(float, int, int): error: undefined reference to 'cv::String::allocate(unsigned long)'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_encoder_calculator/opencv_video_encoder_calculator.o:opencv_video_encoder_calculator.cc:function mediapipe::OpenCvVideoEncoderCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::empty() const'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_encoder_calculator/opencv_video_encoder_calculator.o:opencv_video_encoder_calculator.cc:function mediapipe::OpenCvVideoEncoderCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::Mat::release()'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_encoder_calculator/opencv_video_encoder_calculator.o:opencv_video_encoder_calculator.cc:function mediapipe::OpenCvVideoEncoderCalculator::Process(mediapipe::CalculatorContext*): error: undefined reference to 'cv::fastFree(void*)'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_encoder_calculator/opencv_video_encoder_calculator.o:opencv_video_encoder_calculator.cc:function mediapipe::OpenCvVideoEncoderCalculator::Close(mediapipe::CalculatorContext*): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
bazel-out/k8-opt/bin/mediapipe/calculators/video/_objs/opencv_video_encoder_calculator/opencv_video_encoder_calculator.o:opencv_video_encoder_calculator.cc:function mediapipe::OpenCvVideoEncoderCalculator::Open(mediapipe::CalculatorContext*): error: undefined reference to 'cv::VideoWriter::fourcc(char, char, char, char)'
bazel-out/k8-opt/bin/mediapipe/framework/formats/_objs/image_frame_opencv/image_frame_opencv.o:image_frame_opencv.cc:function mediapipe::formats::MatView(mediapipe::ImageFrame const*): error: undefined reference to 'cv::Mat::Mat(int, int const*, int, void*, unsigned long const*)'
collect2: error: ld returned 1 exit status
Target //mediapipe/examples/desktop/autoflip:run_autoflip failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.438s, Critical Path: 1.12s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully
sgowroji commented 3 years ago

Try running setup_opencv.sh like this https://github.com/google/mediapipe/issues/563#issuecomment-606204492

Tortoise17 commented 3 years ago

@sgowroji I have installed it. and it didnot help. Same error. The OpenCV version is 3.4.15-dev at the moment. Should I reduce it to 3.4.0? or

google-ml-butler[bot] commented 3 years ago

Are you satisfied with the resolution of your issue? Yes No