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

Build error on m1 macbook #493

Open
rizTaak opened this issue Jan 16, 2022 · 1 comment
Open

Build error on m1 macbook #493

rizTaak opened this issue Jan 16, 2022 · 1 comment

Comments

@rizTaak
Copy link

rizTaak commented Jan 16, 2022

Trying to build project on M1 macbook but getting below error. Same project works fine on intel

error: failed to add native library /Users/user1/projects/oxide/target/debug/build/glfw-sys-f1f2e48a92918907/out/lib/libglfw3.a: file too small to be an archive

error: could not compile glfw due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

dependecy

[dependencies]
log = "0.4.14"
bitflags = "1.3.2"
glfw = "0.43.0"
log4rs = "1.0.0"
imgui = "0.7.0"
gl = "0.14.0"

@BrandonDyer64
Copy link

Workaround

Install x86_64 target

rustup target add x86_64-apple-darwin

Run with alternate target

cargo run --target x86_64-apple-darwin

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

2 participants