Skip to content

Example on how to cross-compile with libraries #7

Description

@JD557

Hello,

Posting my concrete issue to make things simpler, although this is a more abstract problem.

I'm trying to compile from code in my Mac OS targeting a Raspberry Pi. The thing is, my code depends on WiringPi (Scala bindings).

I don't have WiringPi on my Mac OS machine, so the final linking fails (as expected).

So it's not very clear to me how to proceed.

Maybe there's some clean way to do this with Bazel? Or maybe there's some way to stop the process just before linking, and let one perform the linking on the target machine? I don't know.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions