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

[Bug]: Macos build with -F rather than -L #493

Open
dezbracaty opened this issue Mar 13, 2024 · 4 comments
Open

[Bug]: Macos build with -F rather than -L #493

dezbracaty opened this issue Mar 13, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@dezbracaty
Copy link

dezbracaty commented Mar 13, 2024

Current Behavior

On macos , when build this project, there are error "QtCore not found ".
See this KDAB/cxx-qt#885
And the final reason is that , we should use -F or -iframework to specity the framework path on macos , but now we are using -L to specity the path , this is a wrong flag .

Expected Behavior

use -F or -iframework to specity the framework path on macos

Steps To Reproduce

Macos system.

Environment

- OS:Macos 
- CMake:3.28.3
- CMake Generator:ninja

CMake configure log with Debug log-level

Log

[main] Configuring project: cxx-qt 
[proc] Executing command: /opt/homebrew/bin/cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ -S/Users/allen/Projects/RustProjects/cxx-qt -B/Users/allen/Projects/RustProjects/cxx-qt/build -G Ninja
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Using dependencies from system without vcpkg
[cmake] -- Could NOT find ccache
[cmake] -- Could NOT find sccache
[cmake] -- No compiler caching enabled. Install ccache or sccache to speed up rebuilds.
[cmake] CMake Warning at CMakeLists.txt:125 (find_package):
[cmake]   By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
[cmake]   asked CMake to find a package configuration file provided by "Qt6", but
[cmake]   CMake did not find one.
[cmake] 
[cmake]   Could not find a package configuration file provided by "Qt6" with any of
[cmake]   the following names:
[cmake] 
[cmake]     Qt6Config.cmake
[cmake]     qt6-config.cmake
[cmake] 
[cmake]   Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
[cmake]   to a directory containing one of the above files.  If "Qt6" provides a
[cmake]   separate development package or SDK, be sure it has been installed.
[cmake] 
[cmake] 
[cmake] CMake Warning at examples/qml_features/CMakeLists.txt:25 (find_package):
[cmake]   By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
[cmake]   asked CMake to find a package configuration file provided by "Qt6", but
[cmake]   CMake did not find one.
[cmake] 
[cmake]   Could not find a package configuration file provided by "Qt6" with any of
[cmake]   the following names:
[cmake] 
[cmake]     Qt6Config.cmake
[cmake]     qt6-config.cmake
[cmake] 
[cmake]   Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
[cmake]   to a directory containing one of the above files.  If "Qt6" provides a
[cmake]   separate development package or SDK, be sure it has been installed.
[cmake] 
[cmake] 
[cmake] -- Rust Toolchain: stable-aarch64-apple-darwin
[cmake] -- Rust Target: aarch64-apple-darwin
[cmake] -- valgrind not found. Please install it
[cmake] CMake Warning at examples/qml_minimal/CMakeLists.txt:26 (find_package):
[cmake]   By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
[cmake]   asked CMake to find a package configuration file provided by "Qt6", but
[cmake]   CMake did not find one.
[cmake] 
[cmake]   Could not find a package configuration file provided by "Qt6" with any of
[cmake]   the following names:
[cmake] 
[cmake]     Qt6Config.cmake
[cmake]     qt6-config.cmake
[cmake] 
[cmake]   Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
[cmake]   to a directory containing one of the above files.  If "Qt6" provides a
[cmake]   separate development package or SDK, be sure it has been installed.
[cmake] 
[cmake] 
[cmake] -- valgrind not found. Please install it
[cmake] CMake Warning at examples/demo_threading/CMakeLists.txt:25 (find_package):
[cmake]   By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
[cmake]   asked CMake to find a package configuration file provided by "Qt6", but
[cmake]   CMake did not find one.
[cmake] 
[cmake]   Could not find a package configuration file provided by "Qt6" with any of
[cmake]   the following names:
[cmake] 
[cmake]     Qt6Config.cmake
[cmake]     qt6-config.cmake
[cmake] 
[cmake]   Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
[cmake]   to a directory containing one of the above files.  If "Qt6" provides a
[cmake]   separate development package or SDK, be sure it has been installed.
[cmake] 
[cmake] 
[cmake] CMake Warning at tests/basic_cxx_qt/CMakeLists.txt:27 (find_package):
[cmake]   By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
[cmake]   asked CMake to find a package configuration file provided by "Qt6", but
[cmake]   CMake did not find one.
[cmake] 
[cmake]   Could not find a package configuration file provided by "Qt6" with any of
[cmake]   the following names:
[cmake] 
[cmake]     Qt6Config.cmake
[cmake]     qt6-config.cmake
[cmake] 
[cmake]   Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
[cmake]   to a directory containing one of the above files.  If "Qt6" provides a
[cmake]   separate development package or SDK, be sure it has been installed.
[cmake] 
[cmake] 
[cmake] CMake Warning at tests/basic_cxx_only/CMakeLists.txt:27 (find_package):
[cmake]   By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
[cmake]   asked CMake to find a package configuration file provided by "Qt6", but
[cmake]   CMake did not find one.
[cmake] 
[cmake]   Could not find a package configuration file provided by "Qt6" with any of
[cmake]   the following names:
[cmake] 
[cmake]     Qt6Config.cmake
[cmake]     qt6-config.cmake
[cmake] 
[cmake]   Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
[cmake]   to a directory containing one of the above files.  If "Qt6" provides a
[cmake]   separate development package or SDK, be sure it has been installed.
[cmake] 
[cmake] 
[cmake] CMake Warning at tests/qt_types_standalone/CMakeLists.txt:27 (find_package):
[cmake]   By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
[cmake]   asked CMake to find a package configuration file provided by "Qt6", but
[cmake]   CMake did not find one.
[cmake] 
[cmake]   Could not find a package configuration file provided by "Qt6" with any of
[cmake]   the following names:
[cmake] 
[cmake]     Qt6Config.cmake
[cmake]     qt6-config.cmake
[cmake] 
[cmake]   Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
[cmake]   to a directory containing one of the above files.  If "Qt6" provides a
[cmake]   separate development package or SDK, be sure it has been installed.
[cmake] 
[cmake] 
[cmake] -- valgrind not found. Please install it
[cmake] -- valgrind not found. Please install it
[cmake] -- valgrind not found. Please install it
[cmake] -- Configuring done (0.9s)
[cmake] -- Generating done (0.0s)
[cmake] -- Build files have been written to: /Users/allen/Projects/RustProjects/cxx-qt/build


### CMake Build step log

[main] Building folder: cxx-qt 
[build] Starting build
[proc] Executing command: /opt/homebrew/bin/cmake --build /Users/allen/Projects/RustProjects/cxx-qt/build --config Debug --target _cargo-build_qml-features --
[build] [1/2   0% :: 0.003] cd /Users/allen/Projects/RustProjects/cxx-qt/examples/qml_features/rust && /Applications/CMake.app/Contents/bin/cmake -E env CXXQT_EXPORT_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/examples/qml_features/cxxqt QMAKE=/opt/homebrew/Cellar/qt@5/5.15.12_1/bin/qmake QT_INCLUDE_DIR=/opt/homebrew/Cellar/qt@5/5.15.12_1/include LD_LIBRARY_PATH=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=/usr/bin/clang CC_aarch64_apple_darwin=/usr/bin/clang CXX_aarch64_apple_darwin=/usr/bin/clang++ AR_aarch64_apple_darwin=/usr/bin/ar SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk CORROSION_BUILD_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/examples/qml_features CARGO_BUILD_RUSTC=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc /Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo rustc --lib --target=aarch64-apple-darwin --package qml-features --manifest-path /Users/allen/Projects/RustProjects/cxx-qt/examples/qml_features/rust/Cargo.toml --target-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build -vv -- -Cdefault-linker-libraries=yes
[build]        Fresh unicode-ident v1.0.12
[build]        Fresh cxxbridge-flags v1.0.119
[build]        Fresh termcolor v1.4.1
[build]        Fresh minimal-lexical v0.2.1
[build]        Fresh either v1.10.0
[build]        Fresh memchr v2.7.1
[build]        Fresh proc-macro2 v1.0.78
[build]        Fresh unicode-width v0.1.11
[build]        Fresh itertools v0.11.0
[build]        Fresh nom v7.1.3
[build]        Fresh once_cell v1.19.0
[build]        Fresh unicode-segmentation v1.11.0
[build]        Fresh indoc v2.0.4
[build]        Fresh quote v1.0.35
[build]        Fresh libc v0.2.153
[build]        Fresh codespan-reporting v0.11.1
[build]        Fresh scratch v1.0.7
[build]        Fresh versions v5.0.1
[build]        Fresh convert_case v0.6.0
[build]        Fresh version_check v0.9.4
[build]        Fresh syn v2.0.52
[build]        Fresh jobserver v0.1.28
[build]        Fresh static_assertions v1.1.0
[build]        Fresh ryu v1.0.17
[build]        Fresh itoa v1.0.10
[build]        Fresh cc v1.0.90
[build]        Fresh thiserror-impl v1.0.57
[build]        Fresh cxxbridge-macro v1.0.119
[build]        Fresh cxx-gen v0.7.119
[build]        Fresh serde_derive v1.0.197
[build]        Fresh thiserror v1.0.57
[build]        Fresh cxx-build v1.0.119
[build]        Fresh serde v1.0.197
[build]        Fresh qt-build-utils v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/qt-build-utils)
[build]        Fresh clang-format v0.3.0
[build]        Fresh serde_json v1.0.114
[build]        Fresh cxx-qt-gen v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-gen)
[build]        Fresh link-cplusplus v1.0.9
[build]        Fresh cxx-qt-macro v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-macro)
[build]        Fresh cxx v1.0.119
[build]        Fresh cxx-qt v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt)
[build]        Fresh cxx-qt-build v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-build)
[build]        Fresh cxx-qt-lib-headers v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-lib-headers)
[build]    Compiling cxx-qt-lib v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-lib)
[build]    Compiling qml-features v0.1.0 (/Users/allen/Projects/RustProjects/cxx-qt/examples/qml_features/rust)
[build]      Running `CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/examples/qml_features/rust CARGO_PKG_AUTHORS='Andrew Hayzen <andrew.hayzen@kdab.com>:Gerhard de Clercq <gerhard.declercq@kdab.com>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=qml-features CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 DYLD_FALLBACK_LIBRARY_PATH='/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps:/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/allen/lib:/usr/local/lib:/usr/lib' /Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name build_script_build --edition=2021 examples/qml_features/rust/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C metadata=8a0617983cbb72ca -C extra-filename=-8a0617983cbb72ca --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca -C linker=/usr/bin/clang -C incremental=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/incremental -L dependency=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps --extern cxx_qt_build=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_build-6ab1336d900c684d.rlib --extern cxx_qt_lib_headers=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_lib_headers-d9912cca892c1c19.rlib -L '/opt/homebrew/Cellar/qt@5/5.15.12_1/lib' -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-201f66f53e1e6176/out -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/link-cplusplus-71603c78c2dde3e1/out`
[build]      Running `CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-lib CARGO_PKG_AUTHORS='Andrew Hayzen <andrew.hayzen@kdab.com>:Gerhard de Clercq <gerhard.declercq@kdab.com>:Leon Matthes <leon.matthes@kdab.com>' CARGO_PKG_DESCRIPTION='Qt types for integrating `cxx-qt` crate with `cxx`' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt-lib CARGO_PKG_README='' CARGO_PKG_REPOSITORY='https://github.com/KDAB/cxx-qt/' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.6.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=6 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' DYLD_FALLBACK_LIBRARY_PATH='/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps:/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/allen/lib:/usr/local/lib:/usr/lib' /Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name build_script_build --edition=2021 crates/cxx-qt-lib/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --cfg 'feature="default"' --cfg 'feature="qt_gui"' --cfg 'feature="qt_qml"' -C metadata=6020208f1a041cc7 -C extra-filename=-6020208f1a041cc7 --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7 -C linker=/usr/bin/clang -C incremental=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/incremental -L dependency=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps --extern cxx_qt_build=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_build-6ab1336d900c684d.rlib --extern cxx_qt_lib_headers=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_lib_headers-d9912cca892c1c19.rlib --extern qt_build_utils=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libqt_build_utils-906dd61ff2dbfcbc.rlib -L '/opt/homebrew/Cellar/qt@5/5.15.12_1/lib' -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-201f66f53e1e6176/out -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/link-cplusplus-71603c78c2dde3e1/out`
[build] error: linking with `/usr/bin/clang` failed: exit status: 1
[build]   |
[build]   = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/allen/.cargo/bin:/Users/allen/Library/Application Support/JetBrains/Toolbox/scripts:/Users/allen/Library/Python/3.9/bin" VSLANG="1033" ZERO_AR_DATE="1" "/usr/bin/clang" "-arch" "arm64" "/var/folders/hw/lc023pr55psdqktjg68xvnkw0000gn/T/rustcXAFkYa/symbols.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.10fl17pzfgknotu.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.119okv1xmy7z81f6.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.137xat5v19szbkn0.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.15oph1vhrzhh5e5j.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.19opgb164thgeyxk.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.1vlp0hyqz47obvqu.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.1yhg74qrm5jbn57.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.26tes9igtz8fy7rn.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.2mfoke3mrp14psgs.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.2xsado67lvou67qs.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.2zb7b71tju74uh5j.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.37xis5uwom24c582.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.3qh0u66rpovuphck.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.4186phjz8kddzw0h.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.42i2ewundsav9ojs.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.45d9edr6wy3brpeh.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.4aqs871owq9ftsf1.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.4zbmzfjwshprgoiz.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.4zm0s84o8zrdyxpo.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.55605lsdx0j8mjk3.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.55mmkitcjyl348i7.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.5663x8hp4g2zm7jf.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.59c517g8ydpmusil.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.xhcy1h0fk613fhe.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7.4qr33kompxeqtcjw.rcgu.o" "-L" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps" "-L" "/opt/homebrew/Cellar/qt@5/5.15.12_1/lib" "-L" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out" "-L" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-201f66f53e1e6176/out" "-L" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/link-cplusplus-71603c78c2dde3e1/out" "-L" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcxx_qt_lib_headers-d9912cca892c1c19.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcxx_qt_build-6ab1336d900c684d.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libversion_check-9f51aa7577df62b5.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcxx_qt-d2c539d1a4753f86.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libstatic_assertions-21ebe0eb3cea606d.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcxx-0dae514a5f69b4e8.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/liblink_cplusplus-29d675dabc421268.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libqt_build_utils-906dd61ff2dbfcbc.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libversions-8466793749c2eea6.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libnom-718756c2487eced8.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libmemchr-e6b5ebc697c65687.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libitertools-e621136652a36976.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libeither-f70f4bfdd6077160.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcc-4f7e5addbf99ef3e.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libjobserver-dd4b614b2cf16aea.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/liblibc-dd2450870a8e46be.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcxx_gen-5eee1925fa27fac5.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcxx_qt_gen-8d441a361f4b6960.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libclang_format-089b44882994e1ab.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libthiserror-dd35499ccfe2017d.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libconvert_case-35c30cdcabc87c2a.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libunicode_segmentation-7d3ed2ca008d237f.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libsyn-ac3b92559e3bce53.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libquote-f7d359d29bfc9b4a.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcodespan_reporting-16803727eb35ee92.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libunicode_width-16a1984432142341.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libtermcolor-3d23a97142594491.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libproc_macro2-950e5ceb51725b27.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libunicode_ident-2260bb06186abcf3.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libproc_macro-c7150b0669ad7a0f.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-4f192af08beaa759.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-401344856f0fc3c5.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-9e012890a70780c2.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-60338fe528589910.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-a2e883cf5bcf6347.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-df8440ef641907f8.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-fa2288bf7728f91c.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-f39c850853dd7dfe.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-c5b1930e10569ddd.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-96bad2fc8f58f610.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-06eec439eca0e252.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-023007819562a373.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-7254491d238c3b3e.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-9f474e4309122405.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-0bfd536a501ea558.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-d56621fef414e9f8.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-60d6843fd08e9533.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-62a9b4d83244cb2b.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4010f8e9d1f7f9aa.rlib" "-framework" "QtCore" "-framework" "DiskArbitration" "-framework" "IOKit" "-lc++" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7/build_script_build-6020208f1a041cc7" "-Wl,-dead_strip" "-nodefaultlibs"
[build]   = note: ld: framework 'QtCore' not found
[build]           clang: error: linker command failed with exit code 1 (use -v to see invocation)
[build]           
[build] 
[build] error: linking with `/usr/bin/clang` failed: exit status: 1
[build]   |
[build]   = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/allen/.cargo/bin:/Users/allen/Library/Application Support/JetBrains/Toolbox/scripts:/Users/allen/Library/Python/3.9/bin" VSLANG="1033" ZERO_AR_DATE="1" "/usr/bin/clang" "-arch" "arm64" "/var/folders/hw/lc023pr55psdqktjg68xvnkw0000gn/T/rustc6KuFPZ/symbols.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.13zgxeyonitv5pjy.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.1arpdvtfyzve63ef.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.1r475o9sbpjftzg1.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.1w0s22hof9ir2s4z.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.261ovlwx4ee6h6m2.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.2p9m6110dtvrjoun.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.313wt6b5q1xz227a.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.31pd6kjr0vgpfl9d.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.3d5ub9xce5752zf5.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.3fjarf73ezat8jbk.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.3mf5c1cw2dpheu4q.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.3pk41trn0ww9ya23.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.3rh1ri2ln070vvv1.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.3w48fu9oealo49i6.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.4d52hbihr47t35vt.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.4kcylkkd14fozx3v.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.4mujozmfumxkytdm.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.4uozjn8dz1v8ogts.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.57ojwdx6l62a6xvn.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.ext44e57w64udc8.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.l44890m0s9301sx.rcgu.o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca.1mq1n1ibm4z7j22y.rcgu.o" "-L" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps" "-L" "/opt/homebrew/Cellar/qt@5/5.15.12_1/lib" "-L" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out" "-L" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-201f66f53e1e6176/out" "-L" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/link-cplusplus-71603c78c2dde3e1/out" "-L" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcxx_qt_lib_headers-d9912cca892c1c19.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcxx_qt_build-6ab1336d900c684d.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libversion_check-9f51aa7577df62b5.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcxx_qt-d2c539d1a4753f86.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libstatic_assertions-21ebe0eb3cea606d.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcxx-0dae514a5f69b4e8.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/liblink_cplusplus-29d675dabc421268.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libqt_build_utils-906dd61ff2dbfcbc.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libversions-8466793749c2eea6.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libnom-718756c2487eced8.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libmemchr-e6b5ebc697c65687.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libitertools-e621136652a36976.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libeither-f70f4bfdd6077160.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcc-4f7e5addbf99ef3e.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libjobserver-dd4b614b2cf16aea.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/liblibc-dd2450870a8e46be.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcxx_gen-5eee1925fa27fac5.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcxx_qt_gen-8d441a361f4b6960.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libclang_format-089b44882994e1ab.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libthiserror-dd35499ccfe2017d.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libconvert_case-35c30cdcabc87c2a.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libunicode_segmentation-7d3ed2ca008d237f.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libsyn-ac3b92559e3bce53.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libquote-f7d359d29bfc9b4a.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libcodespan_reporting-16803727eb35ee92.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libunicode_width-16a1984432142341.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libtermcolor-3d23a97142594491.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libproc_macro2-950e5ceb51725b27.rlib" "/Users/allen/Projects/RustProjects/cxx-qt/build/cargo/build/debug/deps/libunicode_ident-2260bb06186abcf3.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libproc_macro-c7150b0669ad7a0f.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-4f192af08beaa759.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-401344856f0fc3c5.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-9e012890a70780c2.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-60338fe528589910.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-a2e883cf5bcf6347.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-df8440ef641907f8.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-fa2288bf7728f91c.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-f39c850853dd7dfe.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-c5b1930e10569ddd.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-96bad2fc8f58f610.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-06eec439eca0e252.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-023007819562a373.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-7254491d238c3b3e.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-9f474e4309122405.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-0bfd536a501ea558.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-d56621fef414e9f8.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-60d6843fd08e9533.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-62a9b4d83244cb2b.rlib" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4010f8e9d1f7f9aa.rlib" "-framework" "QtCore" "-framework" "DiskArbitration" "-framework" "IOKit" "-lc++" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca/build_script_build-8a0617983cbb72ca" "-Wl,-dead_strip" "-nodefaultlibs"
[build]   = note: ld: framework 'QtCore' not found
[build]           clang: error: linker command failed with exit code 1 (use -v to see invocation)
[build]           
[build] 
[build] error: could not compile `qml-features` (build script) due to 1 previous error
[build] 
[build] Caused by:
[build]   process didn't exit successfully: `CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/examples/qml_features/rust CARGO_PKG_AUTHORS='Andrew Hayzen <andrew.hayzen@kdab.com>:Gerhard de Clercq <gerhard.declercq@kdab.com>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=qml-features CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 DYLD_FALLBACK_LIBRARY_PATH='/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps:/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/allen/lib:/usr/local/lib:/usr/lib' /Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name build_script_build --edition=2021 examples/qml_features/rust/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C metadata=8a0617983cbb72ca -C extra-filename=-8a0617983cbb72ca --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/qml-features-8a0617983cbb72ca -C linker=/usr/bin/clang -C incremental=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/incremental -L dependency=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps --extern cxx_qt_build=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_build-6ab1336d900c684d.rlib --extern cxx_qt_lib_headers=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_lib_headers-d9912cca892c1c19.rlib -L '/opt/homebrew/Cellar/qt@5/5.15.12_1/lib' -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-201f66f53e1e6176/out -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/link-cplusplus-71603c78c2dde3e1/out` (exit status: 1)
[build] warning: build failed, waiting for other jobs to finish...
[build] error: could not compile `cxx-qt-lib` (build script) due to 1 previous error
[build] 
[build] Caused by:
[build]   process didn't exit successfully: `CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-lib CARGO_PKG_AUTHORS='Andrew Hayzen <andrew.hayzen@kdab.com>:Gerhard de Clercq <gerhard.declercq@kdab.com>:Leon Matthes <leon.matthes@kdab.com>' CARGO_PKG_DESCRIPTION='Qt types for integrating `cxx-qt` crate with `cxx`' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt-lib CARGO_PKG_README='' CARGO_PKG_REPOSITORY='https://github.com/KDAB/cxx-qt/' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.6.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=6 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' DYLD_FALLBACK_LIBRARY_PATH='/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps:/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/allen/lib:/usr/local/lib:/usr/lib' /Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name build_script_build --edition=2021 crates/cxx-qt-lib/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --cfg 'feature="default"' --cfg 'feature="qt_gui"' --cfg 'feature="qt_qml"' -C metadata=6020208f1a041cc7 -C extra-filename=-6020208f1a041cc7 --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-lib-6020208f1a041cc7 -C linker=/usr/bin/clang -C incremental=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/incremental -L dependency=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps --extern cxx_qt_build=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_build-6ab1336d900c684d.rlib --extern cxx_qt_lib_headers=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_lib_headers-d9912cca892c1c19.rlib --extern qt_build_utils=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libqt_build_utils-906dd61ff2dbfcbc.rlib -L '/opt/homebrew/Cellar/qt@5/5.15.12_1/lib' -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-201f66f53e1e6176/out -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/link-cplusplus-71603c78c2dde3e1/out` (exit status: 1)
[build] FAILED: examples/qml_features/CMakeFiles/_cargo-build_qml-features /Users/allen/Projects/RustProjects/cxx-qt/build/examples/qml_features/CMakeFiles/_cargo-build_qml-features 
[build] cd /Users/allen/Projects/RustProjects/cxx-qt/examples/qml_features/rust && /Applications/CMake.app/Contents/bin/cmake -E env CXXQT_EXPORT_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/examples/qml_features/cxxqt QMAKE=/opt/homebrew/Cellar/qt@5/5.15.12_1/bin/qmake QT_INCLUDE_DIR=/opt/homebrew/Cellar/qt@5/5.15.12_1/include LD_LIBRARY_PATH=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=/usr/bin/clang CC_aarch64_apple_darwin=/usr/bin/clang CXX_aarch64_apple_darwin=/usr/bin/clang++ AR_aarch64_apple_darwin=/usr/bin/ar SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk CORROSION_BUILD_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/examples/qml_features CARGO_BUILD_RUSTC=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc /Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo rustc --lib --target=aarch64-apple-darwin --package qml-features --manifest-path /Users/allen/Projects/RustProjects/cxx-qt/examples/qml_features/rust/Cargo.toml --target-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build -vv -- -Cdefault-linker-libraries=yes
[build] ninja: build stopped: subcommand failed.
[proc] The command: /opt/homebrew/bin/cmake --build /Users/allen/Projects/RustProjects/cxx-qt/build --config Debug --target _cargo-build_qml-features -- exited with code: 1
[driver] Build completed: 00:00:00.832
[build] Build finished with exit code 1

@dezbracaty dezbracaty added the bug Something isn't working label Mar 13, 2024
@jschwe
Copy link
Collaborator

jschwe commented Mar 14, 2024

Note: I edited your description slightly to hide the log in a spoiler comment.

Does cxx-qt use corrosion_link_libraries() to tell corrosion to link with QTCore? If that is the case, then patching corrosion_link_libraries() to check if the FRAMEWORK target property is set, and passing -framework instead sounds like it might solve your problem.

@dezbracaty
Copy link
Author

dezbracaty commented Mar 15, 2024

Not: I edited your description slightly to hide the log in a spoiler comment.

Does cxx-qt use corrosion_link_libraries() to tell corrosion to link with QTCore? If that is the case, then patching corrosion_link_libraries() to check if the FRAMEWORK target property is set, and passing -framework instead sounds like it might solve your problem.

Thanks for replying .
I had tried this function and you can see it in this photo.
image
And I don't think this function is useful because it only add -L flag ,but -L is wrong .

function(corrosion_link_libraries target_name)
    if(TARGET "${target_name}-static" AND NOT TARGET "${target_name}-shared")
        message(WARNING "The target ${target_name} builds a static library."
            "The linker is never invoked for a static libraries to link has effect "
            " aside from establishing a build dependency."
            )
    endif()
    add_dependencies(_cargo-build_${target_name} ${ARGN})
    foreach(library ${ARGN})
        set_property(
            TARGET _cargo-build_${target_name}
            APPEND
            PROPERTY CARGO_DEPS_LINKER_LANGUAGES
            $<TARGET_PROPERTY:${library},LINKER_LANGUAGE>
        )

        corrosion_add_target_local_rustflags(${target_name} "-L$<TARGET_LINKER_FILE_DIR:${library}>")
        corrosion_add_target_local_rustflags(${target_name} "-l$<TARGET_LINKER_FILE_BASE_NAME:${library}>")
    endforeach()
endfunction(corrosion_link_libraries)

And I had modified -L to -F , It not work too.

@jschwe
Copy link
Collaborator

jschwe commented Mar 16, 2024

And I don't think this function is useful because it only add -L flag ,but -L is wrong .

What i was trying to say, is that if the -L flag in question comes from corrosion_link_libraries, then patching corrosion_link_libraries to emit -F for frameworks might fix your issue. But it seems you are saying the problematic -L is not added by corrosion_link_libraries, but from somewhere else instead (presumably cxx-qt` code). Thus your specific problem likely needs to be fixed upstream in cxx-qt and not here.

I'm still leaving this issue open, since making corrosion_link_libraries check if a library is a framework or not is probably the correct thing to do, regardless of it is related to your specific issue or not.

@dezbracaty
Copy link
Author

And I don't think this function is useful because it only add -L flag ,but -L is wrong .

What i was trying to say, is that if the -L flag in question comes from corrosion_link_libraries, then patching corrosion_link_libraries to emit -F for frameworks might fix your issue. But it seems you are saying the problematic -L is not added by corrosion_link_libraries, but from somewhere else instead (presumably cxx-qt` code). Thus your specific problem likely needs to be fixed upstream in cxx-qt and not here.

I'm still leaving this issue open, since making corrosion_link_libraries check if a library is a framework or not is probably the correct thing to do, regardless of it is related to your specific issue or not.

Thank you for replying! You are right ! It only works when I modify build.rs in cxx-qt .
I think there are still two questions :
1 How can I send -F flag to cxx-qt .
2 Do I need to check the framework or library in corrosion? And even if corrosion is checked, what can it do?

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

No branches or pull requests

2 participants