'Mediapipe Qt Integration on 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"],
linkshared = 1 ## Very important
)

and what should be the content of linkopts? Using this git as an example https://github.com/asprecic/mediapipe-qt-integration-example



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source