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

Cross platform build failures #824

Open
andrejohansson opened this issue Dec 5, 2024 · 2 comments
Open

Cross platform build failures #824

andrejohansson opened this issue Dec 5, 2024 · 2 comments

Comments

@andrejohansson
Copy link

We have a cross platform build job for our rust app, it builds on the following targets but fails on windows and linux after I started to use the magika crate.

  • x86_64-pc-windows-gnu
    • Image: ghcr.io/cross-rs/x86_64-pc-windows-gnu:main
    • Error: downloaded binaries not available for target x86_64-pc-windows-gnu
  • x86_64-apple-darwin
    • Image: joseluisq/rust-linux-darwin-builder:1.82.0
  • x86_64-unknown-linux-gnu
    • Image: joseluisq/rust-linux-darwin-builder:1.82.0

According to the platform support page there should be precompiled binaries for all platforms. But I assume they are not for the windows-gnu variant then. For windows-gnu pykeio/ort#189) says there is no support but I should be able to use the msvc binaries.

Where can I find these and how do I use them?

@reyammer
Copy link
Collaborator

reyammer commented Dec 9, 2024

Thanks for reporting!

@ia0 thoughts on this?

@ia0
Copy link
Member

ia0 commented Dec 9, 2024

The ort documentation is the reference on that matter. As they suggest, you can compile ONNX Runtime yourself (and either link it dynamically or statically). We actually do this when releasing the CLI (see https://github.com/google/magika/blob/main/.github/workflows/python-build-package.yml and https://github.com/google/magika/blob/main/rust/onnx/build.sh#L36-L37) which depends on the library as any other user would. If you believe something is missing in the library or it is preventing your use-case in some way, then we can fix it. But so far it seems the problem is that Pyke doesn't provide precompiled binaries for your platform, which is inconvenient and requires more work on your side.

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

3 participants