-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Added macOS compile script #71
Conversation
This does not function on M1 MacBook Pro 2021. I've disabled SIP and given terminal full disk access, but I still get "Operation not permitted" when I run macOS-compile.sh. |
Did you make the script executable? |
Yes, I did that previously |
additional info for MacOS on Intel.
Probably worth adding that to the instructions |
further error (not sure how to fix) warning: pkg-config has not been configured to support cross-compilation. error: failed to run custom build command for Caused by: Install a sysroot for the target platform and configure it via This is on MacOS Monterey 12.1 Intel |
@cvpeck I think I set the cargo build target to only the Apple M1 chip. From:
To:
This might be working. |
@cvpeck Edit: |
Thanks, I successfully built on x86_64 by modifying the the compile script as suggested.
Due to caching issues I had to delete local copies then repull repo to ensure a clean build.
… On 19 Jan 2022, at 12:21 am, kms1212 ***@***.***> wrote:
@cvpeck <https://github.com/cvpeck> I think I set the cargo build target to only the Apple M1 chip.
I'm sorry but please edit macos-compile.sh script and run it.
From:
$CARGO build --release --target=aarch64-apple-darwin
To:
$CARGO build --release --target=x86_64-apple-darwin
This might be working/
—
Reply to this email directly, view it on GitHub <#71 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABUE5RBTUMJYNB4GM3TRAQLUWVV4PANCNFSM5LLPCVJA>.
You are receiving this because you were mentioned.
|
Thank you for testing the script! |
You shouldn't need to specify the target when running/compiling. The compiler know what architecture it is running on and will target that automatically. Is this ready to merge? |
According to issue #67, I added a script for compiling binary for macOS.