mediapipe-qt-integration-example icon indicating copy to clipboard operation
mediapipe-qt-integration-example copied to clipboard

macos build for the same project

Open IamRo45 opened this issue 3 years ago • 2 comments

It's more of a bazel specific question. If I'm trying to generate .dylib for libexample, is changing the name in cc_binary sufficient? cc_binary( name = "libexample.dylib", deps = [ ":bg_remover" ], #linkopts = ["-Wl,-soname,libexample.dylib"], linkshared = 1 ## Very important ) and what should be the content of linkopts?

IamRo45 avatar Jan 05 '22 07:01 IamRo45

To be completely honest, I have no idea. I don't use MacOS and don't develop for it so I can't help you much with it. My guess is that it's probably enough to change it, I mean, try it and see what happens, and share with us if you make it work. Perhaps it would be better to explore Bazel related resources.

For example, on Windows, in order to make it work, you can't just rename it, you need to do something like this: mediapipe/examples/desktop/face_mesh_dll/windows_dll_library.bzl and use it like this: https://github.com/maletsden/mediapipe/pull/1/files#diff-5a001222855e210c456af643eee813155fef0b296f7c19b75148aa72c7bd7ce8R28

I've only made it work on Linux insofar, I didn't have time or need yet to go to other platforms. If I do it, find how it's done somewhere else, or if someone else does and shares it with me, I will share it here for everyone.

asprecic avatar Jan 10 '22 18:01 asprecic

@IamRo45 Were you able to generate .dylib files for macos?

IDDD-Dennis avatar Feb 05 '22 07:02 IDDD-Dennis