Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apple_dynamic_framework_import doesn't work as a dependency of cc_library #2548

Open
rao94583 opened this issue Oct 2, 2024 · 0 comments
Open

Comments

@rao94583
Copy link

rao94583 commented Oct 2, 2024

I am attempting to import a package that is available only as a framework (MuJoCo. When I finally attempt to run a test cc_binary, compilation succeeds and linking fails (there's nothing in the linkopts that pull in the framework, so symbols are not resolved).

The import lines look like this:

package(default_visibility = ["//visibility:public"])
load("@build_bazel_rules_apple//apple:apple.bzl", "apple_dynamic_framework_import")

apple_dynamic_framework_import(
    name = "mujoco_framework",
    framework_imports = glob(["mujoco.framework/**"]),
)

and the binary rule looks like this:

cc.binary(
    name = "test_mujoco",
    srcs = ["test_mujoco.cpp"],
    deps = [
        "//external/MuJoCo:mujoco",
    ],
)

Is there some other way to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant