Closed jld23 closed 3 years ago
Hi @jld23, Above issue might be with opencv installed successfully and not linked properly. Can you try the workaround mentioned here https://github.com/google/mediapipe/issues/2624#issuecomment-934325347
Thanks @sgowroji With the hint from #2624 I was able to get it to build. For those that might run into this issue later. I ran a setup_opencv.sh (modified with CUDA parts) this in turn updated ./third-party/opencv_linux.BUILD
The key line was in the linkopts
section
linkopts = [
"-L/usr/local/lib",
"-l:libopencv_core.so",
"-l:libopencv_calib3d.so",
The first line was what I was missing.
Hi @jld23 ! Could you help-me? Where can I find 'setup_opencv.sh' (modified with CUDA parts)?
Please make sure that this is a build/installation issue and also refer to the troubleshooting documentation before raising any issues. I didn't find this issue in the troubleshooting section or in other recent open issues.
System information (Please provide as much relevant information as possible)
OS Platform and Distribution (e.g. Linux Ubuntu 16.04, Android 11, iOS 14.4): Ubuntu 18 inside a docker container specifically
nvidia/cuda:11.2.0-cudnn8-devel-ubuntu18.04
Compiler version (e.g. gcc/g++ 8 /Apple clang version 12.0.0): gcc (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0
Programming Language and version ( e.g. C++ 14, Python 3.6, Java ):Python 3.6.9
Installed using virtualenv? pip? Conda? (if python): pip
MediaPipe version: 0.8.7.1 (synced fork on Sept. 13.
Bazel version: bazel 3.7.2
OpenCV version (if running on desktop): 4.5.3
Describe the problem: I'm trying to build a docker container with CUDA support. I have built the opencv and tensorflow components but when I try and build mediapipe from source I get the following errror:
Based on the message, I think there is a path issue because the missing file is here:
I've tried all the combinations that seem reasonable in
opencv_linux.BUILD
but I always get the same result.Provide the exact sequence of commands / steps that you executed before running into the problem: This error occurs when trying to run the final command in this sequence:
Complete Logs: Include Complete Log information or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached:
Here is the log precceding the error:
Any help in resolving this issue would be greatly appreciated.