Starting local Bazel server and connecting to it...
INFO: Analyzed target //main:main (15 packages loaded, 533 targets configured).
INFO: Found 1 target...
ERROR: /home/prathyusha/Internship/opencv_bazel/opencv/main/BUILD:1:1: Linking of rule '//main:main' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc @bazel-out/k8-fastbuild/bin/main/main-2.params
Use --sandbox_debug to see verbose messages from the sandbox
bazel-out/k8-fastbuild/bin/main/_objs/main/main.pic.o:main.cc:function main: error: undefined reference to 'cv::imread(cv::String const&, int)'
bazel-out/k8-fastbuild/bin/main/_objs/main/main.pic.o:main.cc:function main: error: undefined reference to 'cv::namedWindow(cv::String const&, int)'
bazel-out/k8-fastbuild/bin/main/_objs/main/main.pic.o:main.cc:function main: error: undefined reference to 'cv::imshow(cv::String const&, cv::_InputArray const&)'
bazel-out/k8-fastbuild/bin/main/_objs/main/main.pic.o:main.cc:function cv::String::String(char const*): error: undefined reference to 'cv::String::allocate(unsigned long)'
bazel-out/k8-fastbuild/bin/main/_objs/main/main.pic.o:main.cc:function cv::String::~String(): error: undefined reference to 'cv::String::deallocate()'
bazel-out/k8-fastbuild/bin/main/_objs/main/main.pic.o:main.cc:function cv::String::operator=(cv::String const&): error: undefined reference to 'cv::String::deallocate()'
collect2: error: ld returned 1 exit status
Target //main:main failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 7.079s, Critical Path: 2.18s
INFO: 1 process: 1 linux-sandbox.
FAILED: Build did NOT complete successfully
I'm not able to figure out why this is happening. Can someone help me?
Starting local Bazel server and connecting to it...
INFO: Analyzed target //main:main (15 packages loaded, 533 targets configured).
INFO: Found 1 target...
ERROR: /home/prathyusha/Internship/opencv_bazel/opencv/main/BUILD:1:1: Linking of rule '//main:main' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc @bazel-out/k8-fastbuild/bin/main/main-2.params
Use --sandbox_debug to see verbose messages from the sandbox
bazel-out/k8-fastbuild/bin/main/_objs/main/main.pic.o:main.cc:function main: error: undefined reference to 'cv::imread(cv::String const&, int)'
bazel-out/k8-fastbuild/bin/main/_objs/main/main.pic.o:main.cc:function main: error: undefined reference to 'cv::namedWindow(cv::String const&, int)'
bazel-out/k8-fastbuild/bin/main/_objs/main/main.pic.o:main.cc:function main: error: undefined reference to 'cv::imshow(cv::String const&, cv::_InputArray const&)'
bazel-out/k8-fastbuild/bin/main/_objs/main/main.pic.o:main.cc:function cv::String::String(char const*): error: undefined reference to 'cv::String::allocate(unsigned long)'
bazel-out/k8-fastbuild/bin/main/_objs/main/main.pic.o:main.cc:function cv::String::~String(): error: undefined reference to 'cv::String::deallocate()'
bazel-out/k8-fastbuild/bin/main/_objs/main/main.pic.o:main.cc:function cv::String::operator=(cv::String const&): error: undefined reference to 'cv::String::deallocate()'
collect2: error: ld returned 1 exit status
Target //main:main failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 7.079s, Critical Path: 2.18s
INFO: 1 process: 1 linux-sandbox.
FAILED: Build did NOT complete successfully
I'm not able to figure out why this is happening. Can someone help me?