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

Cannot build on MacOS - error: could not find native static library kernelaarch64-apple-darwin, perhaps an -L flag is missing? #69

Open
AlexanderKyron opened this issue Nov 6, 2022 · 7 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@AlexanderKyron
Copy link

Describe the bug
Kajiya does not compile on macOS Monterey on M1 Air
To Reproduce
Steps to reproduce the behavior:

  1. Clone main branch on m1 Mac
  2. Run command:

cargo run --bin view --release

  1. See error: could not find native static library kernelaarch64-apple-darwin, perhaps an -L flag is missing?

Expected behavior
Kajiya compiles successfully on M1 Mac

Screenshots
image

Device:

  • OS: macOS Monterey 12.3
  • CPU - Apple M1
  • RAM - 8GB
  • Rust - rust 1.65.0 Nov 2nd - stable-aarch64-apple-darwin toolchain
@AlexanderKyron AlexanderKyron added the bug Something isn't working label Nov 6, 2022
@h3r2tic h3r2tic added the help wanted Extra attention is needed label Nov 7, 2022
@h3r2tic
Copy link
Collaborator

h3r2tic commented Nov 7, 2022

Sorry, I don't have any macOS devices, so can't really help. Perhaps someone will more Mac know-how here will be able to assist.

@repi
Copy link
Contributor

repi commented Nov 7, 2022

sounds like a missing native library locally on your machine, it probably installed with Xcode? do you have Xcode installed?

@h3r2tic
Copy link
Collaborator

h3r2tic commented Nov 7, 2022

Thanks for the tip, mysterious knowledgeable person!

@ivoolson
Copy link

The same problem.

XCode Version 14.1 (14B47b)
OS: macOS Ventura 13.0.1
Mac Mini, Apple M1, 16GB RAM
stable-aarch64-apple-darwin unchanged - rustc 1.67.1 (d5a82bbd2 2023-02-07)

@MarijnS95
Copy link

Randomly stumbled upon this issue: this happens because intel_tex_2 doesn't contain the prebuilt ISPC kernel for aarch64-apple-darwin just yet. We'll include that in the next release after getting through Traverse-Research/intel-tex-rs-2#14 and a related change for Android.

@MarijnS95
Copy link

MarijnS95 commented Mar 12, 2023

This should now be fixed with the freshly published intel_tex_2 0.2.1: https://github.com/Traverse-Research/intel-tex-rs-2/releases/tag/0.2.1 🥳

@h3r2tic
Copy link
Collaborator

h3r2tic commented Mar 12, 2023

Oh, nice, thanks @MarijnS95 :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants