-
-
Notifications
You must be signed in to change notification settings - Fork 201
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-Compiling Tao For MacOS On Linux #383
Comments
Same here trying to cross compile from Linux to Macos using osxcross. |
@elonzyy Ah. Great digging! |
@elonzyy I did some more digging, and I do not see the Am I missing something? |
Sorry for the delayed response.
We recently discussed the removal of I will leave this issue open until then or if someone makes a PR for an alternative to using carbon APIs. |
Just FYI the issue you encountered is the build script not running when building for mac on a Linux machine. the target os for the build script is Linux in that case. |
I get an error when compiling for error: failed to run custom build command for `tao v0.15.8`
launcher-deps> Caused by:
launcher-deps> process didn't exit successfully: `/private/tmp/nix-build-launcher-deps-0.0.1.drv-0/source/target/release/build/tao-5d07c06194b9de70/build-script-build` (exit status: 1)
launcher-deps> --- stdout
launcher-deps> cargo:rustc-link-lib=framework=Carbon
launcher-deps> TARGET = Some("x86_64-apple-darwin")
launcher-deps> OPT_LEVEL = Some("3")
launcher-deps> HOST = Some("x86_64-apple-darwin")
launcher-deps> cargo:rerun-if-env-changed=CC_x86_64-apple-darwin
launcher-deps> CC_x86_64-apple-darwin = None
launcher-deps> cargo:rerun-if-env-changed=CC_x86_64_apple_darwin
launcher-deps> CC_x86_64_apple_darwin = None
launcher-deps> cargo:rerun-if-env-changed=HOST_CC
launcher-deps> HOST_CC = None
launcher-deps> cargo:rerun-if-env-changed=CC
launcher-deps> CC = Some("clang")
launcher-deps> cargo:rerun-if-env-changed=CFLAGS_x86_64-apple-darwin
launcher-deps> CFLAGS_x86_64-apple-darwin = None
launcher-deps> cargo:rerun-if-env-changed=CFLAGS_x86_64_apple_darwin
launcher-deps> CFLAGS_x86_64_apple_darwin = None
launcher-deps> cargo:rerun-if-env-changed=HOST_CFLAGS
launcher-deps> HOST_CFLAGS = None
launcher-deps> cargo:rerun-if-env-changed=CFLAGS
launcher-deps> CFLAGS = None
launcher-deps> cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
launcher-deps> CRATE_CC_NO_DEFAULTS = None
launcher-deps> DEBUG = Some("false")
launcher-deps> running: "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-apple-darwin" "-Wall" "-Wextra" "-o" "/private/tmp/nix-build-launcher-deps-0.0.1.drv-0/source/target/release/build/tao-261b53ae95382f24/out/src/platform_impl/macos/carbon_hotkey/carbon_hotkey_binding.o" "-c" "src/platform_impl/macos/carbon_hotkey/carbon_hotkey_binding.c"
launcher-deps> cargo:warning=In file included from src/platform_impl/macos/carbon_hotkey/carbon_hotkey_binding.c:7:
launcher-deps> cargo:warning=In file included from /nix/store/9g99yn2v6qvjz0jka4f0ikdv90x3hng1-apple-framework-Carbon-11.0.0/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:
launcher-deps> cargo:warning=In file included from /nix/store/1wzdsghj5nk25xbrf715izgz6z62dlsp-apple-framework-CoreServices-11.0.0/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19:
launcher-deps> cargo:warning=In file included from /nix/store/pijg4pkqizi263fp9l023k5a91245qf6-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:60:
launcher-deps> cargo:warning=In file included from /nix/store/pijg4pkqizi263fp9l023k5a91245qf6-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:17:
launcher-deps> cargo:warning=In file included from /nix/store/pijg4pkqizi263fp9l023k5a91245qf6-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:16:
launcher-deps> cargo:warning=/nix/store/pijg4pkqizi263fp9l023k5a91245qf6-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:1189:83: error: expected ','
launcher-deps> cargo:warning= kCFURLBookmarkCreationWithSecurityScope API_AVAILABLE(macos(10.7), macCatalyst(13.0)) API_UNAVAILABLE(ios, watchos, tvos) = ( 1UL << 11 ), // Mac OS X 10.7.3 and later, include information in the bookmark data which allows the same sandboxed process to access the resource after being relaunched There are many more warnings which contain the It compiles fine for |
yeah it might be related to the version because we still use C bindings for carbon framework. |
the |
I will start on removing these bits from tauri and mugrate to the new crates so we could merge the |
I have an initial discussion with @joseluisq here
I am trying to compile a project that depends on tao.
The issue comes down to building the carbon_hotkey files.
On a
macos-latest
machine, I ran these two steps:This outputs the same error when trying to compile on linux. The message from the runner job is this:
Is there something simple I am missing here?
The text was updated successfully, but these errors were encountered: