fltk-rs: Cannot Install on Macbook pro m1

So I have a macbook pro m1 and i try to install fltk-rs and the error i am getting is ` Compiling fltk v0.15.6 error: failed to add native library /Users/namorahimi/Documents/Visual Studio Projects/guessing_game/target/debug/build/fltk-sys-790e153c70300d52/out/build/libcfltk.a: file too small to be an archive

error: aborting due to previous error

error: could not compile fltk-sys

To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish… error: build failed namorahimi@Namos-MacBook-Pro guessing_game % `

Does anybody have any idea ?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 37 (7 by maintainers)

Most upvoted comments

i have fixed my problem its vscode on my terminal it works fully thanks !!!

Could be that there is a local file corruption in your rust installation or at /Users/namorahimi/Documents/Visual Studio Projects/guessing_game

You could try any of the flkt examples. If that doesn’t work I’d uninstall and reinstall rust from scratch.

Hm… it seems like x86_64 is still being built. Are you using a x86 terminal or shell?

rustup toolchain list

My rust toolchain list only contains:

stable-aarch64-apple-darwin
nightly-aarch64-apple-darwin (default)

To remove an unwanted toolchain

rustup uninstall [whatever name you find in the list]

And just to make sure, try

 /usr/bin/c++ --version

my version is:

Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: arm64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin