yeatse / opencv-spm

Integrate OpenCV into your project using Swift Package Manager.
Apache License 2.0
69 stars 24 forks source link

Conflicted with Pod #11

Open nanhao1215 opened 11 months ago

nanhao1215 commented 11 months ago

I used Pod to import Mediapipe Then I use your method to deploy opencv, it has the following errors: 487 duplicate symbols Linker command failed with exit code 1 (use -v to see invocation)

Could you pls check it for me? Thanks

yeatse commented 11 months ago

Mediapipe for iOS, specifically the MediaPipeTasksCommon pod required by Mediapipe, already has OpenCV related symbols built in, so it is not possible to use both Mediapipe and OpenCV simultaneously.

nanhao1215 commented 11 months ago

Mediapipe for iOS, specifically the MediaPipeTasksCommon pod required by Mediapipe, already has OpenCV related symbols built in, so it is not possible to use both Mediapipe and OpenCV simultaneously.

Thanks for reply, if my project really need these two libraries, do you have any idea to use it?

nanhao1215 commented 11 months ago

Mediapipe for iOS, specifically the MediaPipeTasksCommon pod required by Mediapipe, already has OpenCV related symbols built in, so it is not possible to use both Mediapipe and OpenCV simultaneously.

Or could I select the version of opencv in ur method?

yeatse commented 11 months ago

Mediapipe for iOS, specifically the MediaPipeTasksCommon pod required by Mediapipe, already has OpenCV related symbols built in, so it is not possible to use both Mediapipe and OpenCV simultaneously.

Or could I select the version of opencv in ur method?

If you import Mediapipe using CocoaPods the answer is 'no'. You need to build Mediapipe yourself in order for it to provide the OpenCV public headers for you. I don't know if this is possible, so I suggest you ask the people at Mediapipe about it.