Skip to content
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

Problems with opencv@3 #1224

Open
midopooler opened this issue Jul 27, 2024 · 2 comments
Open

Problems with opencv@3 #1224

midopooler opened this issue Jul 27, 2024 · 2 comments
Labels
type:build/install Cannot build/install the plugin

Comments

@midopooler
Copy link

Plugin Version or Commit ID

v0.14.4

Unity Version

2022.3.36f1

Your Host OS

MacOS Sonoma 14.5

Target Platform

UnityEditor, Android, iOS

[Windows Only] Visual Studio C++ and Windows SDK Version

No response

[Linux Only] GCC/G++ and GLIBC Version

No response

[Android Only] Android Build Tools and NDK Version

No response

[iOS Only] XCode Version

v15.4 (15F31d)

Command Sequences

brew install opencv@3

Log

pulkitmidha@Pulkits-MacBook-Air MediaPipeUnityPlugin % brew install opencv@3
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
packetry
==> New Casks
brightvpn font-genkigothic nextcloud-vfs processspy robloxstudio

Error: opencv@3 has been disabled because it is not maintained upstream!

Additional Context

Opencv@3 seems to be disabled/deprecated.
Check this link https://formulae.brew.sh/formula/opencv@3
And using openCV 4 seems to be not working with python build.py build --desktop cpu --android arm64 --ios arm64 -vv

@midopooler midopooler added the type:build/install Cannot build/install the plugin label Jul 27, 2024
@midopooler
Copy link
Author

Even on using this command python build.py build --desktop cpu -vv, this is the result I'm getting
ERROR: /private/var/tmp/bazel_pulkitmidha/b6d96ff15ffb6b3bbe0c9061bc487978/external/mediapipe/mediapipe/calculators/image/BUILD:86:11: Compiling mediapipe/calculators/image/color_convert_calculator.cc failed: (Exit 1): wrapped_clang_pp failed: error executing command (from target @mediapipe//mediapipe/calculators/image:color_convert_calculator)
(cd /private/var/tmp/bazel_pulkitmidha/b6d96ff15ffb6b3bbe0c9061bc487978/sandbox/darwin-sandbox/1007/execroot/mediapipe_api &&
exec env -
APPLE_SDK_PLATFORM=MacOSX
APPLE_SDK_VERSION_OVERRIDE=14.5
PATH=/Users/pulkitmidha/Library/Caches/bazelisk/downloads/sha256/987dff49fb16f54dba268fa10d3aa860bc8e16313c6a1b13cdb89822d2b6b3a4/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/Homebrew/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/opt/homebrew/opt/python/libexec/bin:/opt/homebrew/opt/python/libexec/bin
XCODE_VERSION_OVERRIDE=15.4.0.15F31d
ZERO_AR_DATE=1
external/local_config_cc/wrapped_clang_pp '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -g0 -O2 -DNDEBUG '-DNS_BLOCK_ASSERTIONS=1' '-std=c++11' 'DEBUG_PREFIX_MAP_PWD=.' -g -iquote external/mediapipe -iquote bazel-out/darwin_arm64-opt/bin/external/mediapipe -iquote external/com_google_protobuf -iquote bazel-out/darwin_arm64-opt/bin/external/com_google_protobuf -iquote external/zlib -iquote bazel-out/darwin_arm64-opt/bin/external/zlib -iquote external/com_github_glog_glog -iquote bazel-out/darwin_arm64-opt/bin/external/com_github_glog_glog -iquote external/com_github_gflags_gflags -iquote bazel-out/darwin_arm64-opt/bin/external/com_github_gflags_gflags -iquote external/com_google_absl -iquote bazel-out/darwin_arm64-opt/bin/external/com_google_absl -iquote external/macos_arm64_opencv -iquote bazel-out/darwin_arm64-opt/bin/external/macos_arm64_opencv -Ibazel-out/darwin_arm64-opt/bin/external/com_github_glog_glog/virtual_includes/glog -Ibazel-out/darwin_arm64-opt/bin/external/com_github_gflags_gflags/virtual_includes/gflags -isystem external/com_google_protobuf/src -isystem bazel-out/darwin_arm64-opt/bin/external/com_google_protobuf/src -isystem external/zlib -isystem bazel-out/darwin_arm64-opt/bin/external/zlib -isystem external/macos_arm64_opencv/opt/opencv@3/include -isystem bazel-out/darwin_arm64-opt/bin/external/macos_arm64_opencv/opt/opencv@3/include -MD -MF bazel-out/darwin_arm64-opt/bin/external/mediapipe/mediapipe/calculators/image/objs/color_convert_calculator/color_convert_calculator.d '-DMEDIAPIPE_DISABLE_GPU=1' '-DGLOG_DEPRECATED=attribute((deprecated))' '-DGLOG_EXPORT=attribute((visibility("default")))' -DMEDIAPIPE_PROFILER_AVAILABLE '-DBAZEL_CURRENT_REPOSITORY="mediapipe"' '-frandom-seed=bazel-out/darwin_arm64-opt/bin/external/mediapipe/mediapipe/calculators/image/objs/color_convert_calculator/color_convert_calculator.o' -isysroot BAZEL_XCODE_SDKROOT -F__BAZEL_XCODE_SDKROOT/System/Library/Frameworks -F__BAZEL_XCODE_DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/Library/Frameworks -no-canonical-prefixes -pthread -w '-std=c++17' -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE
="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -target arm64-apple-macosx14.5 -c external/mediapipe/mediapipe/calculators/image/color_convert_calculator.cc -o bazel-out/darwin_arm64-opt/bin/external/mediapipe/mediapipe/calculators/image/_objs/color_convert_calculator/color_convert_calculator.o)

Configuration: 7ea4a6d535fad2d6a885b323606c87c335b17601784a50e19b77db2a3d9c449f

Execution platform: @local_execution_config_platform//:platform

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
In file included from external/mediapipe/mediapipe/calculators/image/color_convert_calculator.cc:20:
In file included from external/mediapipe/mediapipe/framework/formats/image_frame_opencv.h:20:
external/mediapipe/mediapipe/framework/port/opencv_core_inc.h:18:10: fatal error: 'opencv2/core/version.hpp' file not found
#include <opencv2/core/version.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Error in child process '/usr/bin/xcrun'. 1
Target //mediapipe_api:mediapipe_desktop failed to build
INFO: Elapsed time: 46.577s, Critical Path: 35.57s
INFO: 1178 processes: 591 internal, 587 darwin-sandbox.
FAILED: Build did NOT complete successfully

@homuler
Copy link
Owner

homuler commented Jul 28, 2024

Please run python build.py build --desktop cpu --opencv cmake -vv instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:build/install Cannot build/install the plugin
Projects
None yet
Development

No branches or pull requests

2 participants