yeatse / opencv-spm

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

Conflicted with Pod #11

Open nanhao1215 opened 1 year ago

nanhao1215 commented 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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.