Open IamRo45 opened 2 years ago
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.
@IamRo45 Were you able to generate .dylib files for macos?
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"],
) and what should be the content of linkopts?