-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation task failed ! #5868
Comments
Hi @sunmooncode, Please confirm if you can successfully build the Hello_World example as outlined in the documentation. We recommend verifying Hello_World functionality before proceeding to build the libraries. Thank you!! |
Yes, the Hello_World example works! |
Hi @sunmooncode, Could you please verify the following include paths within the Specifically, please confirm that:
Relevant Code Snippet: # WORKSPACE
new_local_repository(
name = "linux_opencv",
build_file = "@//third_party:opencv_linux.BUILD",
path = "/usr",
)
# opencv_linux.BUILD for OpenCV 4 installed from Debian package
cc_library(
name = "opencv",
hdrs = glob([
"include/opencv4/opencv2/**/.h", # Please verify this line
]),
includes = [
"include/opencv4/", # Please verify this line
],
linkopts = [
"lib/libopencv_core.so",
"lib/libopencv_calib3d.so",
"lib/libopencv_features2d.so",
"lib/libopencv_highgui.so",
"lib/libopencv_imgcodecs.so",
"lib/libopencv_imgproc.so",
"lib/libopencv_video.so",
"lib/libopencv_videoio.so",
],
visibility = ["//visibility:public"],
)
Let me know if we need to reproduce this, In the case still an issue.
Thank you!! |
I imported opencv using the method here, but I can't import it using the one in the official documentation, and I'd like to know why? |
Hi @sunmooncode, Please confirm the status of the above. For the second query, to ensure proper tracking, if it's an issue, provide the error log. If it's a new request, please open a separate issue with full details and a contextual title. Thank you!! |
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you. |
OS Platform and Distribution
ubuntu22.04
Compiler version
gcc-9.5/g++-9.5
Programming Language and version
python=3.12
Installed using virtualenv? pip? Conda?(if python)
conda base
MediaPipe version
0.10.21
Bazel version
6.5.0
XCode and Tulsi versions (if iOS)
No response
Android SDK and NDK versions (if android)
No response
Android AAR (if android)
None
OpenCV version (if running on desktop)
4.10.0-dev
Describe the problem
A bug happened!
Complete Logs
The text was updated successfully, but these errors were encountered: