KDAB / cxx-qt

Safe interop between Rust and Qt
https://kdab.github.io/cxx-qt/book/
960 stars 66 forks source link

QtCore not found. #885

Open dezbracaty opened 3 months ago

dezbracaty commented 3 months ago

system : macos buildIDE: vscode .vscode/settings.json:

"cmake.environment": {
        // "Qt6_DIR": "", ///opt/homebrew/opt/qt@5/lib/cmake/Qt5",
        "Qt5_DIR": "/opt/homebrew/Cellar/qt@5/5.15.12_1/lib/cmake/Qt5",
        "USE_QT5": "true",
        "RUSTFLAGS": "-C link-arg=-F/opt/homebrew/Cellar/qt@5/5.15.12_1/lib"
    },
[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.002] 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 DYLD_FRAMEWORK_PATH=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib QMAKE=/opt/homebrew/Cellar/qt@5/5.15.12_1/bin/qmake CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=/usr/bin/clang CC_aarch64-apple-darwin=/usr/bin/clang CXX_aarch64-apple-darwin=/usr/bin/clang++ 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 -- -Cdefault-linker-libraries=yes
[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] 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/rustc7cGQY5/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]   |
ahayzen-kdab commented 3 months ago

Thanks for taking the time to report this issue, are you able to provide your CMake file ? As note you need to ensure that the QMAKE location is set and correct, and overriding the rust flags might be confusing things. See the following line in the example where we get + set the QMAKE information for Rust https://github.com/KDAB/cxx-qt/blob/dcc3d52963624094cbef92513c58937ec74cdbdd/examples/qml_minimal/CMakeLists.txt#L36 https://github.com/KDAB/cxx-qt/blob/dcc3d52963624094cbef92513c58937ec74cdbdd/examples/qml_minimal/CMakeLists.txt#L66

Otherwise it could be one of the issues on macOS where libraries aren't where we are expecting.

dezbracaty commented 3 months ago

Thanks for taking the time to report this issue, are you able to provide your CMake file ? As note you need to ensure that the QMAKE location is set and correct, and overriding the rust flags might be confusing things. See the following line in the example where we get + set the QMAKE information for Rust

https://github.com/KDAB/cxx-qt/blob/dcc3d52963624094cbef92513c58937ec74cdbdd/examples/qml_minimal/CMakeLists.txt#L36

https://github.com/KDAB/cxx-qt/blob/dcc3d52963624094cbef92513c58937ec74cdbdd/examples/qml_minimal/CMakeLists.txt#L66

Otherwise it could be one of the issues on macOS where libraries aren't where we are expecting.

Thanks for replying !

All cmake file all original. The only change is I add a .vscode/settings.json under project root folder. And its content is blow : `{ /*****

The mainly code block is this :

"cmake.environment": { // "Qt6_DIR": "", ///opt/homebrew/opt/qt@5/lib/cmake/Qt5", "Qt5_DIR": "/opt/homebrew/Cellar/qt@5/5.15.12_1/lib/cmake/Qt5", "USE_QT5": "true", // "RUSTFLAGS": "-C link-arg=-F/opt/homebrew/Cellar/qt@5/5.15.12_1/lib" }, And my Qt install path is /opt/homebrew/Cellar/qt@5/5.15.12_1/

dezbracaty commented 3 months ago

This is due to final running command [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/rustcQyhfbH/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" We need use -iframework "/opt/homebrew/Cellar/qt@5/5.15.12_1/lib" or "-F/opt/homebrew/Cellar/qt@5/5.15.12_1/lib" to specify framework path on mac os . But It not generate correct command.

LeonMatthesKDAB commented 3 months ago

Hi @dezbracaty ,

could you try modifying the corrosion_import_path of the crate you're building to enable verbose output for build.rs.

You can do so by adding FLAGS "-vv":

corrosion_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE} FLAGS "-vv")

Maybe that can help uncover what is going on...

dezbracaty commented 3 months ago

Hi @dezbracaty ,

could you try modifying the corrosion_import_path of the crate you're building to enable verbose output for build.rs.

You can do so by adding FLAGS "-vv":

corrosion_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE} FLAGS "-vv")

Maybe that can help uncover what is going on...

Of course. Here is the 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.001] 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 minimal-lexical v0.2.1 [build] Fresh either v1.10.0 [build] Fresh memchr v2.7.1 [build] Fresh termcolor v1.4.1 [build] Fresh unicode-width v0.1.11 [build] Fresh proc-macro2 v1.0.78 [build] Fresh nom v7.1.3 [build] Fresh itertools v0.11.0 [build] Fresh codespan-reporting v0.11.1 [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 versions v5.0.1 [build] Fresh convert_case v0.6.0 [build] Fresh version_check v0.9.4 [build] Fresh static_assertions v1.1.0 [build] Fresh syn v2.0.52 [build] Fresh jobserver v0.1.28 [build] Fresh scratch v1.0.7 [build] Fresh itoa v1.0.10 [build] Fresh ryu v1.0.17 [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] Dirty qt-build-utils v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/qt-build-utils): the file crates/qt-build-utils/src/parse_cflags.rs has changed (1710341421.327963451s, 18s after last build at 1710341403.403233908s) [build] Compiling 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] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=qt_build_utils CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/qt-build-utils CARGO_PKG_AUTHORS='Be Wilson <be.wilson@kdab.com>' CARGO_PKG_DESCRIPTION='Build script helper for linking Qt libraries and using moc code generator. Intended to be used together with cc, cpp_build, or cxx_build' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=qt-build-utils 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 qt_build_utils --edition=2021 crates/qt-build-utils/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C metadata=906dd61ff2dbfcbc -C extra-filename=-906dd61ff2dbfcbc --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps -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 cc=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcc-4f7e5addbf99ef3e.rmeta --extern thiserror=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libthiserror-dd35499ccfe2017d.rmeta --extern versions=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libversions-8466793749c2eea6.rmeta [build] Dirty cxx-qt v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt): the dependency qt_build_utils was rebuilt [build] Compiling cxx-qt v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt) [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 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='Safe interop between Rust and Qt' CARGO_PKG_HOMEPAGE='https://kdab.github.io/cxx-qt/book/' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt CARGO_PKG_README=README.md 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/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=3383b93275d028f9 -C extra-filename=-3383b93275d028f9 --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-3383b93275d028f9 -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_build=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_build-d080bf3961733002.rlib --extern qt_build_utils=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libqt_build_utils-906dd61ff2dbfcbc.rlib [build] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ARCH=aarch64 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV='' CARGO_CFG_TARGET_FAMILY=unix CARGO_CFG_TARGET_FEATURE=aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh CARGO_CFG_TARGET_HAS_ATOMIC=128,16,32,64,8,ptr CARGO_CFG_TARGET_OS=macos CARGO_CFG_TARGET_POINTER_WIDTH=64 CARGO_CFG_TARGET_VENDOR=apple CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='' CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt 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='Safe interop between Rust and Qt' CARGO_PKG_HOMEPAGE='https://kdab.github.io/cxx-qt/book/' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt CARGO_PKG_README=README.md 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='' DEBUG=true DEP_CXXBRIDGE1_HEADER=/Users/allen/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cxx-1.0.119/include/cxx.h DYLD_FALLBACK_LIBRARY_PATH='/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps:/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug:/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib:/Users/allen/lib:/usr/local/lib:/usr/lib' HOST=aarch64-apple-darwin NUM_JOBS=10 OPT_LEVEL=0 OUT_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out PROFILE=debug RUSTC=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc RUSTC_LINKER=/usr/bin/clang RUSTDOC=rustdoc TARGET=aarch64-apple-darwin /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-3383b93275d028f9/build-script-build [build] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ARCH=aarch64 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV='' CARGO_CFG_TARGET_FAMILY=unix CARGO_CFG_TARGET_FEATURE=aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh CARGO_CFG_TARGET_HAS_ATOMIC=128,16,32,64,8,ptr CARGO_CFG_TARGET_OS=macos CARGO_CFG_TARGET_POINTER_WIDTH=64 CARGO_CFG_TARGET_VENDOR=apple CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='' CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt 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='Safe interop between Rust and Qt' CARGO_PKG_HOMEPAGE='https://kdab.github.io/cxx-qt/book/' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt CARGO_PKG_README=README.md 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='' DEBUG=true DEP_CXXBRIDGE1_HEADER=/Users/allen/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cxx-1.0.119/include/cxx.h DYLD_FALLBACK_LIBRARY_PATH='/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps:/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug:/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib:/Users/allen/lib:/usr/local/lib:/usr/lib' HOST=aarch64-apple-darwin NUM_JOBS=10 OPT_LEVEL=0 OUT_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out PROFILE=debug RUSTC=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc RUSTC_LINKER=/usr/bin/clang RUSTDOC=rustdoc TARGET=aarch64-apple-darwin /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-3383b93275d028f9/build-script-build [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=QMAKE [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=QT_VERSION_MAJOR [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=QMAKE [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=QT_VERSION_MAJOR [build] [cxx-qt 0.6.0] cargo:rustc-link-arg=-fapple-link-rtlib [build] [cxx-qt 0.6.0] cargo:rustc-link-arg=-fapple-link-rtlib [build] [cxx-qt 0.6.0] cargo:rerun-if-changed=src/connection.rs [build] [cxx-qt 0.6.0] cargo:rerun-if-changed=src/connection.rs [build] [cxx-qt 0.6.0] [build] [cxx-qt 0.6.0] CXX include path: [build] [cxx-qt 0.6.0] /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out/cxxbridge/include [build] [cxx-qt 0.6.0] /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out/cxxbridge/crate [build] [cxx-qt 0.6.0] [build] [cxx-qt 0.6.0] CXX include path: [build] [cxx-qt 0.6.0] /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out/cxxbridge/include [build] [cxx-qt 0.6.0] /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out/cxxbridge/crate [build] [cxx-qt 0.6.0] cargo:CXXBRIDGE_PREFIX=cxx-qt [build] [cxx-qt 0.6.0] cargo:CXXBRIDGE_DIR0=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out/cxxbridge/include [build] [cxx-qt 0.6.0] cargo:CXXBRIDGE_DIR1=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out/cxxbridge/crate [build] [cxx-qt 0.6.0] cargo:CXXBRIDGE_PREFIX=cxx-qt [build] [cxx-qt 0.6.0] cargo:CXXBRIDGE_DIR0=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out/cxxbridge/include [build] [cxx-qt 0.6.0] cargo:CXXBRIDGE_DIR1=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out/cxxbridge/crate [build] [cxx-qt 0.6.0] cargo:rustc-link-search=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=framework=QtCore [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=framework=DiskArbitration [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=framework=IOKit [build] [cxx-qt 0.6.0] cargo:rerun-if-changed=src/connection.cpp [build] [cxx-qt 0.6.0] cargo:rustc-link-search=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=framework=QtCore [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=framework=DiskArbitration [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=framework=IOKit [build] [cxx-qt 0.6.0] cargo:rerun-if-changed=src/connection.cpp [build] [cxx-qt 0.6.0] TARGET = Some("aarch64-apple-darwin") [build] [cxx-qt 0.6.0] OPT_LEVEL = Some("0") [build] [cxx-qt 0.6.0] HOST = Some("aarch64-apple-darwin") [build] [cxx-qt 0.6.0] TARGET = Some("aarch64-apple-darwin") [build] [cxx-qt 0.6.0] OPT_LEVEL = Some("0") [build] [cxx-qt 0.6.0] HOST = Some("aarch64-apple-darwin") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] DEBUG = Some("true") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] DEBUG = Some("true") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXX_aarch64_apple_darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] exit status: 0 [build] [cxx-qt 0.6.0] exit status: 0 [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=AR_aarch64-apple-darwin [build] [cxx-qt 0.6.0] AR_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=AR_aarch64_apple_darwin [build] [cxx-qt 0.6.0] AR_aarch64_apple_darwin = Some("/usr/bin/ar") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=ARFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] ARFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=ARFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] ARFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_ARFLAGS [build] [cxx-qt 0.6.0] HOST_ARFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=ARFLAGS [build] [cxx-qt 0.6.0] ARFLAGS = None [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=static=cxx-qt [build] [cxx-qt 0.6.0] cargo:rustc-link-search=native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out [build] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=cxx_qt CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt 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='Safe interop between Rust and Qt' CARGO_PKG_HOMEPAGE='https://kdab.github.io/cxx-qt/book/' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt CARGO_PKG_README=README.md 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' OUT_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out /Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name cxx_qt --edition=2021 crates/cxx-qt/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C metadata=7f61662ce45233bd -C extra-filename=-7f61662ce45233bd --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/deps --target aarch64-apple-darwin -C linker=/usr/bin/clang -C incremental=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/incremental -L dependency=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/deps -L dependency=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps --extern cxx=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/deps/libcxx-0bd2ca9042a6d0c5.rmeta --extern cxx_qt_macro=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_macro-d477869c8a826534.dylib --extern static_assertions=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/deps/libstatic_assertions-cc648a739bef6817.rmeta -L '/opt/homebrew/Cellar/qt@5/5.15.12_1/lib' -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out -l framework=QtCore -l framework=DiskArbitration -l framework=IOKit -l static=cxx-qt -C link-arg=-fapple-link-rtlib -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-e5339da9679b6739/out -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/link-cplusplus-a5d2b0cfa43fd9ad/out [build] [cxx-qt 0.6.0] exit status: 0 [build] [cxx-qt 0.6.0] exit status: 0 [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=AR_aarch64-apple-darwin [build] [cxx-qt 0.6.0] AR_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=AR_aarch64_apple_darwin [build] [cxx-qt 0.6.0] AR_aarch64_apple_darwin = Some("/usr/bin/ar") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=ARFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] ARFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=ARFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] ARFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_ARFLAGS [build] [cxx-qt 0.6.0] HOST_ARFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=ARFLAGS [build] [cxx-qt 0.6.0] ARFLAGS = None [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=static=cxx-qt [build] [cxx-qt 0.6.0] cargo:rustc-link-search=native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out [build] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=cxx_qt CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt 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='Safe interop between Rust and Qt' CARGO_PKG_HOMEPAGE='https://kdab.github.io/cxx-qt/book/' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt CARGO_PKG_README=README.md 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' OUT_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out /Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name cxx_qt --edition=2021 crates/cxx-qt/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C metadata=d2c539d1a4753f86 -C extra-filename=-d2c539d1a4753f86 --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps -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=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx-0dae514a5f69b4e8.rmeta --extern cxx_qt_macro=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_macro-d477869c8a826534.dylib --extern static_assertions=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libstatic_assertions-21ebe0eb3cea606d.rmeta -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 framework=QtCore -l framework=DiskArbitration -l framework=IOKit -l static=cxx-qt -C link-arg=-fapple-link-rtlib -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] Dirty cxx-qt-build v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-build): the dependency cxx_qt was rebuilt [build] Compiling cxx-qt-build v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-build) [build] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=cxx_qt_build CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-build 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='Helpers for integratingcxx-qtcrate into a Cargo build' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt-build 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 cxx_qt_build --edition=2021 crates/cxx-qt-build/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C metadata=6ab1336d900c684d -C extra-filename=-6ab1336d900c684d --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps -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 cc=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcc-4f7e5addbf99ef3e.rmeta --extern codespan_reporting=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcodespan_reporting-16803727eb35ee92.rmeta --extern cxx_gen=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_gen-5eee1925fa27fac5.rmeta --extern cxx_qt=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt-d2c539d1a4753f86.rmeta --extern cxx_qt_gen=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_gen-8d441a361f4b6960.rmeta --extern proc_macro2=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libproc_macro2-950e5ceb51725b27.rmeta --extern qt_build_utils=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libqt_build_utils-906dd61ff2dbfcbc.rmeta --extern quote=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libquote-f7d359d29bfc9b4a.rmeta --extern version_check=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libversion_check-9f51aa7577df62b5.rmeta -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] Dirty cxx-qt-lib-headers v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-lib-headers): the dependency cxx_qt_build was rebuilt [build] Compiling cxx-qt-lib-headers v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-lib-headers) [build] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=cxx_qt_lib_headers CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-lib-headers CARGO_PKG_AUTHORS='Andrew Hayzen <andrew.hayzen@kdab.com>:Be Wilson <be.wilson@kdab.com>' CARGO_PKG_DESCRIPTION='A small crate for cxx-qt-lib and cxx-qt-build to share cxx-qt-lib'\''s C++ headers' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt-lib-headers 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 cxx_qt_lib_headers --edition=2021 crates/cxx-qt-lib-headers/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,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=d9912cca892c1c19 -C extra-filename=-d9912cca892c1c19 --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps -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.rmeta -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] 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/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 integratingcxx-qtcrate withcxx' 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] 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] 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/rustct2bANU/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/rustcz4gCtX/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 integratingcxx-qtcrate withcxx' 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:02.801 [build] Build finished with exit code 1

LeonMatthesKDAB commented 3 months ago

Hm, I just noticed that this error already occurs when trying to link the build script itself.

I was expecting it to be an issue caused by qt-build-utils or cxx-qt-build, but that doesn't seem to be the case, as those shouldn't be able to modify how the build script itself is built :thinking:

So this may indeed be a corrosion issue :thinking: What do you think @ahayzen-kdab ?

LeonMatthesKDAB commented 3 months ago

By the way, @dezbracaty, if you don't necessarily need CMake, you could also try building the cargo_without_cmake example.

That doesn't need CMake, so might work for you for now. Just remember to set the QMAKE environment variable to the right value when running cargo build.

dezbracaty commented 3 months ago

By the way, @dezbracaty, if you don't necessarily need CMake, you could also try building the cargo_without_cmake example.

That doesn't need CMake, so might work for you for now. Just remember to set the QMAKE environment variable to the right value when running cargo build.

Thanks for your suggestion. In fact , I need use cmake because I want to use rust in a cmake-build qml project. I think this is a very awesome project and I think there are just a small step to success!

dezbracaty commented 3 months ago

Hm, I just noticed that this error already occurs when trying to link the build script itself.

I was expecting it to be an issue caused by qt-build-utils or cxx-qt-build, but that doesn't seem to be the case, as those shouldn't be able to modify how the build script itself is built 🤔

So this may indeed be a corrosion issue 🤔 What do you think @ahayzen-kdab ?

I don't really find where the "clang xxx" command generated , I think the work flow is corrosion use cmake's add_custom_command call cargo ,and cargo call clang .

dezbracaty commented 3 months ago

I fixed this bug finally. By adding

    println!("cargo:rustc-link-search=framework=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib");

in /cxx-qt/crates/cxx-qt/build.rs and cargo:rustc-link-search=framework tells cargo use -F to find framework.

But, the question is , this method I hard coding this line into build.rs , that not a good method to fix the issue . So , there are any method I can do the same thing in CMakeLists.txt ? or use some enviroment variable?

ahayzen-kdab commented 3 months ago

Thanks for finding the correct link search !

This is likely something missing in qt-build-utils still i think, in parse_libs_cflags there is one place that loads with a framework option I wonder if this is not being hit or it's using the wrong prl file.

https://github.com/KDAB/cxx-qt/blob/d78c8cbe1d0cc2aa7eb756ece1893b031dd9e618/crates/qt-build-utils/src/parse_cflags.rs#L112

https://github.com/KDAB/cxx-qt/blob/d78c8cbe1d0cc2aa7eb756ece1893b031dd9e618/crates/qt-build-utils/src/parse_cflags.rs#L133-L135

Are you able to see what the link_args value is there ?

And note that it is called by cargo_link_qt_library so I wonder which prl path it is reading and what the contents of the prl file are?

https://github.com/KDAB/cxx-qt/blob/d78c8cbe1d0cc2aa7eb756ece1893b031dd9e618/crates/qt-build-utils/src/lib.rs#L381-L387

Note that this method is called by cargo_link_libraries which has some lines to try and find the framework prl, again would be interesting if this is finding the right prl file ?

https://github.com/KDAB/cxx-qt/blob/d78c8cbe1d0cc2aa7eb756ece1893b031dd9e618/crates/qt-build-utils/src/lib.rs#L465-L469

dezbracaty commented 3 months ago

Thanks for finding the correct link search !

This is likely something missing in qt-build-utils still i think, in parse_libs_cflags there is one place that loads with a framework option I wonder if this is not being hit or it's using the wrong prl file.

https://github.com/KDAB/cxx-qt/blob/d78c8cbe1d0cc2aa7eb756ece1893b031dd9e618/crates/qt-build-utils/src/parse_cflags.rs#L112

https://github.com/KDAB/cxx-qt/blob/d78c8cbe1d0cc2aa7eb756ece1893b031dd9e618/crates/qt-build-utils/src/parse_cflags.rs#L133-L135

Are you able to see what the link_args value is there ?

And note that it is called by cargo_link_qt_library so I wonder which prl path it is reading and what the contents of the prl file are?

https://github.com/KDAB/cxx-qt/blob/d78c8cbe1d0cc2aa7eb756ece1893b031dd9e618/crates/qt-build-utils/src/lib.rs#L381-L387

Note that this method is called by cargo_link_libraries which has some lines to try and find the framework prl, again would be interesting if this is finding the right prl file ?

https://github.com/KDAB/cxx-qt/blob/d78c8cbe1d0cc2aa7eb756ece1893b031dd9e618/crates/qt-build-utils/src/lib.rs#L465-L469

Thanks for replying . I add to debug message at two places: image image

And the whole output is :

[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 example_qml_features -- [build] [1/5 0% :: 0.002] 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 CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=/usr/bin/clang CC_aarch64-apple-darwin=/usr/bin/clang CXX_aarch64-apple-darwin=/usr/bin/clang++ 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 minimal-lexical v0.2.1 [build] Fresh unicode-width v0.1.11 [build] Fresh memchr v2.7.1 [build] Fresh either v1.10.0 [build] Fresh proc-macro2 v1.0.78 [build] Fresh termcolor v1.4.1 [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 static_assertions v1.1.0 [build] Fresh syn v2.0.52 [build] Fresh jobserver v0.1.28 [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] Dirty qt-build-utils v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/qt-build-utils): the file crates/qt-build-utils/src/lib.rs has changed (1710471654.903991399s, 51s after last build at 1710471603.628201231s) [build] Compiling 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] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=qt_build_utils CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/qt-build-utils CARGO_PKG_AUTHORS='Be Wilson <be.wilson@kdab.com>' CARGO_PKG_DESCRIPTION='Build script helper for linking Qt libraries and using moc code generator. Intended to be used together with cc, cpp_build, or cxx_build' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=qt-build-utils 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 qt_build_utils --edition=2021 crates/qt-build-utils/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C metadata=906dd61ff2dbfcbc -C extra-filename=-906dd61ff2dbfcbc --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps -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 cc=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcc-4f7e5addbf99ef3e.rmeta --extern thiserror=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libthiserror-dd35499ccfe2017d.rmeta --extern versions=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libversions-8466793749c2eea6.rmeta [build] Dirty cxx-qt v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt): the dependency qt_build_utils was rebuilt [build] Compiling cxx-qt v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt) [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 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='Safe interop between Rust and Qt' CARGO_PKG_HOMEPAGE='https://kdab.github.io/cxx-qt/book/' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt CARGO_PKG_README=README.md 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/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=3383b93275d028f9 -C extra-filename=-3383b93275d028f9 --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-3383b93275d028f9 -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_build=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_build-d080bf3961733002.rlib --extern qt_build_utils=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libqt_build_utils-906dd61ff2dbfcbc.rlib [build] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ARCH=aarch64 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV='' CARGO_CFG_TARGET_FAMILY=unix CARGO_CFG_TARGET_FEATURE=aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh CARGO_CFG_TARGET_HAS_ATOMIC=128,16,32,64,8,ptr CARGO_CFG_TARGET_OS=macos CARGO_CFG_TARGET_POINTER_WIDTH=64 CARGO_CFG_TARGET_VENDOR=apple CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='' CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt 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='Safe interop between Rust and Qt' CARGO_PKG_HOMEPAGE='https://kdab.github.io/cxx-qt/book/' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt CARGO_PKG_README=README.md 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='' DEBUG=true DEP_CXXBRIDGE1_HEADER=/Users/allen/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cxx-1.0.119/include/cxx.h DYLD_FALLBACK_LIBRARY_PATH='/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps:/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug:/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib:/Users/allen/lib:/usr/local/lib:/usr/lib' HOST=aarch64-apple-darwin NUM_JOBS=10 OPT_LEVEL=0 OUT_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out PROFILE=debug RUSTC=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc RUSTC_LINKER=/usr/bin/clang RUSTDOC=rustdoc TARGET=aarch64-apple-darwin /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-3383b93275d028f9/build-script-build [build] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ARCH=aarch64 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV='' CARGO_CFG_TARGET_FAMILY=unix CARGO_CFG_TARGET_FEATURE=aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh CARGO_CFG_TARGET_HAS_ATOMIC=128,16,32,64,8,ptr CARGO_CFG_TARGET_OS=macos CARGO_CFG_TARGET_POINTER_WIDTH=64 CARGO_CFG_TARGET_VENDOR=apple CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='' CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt 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='Safe interop between Rust and Qt' CARGO_PKG_HOMEPAGE='https://kdab.github.io/cxx-qt/book/' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt CARGO_PKG_README=README.md 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='' DEBUG=true DEP_CXXBRIDGE1_HEADER=/Users/allen/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cxx-1.0.119/include/cxx.h DYLD_FALLBACK_LIBRARY_PATH='/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps:/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug:/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib:/Users/allen/lib:/usr/local/lib:/usr/lib' HOST=aarch64-apple-darwin NUM_JOBS=10 OPT_LEVEL=0 OUT_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out PROFILE=debug RUSTC=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc RUSTC_LINKER=/usr/bin/clang RUSTDOC=rustdoc TARGET=aarch64-apple-darwin /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-3383b93275d028f9/build-script-build [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=QMAKE [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=QT_VERSION_MAJOR [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=QMAKE [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=QT_VERSION_MAJOR [build] [cxx-qt 0.6.0] cargo:rustc-link-arg=-fapple-link-rtlib [build] [cxx-qt 0.6.0] cargo:rustc-link-arg=-fapple-link-rtlib [build] [cxx-qt 0.6.0] cargo:rerun-if-changed=src/connection.rs [build] [cxx-qt 0.6.0] cargo:rerun-if-changed=src/connection.rs [build] [cxx-qt 0.6.0] [build] [cxx-qt 0.6.0] CXX include path: [build] [cxx-qt 0.6.0] /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out/cxxbridge/include [build] [cxx-qt 0.6.0] /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out/cxxbridge/crate [build] [cxx-qt 0.6.0] [build] [cxx-qt 0.6.0] CXX include path: [build] [cxx-qt 0.6.0] /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out/cxxbridge/include [build] [cxx-qt 0.6.0] /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out/cxxbridge/crate [build] [cxx-qt 0.6.0] cargo:CXXBRIDGE_PREFIX=cxx-qt [build] [cxx-qt 0.6.0] cargo:CXXBRIDGE_DIR0=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out/cxxbridge/include [build] [cxx-qt 0.6.0] cargo:CXXBRIDGE_DIR1=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out/cxxbridge/crate [build] [cxx-qt 0.6.0] cargo:CXXBRIDGE_PREFIX=cxx-qt [build] [cxx-qt 0.6.0] cargo:CXXBRIDGE_DIR0=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out/cxxbridge/include [build] [cxx-qt 0.6.0] cargo:CXXBRIDGE_DIR1=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out/cxxbridge/crate [build] [cxx-qt 0.6.0] cargo:rustc-link-search=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=framework=QtCore [build] [cxx-qt 0.6.0] cargo:rustc-link-search=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=framework=QtCore [build] [cxx-qt 0.6.0] DebugMsg :in cargo_link_qt_library function /opt/homebrew/Cellar/qt@5/5.15.12_1 /opt/homebrew/Cellar/qt@5/5.15.12_1/lib framework=QtCore /opt/homebrew/Cellar/qt@5/5.15.12_1/lib/QtCore.framework/Resources/QtCore.prl [build] [cxx-qt 0.6.0] DebugMsg :in parse_libs_cflags func-framework [build] [cxx-qt 0.6.0] DebugMsg :in cargo_link_qt_library function /opt/homebrew/Cellar/qt@5/5.15.12_1 /opt/homebrew/Cellar/qt@5/5.15.12_1/lib framework=QtCore /opt/homebrew/Cellar/qt@5/5.15.12_1/lib/QtCore.framework/Resources/QtCore.prl [build] [cxx-qt 0.6.0] DebugMsg :in parse_libs_cflags funcDiskArbitration [build] [cxx-qt 0.6.0] DebugMsg :in parse_libs_cflags func-framework [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=framework=DiskArbitration [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=framework=IOKit [build] [cxx-qt 0.6.0] cargo:rerun-if-changed=src/connection.cpp [build] [cxx-qt 0.6.0] DebugMsg :in parse_libs_cflags funcDiskArbitration [build] [cxx-qt 0.6.0] DebugMsg :in parse_libs_cflags func-framework [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=framework=DiskArbitration [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=framework=IOKit [build] [cxx-qt 0.6.0] cargo:rerun-if-changed=src/connection.cpp [build] [cxx-qt 0.6.0] DebugMsg :in parse_libs_cflags func-framework [build] [cxx-qt 0.6.0] DebugMsg :in parse_libs_cflags funcIOKit [build] [cxx-qt 0.6.0] DebugMsg :in parse_libs_cflags funcIOKit [build] [cxx-qt 0.6.0] TARGET = Some("aarch64-apple-darwin") [build] [cxx-qt 0.6.0] OPT_LEVEL = Some("0") [build] [cxx-qt 0.6.0] HOST = Some("aarch64-apple-darwin") [build] [cxx-qt 0.6.0] TARGET = Some("aarch64-apple-darwin") [build] [cxx-qt 0.6.0] OPT_LEVEL = Some("0") [build] [cxx-qt 0.6.0] HOST = Some("aarch64-apple-darwin") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] DEBUG = Some("true") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] DEBUG = Some("true") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXX_aarch64-apple-darwin = Some("/usr/bin/clang++") [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS [build] [cxx-qt 0.6.0] CRATE_CC_NO_DEFAULTS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] CXXFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_CXXFLAGS [build] [cxx-qt 0.6.0] HOST_CXXFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=CXXFLAGS [build] [cxx-qt 0.6.0] CXXFLAGS = None [build] [cxx-qt 0.6.0] exit status: 0 [build] [cxx-qt 0.6.0] exit status: 0 [build] [cxx-qt 0.6.0] exit status: 0 [build] [cxx-qt 0.6.0] exit status: 0 [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=AR_aarch64-apple-darwin [build] [cxx-qt 0.6.0] AR_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=AR_aarch64_apple_darwin [build] [cxx-qt 0.6.0] AR_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_AR [build] [cxx-qt 0.6.0] HOST_AR = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=AR [build] [cxx-qt 0.6.0] AR = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=ARFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] ARFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=ARFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] ARFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_ARFLAGS [build] [cxx-qt 0.6.0] HOST_ARFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=ARFLAGS [build] [cxx-qt 0.6.0] ARFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=AR_aarch64-apple-darwin [build] [cxx-qt 0.6.0] AR_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=AR_aarch64_apple_darwin [build] [cxx-qt 0.6.0] AR_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_AR [build] [cxx-qt 0.6.0] HOST_AR = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=AR [build] [cxx-qt 0.6.0] AR = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=ARFLAGS_aarch64-apple-darwin [build] [cxx-qt 0.6.0] ARFLAGS_aarch64-apple-darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=ARFLAGS_aarch64_apple_darwin [build] [cxx-qt 0.6.0] ARFLAGS_aarch64_apple_darwin = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=HOST_ARFLAGS [build] [cxx-qt 0.6.0] HOST_ARFLAGS = None [build] [cxx-qt 0.6.0] cargo:rerun-if-env-changed=ARFLAGS [build] [cxx-qt 0.6.0] ARFLAGS = None [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=static=cxx-qt [build] [cxx-qt 0.6.0] cargo:rustc-link-search=native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out [build] [cxx-qt 0.6.0] cargo:rustc-link-lib=static=cxx-qt [build] [cxx-qt 0.6.0] cargo:rustc-link-search=native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out [build] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=cxx_qt CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt 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='Safe interop between Rust and Qt' CARGO_PKG_HOMEPAGE='https://kdab.github.io/cxx-qt/book/' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt CARGO_PKG_README=README.md 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' OUT_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out /Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name cxx_qt --edition=2021 crates/cxx-qt/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C metadata=7f61662ce45233bd -C extra-filename=-7f61662ce45233bd --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/deps --target aarch64-apple-darwin -C linker=/usr/bin/clang -C incremental=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/incremental -L dependency=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/deps -L dependency=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps --extern cxx=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/deps/libcxx-0bd2ca9042a6d0c5.rmeta --extern cxx_qt_macro=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_macro-d477869c8a826534.dylib --extern static_assertions=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/deps/libstatic_assertions-cc648a739bef6817.rmeta -L '/opt/homebrew/Cellar/qt@5/5.15.12_1/lib' -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-7a56a63b4438d37a/out -l framework=QtCore -l framework=DiskArbitration -l framework=IOKit -l static=cxx-qt -C link-arg=-fapple-link-rtlib -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-e5339da9679b6739/out -L native=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/link-cplusplus-a5d2b0cfa43fd9ad/out [build] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=cxx_qt CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt 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='Safe interop between Rust and Qt' CARGO_PKG_HOMEPAGE='https://kdab.github.io/cxx-qt/book/' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt CARGO_PKG_README=README.md 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' OUT_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-cd4fe937a4be2c39/out /Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name cxx_qt --edition=2021 crates/cxx-qt/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C metadata=d2c539d1a4753f86 -C extra-filename=-d2c539d1a4753f86 --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps -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=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx-0dae514a5f69b4e8.rmeta --extern cxx_qt_macro=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_macro-d477869c8a826534.dylib --extern static_assertions=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libstatic_assertions-21ebe0eb3cea606d.rmeta -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 framework=QtCore -l framework=DiskArbitration -l framework=IOKit -l static=cxx-qt -C link-arg=-fapple-link-rtlib -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] Dirty cxx-qt-build v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-build): the dependency cxx_qt was rebuilt [build] Compiling cxx-qt-build v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-build) [build] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=cxx_qt_build CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-build 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='Helpers for integratingcxx-qtcrate into a Cargo build' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt-build 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 cxx_qt_build --edition=2021 crates/cxx-qt-build/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C metadata=6ab1336d900c684d -C extra-filename=-6ab1336d900c684d --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps -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 cc=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcc-4f7e5addbf99ef3e.rmeta --extern codespan_reporting=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcodespan_reporting-16803727eb35ee92.rmeta --extern cxx_gen=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_gen-5eee1925fa27fac5.rmeta --extern cxx_qt=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt-d2c539d1a4753f86.rmeta --extern cxx_qt_gen=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libcxx_qt_gen-8d441a361f4b6960.rmeta --extern proc_macro2=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libproc_macro2-950e5ceb51725b27.rmeta --extern qt_build_utils=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libqt_build_utils-906dd61ff2dbfcbc.rmeta --extern quote=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libquote-f7d359d29bfc9b4a.rmeta --extern version_check=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps/libversion_check-9f51aa7577df62b5.rmeta -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] Dirty cxx-qt-lib-headers v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-lib-headers): the dependency cxx_qt_build was rebuilt [build] Compiling cxx-qt-lib-headers v0.6.0 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-lib-headers) [build] Running CARGO=/Users/allen/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=cxx_qt_lib_headers CARGO_MANIFEST_DIR=/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt-lib-headers CARGO_PKG_AUTHORS='Andrew Hayzen <andrew.hayzen@kdab.com>:Be Wilson <be.wilson@kdab.com>' CARGO_PKG_DESCRIPTION='A small crate for cxx-qt-lib and cxx-qt-build to share cxx-qt-lib'\''s C++ headers' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cxx-qt-lib-headers 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 cxx_qt_lib_headers --edition=2021 crates/cxx-qt-lib-headers/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,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=d9912cca892c1c19 -C extra-filename=-d9912cca892c1c19 --out-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/deps -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.rmeta -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] 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/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 integratingcxx-qtcrate withcxx' 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] 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] 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/rustciL74sK/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: 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/rustcksvFIe/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: 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 integratingcxx-qtcrate withcxx' 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 CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=/usr/bin/clang CC_aarch64-apple-darwin=/usr/bin/clang CXX_aarch64-apple-darwin=/usr/bin/clang++ 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 example_qml_features -- exited with code: 1 [driver] Build completed: 00:00:02.238 [build] Build finished with exit code 1

So , maybe function not received any parameter with "-F" is key point? But how could I send a "-F" flag to this function ?

nikolaseu commented 3 months ago

I have the same issue after updating to latest main.

The issue seems to be commit 551800363671c511d783f7e4c465753a891c8c9a:

commit 551800363671c511d783f7e4c465753a891c8c9a
Author: Andrew Hayzen <andrew.hayzen@kdab.com>
Date:   Mon Feb 12 11:33:38 2024 +0900

    cxx-qt: add QMetaObjectConnection and Qt::ConnectionType

    This allows us to remove cxx-qt-lib from cxx-qt-gen later.

If I try the previous one it works: 77bef00f27bca231fe8b8376501d5ab8477fc793

macOS 14.4.1, AppleClang 15.0.0.15000309 (XCode 15.3)

ahayzen-kdab commented 3 months ago

Interesting find ! That's when we starting building CXX bridges in the cxx-qt crate, wonder if there is a subtle different in the build script of cxx-qt vs what cxx-qt-build does elsewhere. Or whether there is some other issue with a crate dependency linking to Qt.

LeonMatthesKDAB commented 3 months ago

@dezbracaty, so from what you found out it looks like the parse_libs_cflags should generate the missing call to cargo:rustc-link-search=framework=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib.

Which is information that should be extracted from the prl file.

@nikolaseu or @dezbracaty Could you share the contents of your prl file, so we can take a look ( /opt/homebrew/Cellar/qt@5/5.15.12_1/lib/QtCore.framework/Resources/QtCore.prl ). qt-build-utils does quite a bit of parsing there, so it may be that your file has slightly different formatting, which may screw up the argument extraction :thinking:

@dezbracaty In case its not too much trouble, could you try the commit 77bef00f27bca231fe8b8376501d5ab8477fc793, as suggested by @nikolaseu . If you could confirm that's the issue for you as well than we can hopefully figure out what change exactly triggered the issue.

nikolaseu commented 3 months ago

I'm using Qt6, these are the contents of /opt/homebrew/Cellar/qt/6.6.2_1/lib/QtCore.framework/Resources/QtCore.prl

QMAKE_PRL_TARGET = QtCore
QMAKE_PRL_CONFIG = shared lib_bundle
QMAKE_PRL_VERSION = 6.6.2
QMAKE_PRL_LIBS = -framework IOKit -framework DiskArbitration
QMAKE_PRL_LIBS_FOR_CMAKE = -framework IOKit;-framework DiskArbitration
ahayzen-kdab commented 3 months ago

Some notes when looking initially at this, we have some rustc-link-search we may need to just add framework= to the start of them when using frameworks, eg for this one https://github.com/KDAB/cxx-qt/blob/f82ab4e4ed90a99cae5aaf493a52ef29de73aee5/crates/qt-build-utils/src/lib.rs#L439

Still need to investigate how to determine the right circumstances and the code change.

ahayzen-kdab commented 2 months ago

Interesting so the docs state that when you don't specify a kind of link search it should try all, and from those logs above it looks like cargo:rustc-link-search=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib is called, so either something magic happens when specifying framework= or it's more subtle and specific to a certain crate / place.

all — Search for all library kinds in this directory. This is the default if KIND is not specified.

https://doc.rust-lang.org/rustc/command-line-arguments.html#option-l-search-path

ahayzen-kdab commented 2 months ago

I note that you needed to add this into the cxx-qt build script which doesn't use cxx-qt-build but rather manually calls the build.

But i also note that this is also calling cargo_link_libraries and should be adding cargo:rustc-link-search for QT_INSTALL_LIBS (which should have a kind of all).

@dezbracaty Are you able to provide the output of qmake -query as it'd be good to check what the paths are there too.

ahayzen-kdab commented 2 months ago

Also @dezbracaty and @nikolaseu could you see if this change helps at all ? https://github.com/KDAB/cxx-qt/pull/913

nikolaseu commented 2 months ago

Also @dezbracaty and @nikolaseu could you see if this change helps at all ? #913

It works for me! Thanks

ahayzen-kdab commented 2 months ago

@nikolaseu awesome ! Do you know / are you able to show what the contents of QT_INSTALL_LIBS is ? This is the /opt/homebrew/Cellar/qt@5/5.15.12_1/lib folder.

As i wondered if when you have Qt installed in a frameworks mode are there only frameworks in that folder ? As if we set framework= in the search path whenever we find we are in frameworks mode this then prevents that folder being searched for other types of libraries.

But maybe this folder exclusively contains frameworks in your setup ?

nikolaseu commented 2 months ago
ls /opt/homebrew/Cellar/qt/6.6.2_1/lib
Qt3DAnimation.framework                QtCore5Compat.framework                QtLabsWavefrontMesh.framework          QtProtobuf.framework                   QtQuick3DPhysics.framework             QtRemoteObjectsQml.framework           QtWebChannelQuick.framework            libQt6FbSupport.prl
Qt3DCore.framework                     QtDBus.framework                       QtLanguageServer.framework             QtQml.framework                        QtQuick3DPhysicsHelpers.framework      QtScxml.framework                      QtWebEngineCore.framework              libQt6PacketProtocol.a
Qt3DExtras.framework                   QtDataVisualization.framework          QtLocation.framework                   QtQmlCompiler.framework                QtQuick3DRuntimeRender.framework       QtScxmlQml.framework                   QtWebEngineQuick.framework             libQt6PacketProtocol.prl
Qt3DInput.framework                    QtDataVisualizationQml.framework       QtMqtt.framework                       QtQmlCore.framework                    QtQuick3DSpatialAudio.framework        QtSensors.framework                    QtWebEngineQuickDelegatesQml.framework libQt6QmlDebug.a
Qt3DLogic.framework                    QtDeclarativeOpcua.framework           QtMultimedia.framework                 QtQmlLocalStorage.framework            QtQuick3DUtils.framework               QtSensorsQuick.framework               QtWebEngineWidgets.framework           libQt6QmlDebug.prl
Qt3DQuick.framework                    QtDesigner.framework                   QtMultimediaQuick.framework            QtQmlModels.framework                  QtQuickControls2.framework             QtSerialBus.framework                  QtWebSockets.framework                 libQt6QmlDom.a
Qt3DQuickAnimation.framework           QtDesignerComponents.framework         QtMultimediaWidgets.framework          QtQmlWorkerScript.framework            QtQuickControls2Impl.framework         QtSerialPort.framework                 QtWebView.framework                    libQt6QmlDom.prl
Qt3DQuickExtras.framework              QtGraphs.framework                     QtNetwork.framework                    QtQmlXmlListModel.framework            QtQuickDialogs2.framework              QtShaderTools.framework                QtWebViewQuick.framework               libQt6QmlLS.a
Qt3DQuickInput.framework               QtGrpc.framework                       QtNetworkAuth.framework                QtQuick.framework                      QtQuickDialogs2QuickImpl.framework     QtSpatialAudio.framework               QtWidgets.framework                    libQt6QmlLS.prl
Qt3DQuickRender.framework              QtGui.framework                        QtNfc.framework                        QtQuick3D.framework                    QtQuickDialogs2Utils.framework         QtSql.framework                        QtXml.framework                        libQt6QmlToolingSettings.a
Qt3DQuickScene2D.framework             QtHelp.framework                       QtOpcUa.framework                      QtQuick3DAssetImport.framework         QtQuickEffects.framework               QtStateMachine.framework               cmake                                  libQt6QmlToolingSettings.prl
Qt3DRender.framework                   QtHttpServer.framework                 QtOpenGL.framework                     QtQuick3DAssetUtils.framework          QtQuickLayouts.framework               QtStateMachineQml.framework            libQt6BundledEmbree.a                  libQt6QmlTypeRegistrar.a
QtBluetooth.framework                  QtHunspellInputMethod.framework        QtOpenGLWidgets.framework              QtQuick3DEffects.framework             QtQuickParticles.framework             QtSvg.framework                        libQt6BundledPhysX.a                   libQt6QmlTypeRegistrar.prl
QtBodymovin.framework                  QtJsonRpc.framework                    QtPdf.framework                        QtQuick3DGlslParser.framework          QtQuickShapes.framework                QtSvgWidgets.framework                 libQt6BundledResonanceAudio.a          libQt6QuickControlsTestUtils.a
QtCharts.framework                     QtLabsAnimation.framework              QtPdfQuick.framework                   QtQuick3DHelpers.framework             QtQuickTemplates2.framework            QtTest.framework                       libQt6DeviceDiscoverySupport.a         libQt6QuickControlsTestUtils.prl
QtChartsQml.framework                  QtLabsFolderListModel.framework        QtPdfWidgets.framework                 QtQuick3DHelpersImpl.framework         QtQuickTest.framework                  QtTextToSpeech.framework               libQt6DeviceDiscoverySupport.prl       libQt6QuickTestUtils.a
QtCoap.framework                       QtLabsQmlModels.framework              QtPositioning.framework                QtQuick3DIblBaker.framework            QtQuickTimeline.framework              QtUiTools.framework                    libQt6ExampleIcons.a                   libQt6QuickTestUtils.prl
QtConcurrent.framework                 QtLabsSettings.framework               QtPositioningQuick.framework           QtQuick3DParticleEffects.framework     QtQuickWidgets.framework               QtVirtualKeyboard.framework            libQt6ExampleIcons.prl                 objects-Release
QtCore.framework                       QtLabsSharedImage.framework            QtPrintSupport.framework               QtQuick3DParticles.framework           QtRemoteObjects.framework              QtWebChannel.framework                 libQt6FbSupport.a
ahayzen-kdab commented 2 months ago

Interesting thanks !

So appears most are frameworks other than those last few static libraries (although most look like they are rarely used or linked from elsewhere)

Wonder if us effectively calling the following means that the directory is still added as a normal search path as well as a frameworks one.

 println!("cargo:rustc-link-search=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib");
 println!("cargo:rustc-link-search=framework=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib");
LeonMatthesKDAB commented 2 months ago

@ahayzen-kdab Can you test what happens if you just unconditionally emit the framework= version of rustc-link-search as well?

If your hunch is correct and it then searches for both, we could maybe just do that and not have to special-case the frameworks. This may lead to incompatibility if both versions are installed though, so that's also a concern :thinking:

ahayzen-kdab commented 2 months ago

@LeonMatthesKDAB seems to build on Linux doing this, i wonder if we just always enable this for apple targets?

ahayzen-kdab commented 2 months ago

Appears there is even a unit test checking this

https://github.com/rust-lang/cargo/blob/a9f86addbc3eef731468c3b07addc74a5bc1d8ae/tests/testsuite/run.rs#L1226-L1255

And looks like this is the case in the parsing code too

https://github.com/rust-lang/cargo/blob/a9f86addbc3eef731468c3b07addc74a5bc1d8ae/src/cargo/util/context/target.rs#L172-L177

ahayzen-kdab commented 2 months ago

That test isn't exactly the same as our case, but you can see how library paths is a vector and not a set, so it should search for both

ahayzen-kdab commented 2 months ago

@dezbracaty or @nikolaseu are you able to double check that the changes still work in https://github.com/KDAB/cxx-qt/pull/913 ?

nikolaseu commented 2 months ago

works for me

dezbracaty commented 1 month ago

@dezbracaty, so from what you found out it looks like the parse_libs_cflags should generate the missing call to cargo:rustc-link-search=framework=/opt/homebrew/Cellar/qt@5/5.15.12_1/lib.

Which is information that should be extracted from the prl file.

@nikolaseu or @dezbracaty Could you share the contents of your prl file, so we can take a look ( /opt/homebrew/Cellar/qt@5/5.15.12_1/lib/QtCore.framework/Resources/QtCore.prl ). qt-build-utils does quite a bit of parsing there, so it may be that your file has slightly different formatting, which may screw up the argument extraction 🤔

@dezbracaty In case its not too much trouble, could you try the commit 77bef00f27bca231fe8b8376501d5ab8477fc793, as suggested by @nikolaseu . If you could confirm that's the issue for you as well than we can hopefully figure out what change exactly triggered the issue.

Sorry I just look this message. Today I pull this project and I found something changed. This is the output:

[main] Building folder: cxx-qt 
[proc] Executing command: /usr/bin/clang -v
[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 (dev) at build/_deps/corrosion-src/cmake/FindRust.cmake:363 (message):
[cmake]   Unexpected output from `rustc --version` for Toolchain
[cmake]   `stable-aarch64-unknown-linux-gnu`: ``.
[cmake] 
[cmake]   Ignoring this toolchain.
[cmake] Call Stack (most recent call first):
[cmake]   build/_deps/corrosion-src/cmake/Corrosion.cmake:63 (find_package)
[cmake]   build/_deps/corrosion-src/CMakeLists.txt:73 (include)
[cmake] This warning is for project developers.  Use -Wno-dev to suppress it.
[cmake] 
[cmake] -- Rust Toolchain: stable-aarch64-apple-darwin
[cmake] -- Rust Target: aarch64-apple-darwin
[cmake] -- Using Corrosion as a subdirectory
[cmake] -- valgrind not found. Please install it
[cmake] -- valgrind not found. Please install it
[cmake] -- valgrind not found. Please install it
[cmake] -- valgrind not found. Please install it
[cmake] -- valgrind not found. Please install it
[cmake] -- Configuring done (1.3s)
[cmake] -- Generating done (0.0s)
[cmake] -- Build files have been written to: /Users/allen/Projects/RustProjects/cxx-qt/build
[build] Starting build
[proc] Executing command: /opt/homebrew/bin/cmake --build /Users/allen/Projects/RustProjects/cxx-qt/build --config Debug --target all --
[build] [1/43   0% :: 0.011] cd /Users/allen/Projects/RustProjects/cxx-qt/examples/demo_threading/rust && /Applications/CMake.app/Contents/bin/cmake -E env CXXQT_EXPORT_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/examples/demo_threading/cxxqt QMAKE=/Users/allen/Soft/Qt/6.5.3/macos/bin/qmake 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.5.sdk CORROSION_BUILD_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/examples/demo_threading 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 cxx_qt_demo_threading --manifest-path /Users/allen/Projects/RustProjects/cxx-qt/examples/demo_threading/rust/Cargo.toml --target-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build -- -Cdefault-linker-libraries=yes
[build]    Compiling cxx-qt v0.6.1 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt)
[build]    Compiling uuid v1.7.0
[build]    Compiling serde_json v1.0.114
[build] The following warnings were emitted during compilation:
[build] 
[build] warning: cxx-qt@0.6.1: In file included from /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/sources/cxx-qt/src/connection.rs.cc:1:
[build] warning: cxx-qt@0.6.1: /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxx-qt/connection.h:9:10: fatal error: 'QtCore/QObject' file not found
[build] warning: cxx-qt@0.6.1: #include <QtCore/QObject>
[build] warning: cxx-qt@0.6.1:          ^~~~~~~~~~~~~~~~
[build] warning: cxx-qt@0.6.1: In file included from src/connection.cpp:7:
[build] warning: cxx-qt@0.6.1: /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxx-qt/connection.h:9:10: fatal error: 'QtCore/QObject' file not found
[build] warning: cxx-qt@0.6.1: #include <QtCore/QObject>
[build] warning: cxx-qt@0.6.1:          ^~~~~~~~~~~~~~~~
[build] warning: cxx-qt@0.6.1: 1 error generated.
[build] warning: cxx-qt@0.6.1: ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/usr/bin/clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.5" "-std=c++17" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/include" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/crate" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include" "-Wall" "-Wextra" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/74519e3fc51a2df9-connection.rs.o" "-c" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/sources/cxx-qt/src/connection.rs.cc" with args "clang++" did not execute successfully (status code exit status: 1).cargo:warning=1 error generated.
[build] warning: cxx-qt@0.6.1: ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/usr/bin/clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.5" "-std=c++17" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/include" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/crate" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include" "-Wall" "-Wextra" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/2e40c9e35e9506f4-connection.o" "-c" "src/connection.cpp" with args "clang++" did not execute successfully (status code exit status: 1).
[build] 
[build] error: failed to run custom build command for `cxx-qt v0.6.1 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt)`
[build] 
[build] Caused by:
[build]   process didn't exit successfully: `/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-8f7ffd7a8f06c07c/build-script-build` (exit status: 1)
[build]   --- stdout
[build]   cargo:rustc-link-search=framework=/Users/allen/Soft/Qt/6.5.3/macos/lib/
[build]   cargo:rerun-if-env-changed=QMAKE
[build]   cargo:rerun-if-env-changed=QT_VERSION_MAJOR
[build]   cargo:rustc-link-arg=-fapple-link-rtlib
[build]   cargo:rerun-if-changed=src/connection.rs
[build]   cargo:CXXBRIDGE_PREFIX=cxx-qt
[build]   cargo:CXXBRIDGE_DIR0=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/include
[build]   cargo:CXXBRIDGE_DIR1=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/crate
[build]   cargo:rustc-link-search=/Users/allen/Soft/Qt/6.5.3/macos/lib
[build]   cargo:rustc-link-search=framework=/Users/allen/Soft/Qt/6.5.3/macos/lib
[build]   cargo:rustc-link-lib=framework=QtCore
[build]   cargo:rustc-link-lib=framework=IOKit
[build]   cargo:rustc-link-lib=framework=DiskArbitration
[build]   cargo:rerun-if-changed=src/connection.cpp
[build]   TARGET = Some("aarch64-apple-darwin")
[build]   OPT_LEVEL = Some("0")
[build]   HOST = Some("aarch64-apple-darwin")
[build]   cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
[build]   CXX_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
[build]   CXX_aarch64_apple_darwin = Some("/usr/bin/clang++")
[build]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[build]   CRATE_CC_NO_DEFAULTS = None
[build]   DEBUG = Some("true")
[build]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
[build]   CXXFLAGS_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
[build]   CXXFLAGS_aarch64_apple_darwin = None
[build]   cargo:rerun-if-env-changed=HOST_CXXFLAGS
[build]   HOST_CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS
[build]   CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
[build]   CXX_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
[build]   CXX_aarch64_apple_darwin = Some("/usr/bin/clang++")
[build]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[build]   CRATE_CC_NO_DEFAULTS = None
[build]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
[build]   CXXFLAGS_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
[build]   CXXFLAGS_aarch64_apple_darwin = None
[build]   cargo:rerun-if-env-changed=HOST_CXXFLAGS
[build]   HOST_CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS
[build]   CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
[build]   CXX_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
[build]   CXX_aarch64_apple_darwin = Some("/usr/bin/clang++")
[build]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[build]   CRATE_CC_NO_DEFAULTS = None
[build]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
[build]   CXXFLAGS_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
[build]   CXXFLAGS_aarch64_apple_darwin = None
[build]   cargo:rerun-if-env-changed=HOST_CXXFLAGS
[build]   HOST_CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS
[build]   CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
[build]   CXX_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
[build]   CXX_aarch64_apple_darwin = Some("/usr/bin/clang++")
[build]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[build]   CRATE_CC_NO_DEFAULTS = None
[build]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
[build]   CXXFLAGS_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
[build]   CXXFLAGS_aarch64_apple_darwin = None
[build]   cargo:rerun-if-env-changed=HOST_CXXFLAGS
[build]   HOST_CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS
[build]   CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
[build]   CXX_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
[build]   CXX_aarch64_apple_darwin = Some("/usr/bin/clang++")
[build]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[build]   CRATE_CC_NO_DEFAULTS = None
[build]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
[build]   CXXFLAGS_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
[build]   CXXFLAGS_aarch64_apple_darwin = None
[build]   cargo:rerun-if-env-changed=HOST_CXXFLAGS
[build]   HOST_CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS
[build]   CXXFLAGS = None
[build]   cargo:warning=In file included from /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/sources/cxx-qt/src/connection.rs.cc:1:
[build]   cargo:warning=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxx-qt/connection.h:9:10: fatal error: 'QtCore/QObject' file not found
[build]   cargo:warning=#include <QtCore/QObject>
[build]   cargo:warning=         ^~~~~~~~~~~~~~~~
[build]   cargo:warning=In file included from src/connection.cpp:7:
[build]   cargo:warning=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxx-qt/connection.h:9:10: fatal error: 'QtCore/QObject' file not found
[build]   cargo:warning=#include <QtCore/QObject>
[build]   cargo:warning=         ^~~~~~~~~~~~~~~~
[build]   cargo:warning=1 error generated.
[build]   exit status: 1
[build]   cargo:warning=ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/usr/bin/clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.5" "-std=c++17" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/include" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/crate" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include" "-Wall" "-Wextra" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/74519e3fc51a2df9-connection.rs.o" "-c" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/sources/cxx-qt/src/connection.rs.cc" with args "clang++" did not execute successfully (status code exit status: 1).cargo:warning=1 error generated.
[build] 
[build]   exit status: 1
[build]   cargo:warning=ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/usr/bin/clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.5" "-std=c++17" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/include" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/crate" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include" "-Wall" "-Wextra" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/2e40c9e35e9506f4-connection.o" "-c" "src/connection.cpp" with args "clang++" did not execute successfully (status code exit status: 1).
[build] 
[build]   --- stderr
[build] 
[build]   CXX include path:
[build]     /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/include
[build]     /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/crate
[build] 
[build] 
[build]   error occurred: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/usr/bin/clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.5" "-std=c++17" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/include" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/crate" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include" "-Wall" "-Wextra" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/2e40c9e35e9506f4-connection.o" "-c" "src/connection.cpp" with args "clang++" did not execute successfully (status code exit status: 1).
[build] 
[build] 
[build] warning: build failed, waiting for other jobs to finish...
[build] The following warnings were emitted during compilation:
[build] 
[build] warning: cxx-qt@0.6.1: In file included from /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/sources/cxx-qt/src/connection.rs.cc:1:
[build] warning: cxx-qt@0.6.1: /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxx-qt/connection.h:9:10: fatal error: 'QtCore/QObject' file not found
[build] warning: cxx-qt@0.6.1: #include <QtCore/QObject>
[build] warning: cxx-qt@0.6.1:          ^~~~~~~~~~~~~~~~
[build] warning: cxx-qt@0.6.1: In file included from src/connection.cpp:7:
[build] warning: cxx-qt@0.6.1: /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxx-qt/connection.h:9:10: fatal error: 'QtCore/QObject' file not found
[build] warning: cxx-qt@0.6.1: #include <QtCore/QObject>
[build] warning: cxx-qt@0.6.1:          ^~~~~~~~~~~~~~~~
[build] warning: cxx-qt@0.6.1: 1 error generated.
[build] warning: cxx-qt@0.6.1: ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/usr/bin/clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.5" "-std=c++17" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/include" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/crate" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include" "-Wall" "-Wextra" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/004555274e898307-connection.rs.o" "-c" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/sources/cxx-qt/src/connection.rs.cc" with args "clang++" did not execute successfully (status code exit status: 1).cargo:warning=1 error generated.
[build] warning: cxx-qt@0.6.1: ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/usr/bin/clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.5" "-std=c++17" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/include" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/crate" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include" "-Wall" "-Wextra" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/2e40c9e35e9506f4-connection.o" "-c" "src/connection.cpp" with args "clang++" did not execute successfully (status code exit status: 1).
[build] 
[build] error: failed to run custom build command for `cxx-qt v0.6.1 (/Users/allen/Projects/RustProjects/cxx-qt/crates/cxx-qt)`
[build] 
[build] Caused by:
[build]   process didn't exit successfully: `/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-8f7ffd7a8f06c07c/build-script-build` (exit status: 1)
[build]   --- stdout
[build]   cargo:rustc-link-search=framework=/Users/allen/Soft/Qt/6.5.3/macos/lib/
[build]   cargo:rerun-if-env-changed=QMAKE
[build]   cargo:rerun-if-env-changed=QT_VERSION_MAJOR
[build]   cargo:rustc-link-arg=-fapple-link-rtlib
[build]   cargo:rerun-if-changed=src/connection.rs
[build]   cargo:CXXBRIDGE_PREFIX=cxx-qt
[build]   cargo:CXXBRIDGE_DIR0=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/include
[build]   cargo:CXXBRIDGE_DIR1=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/crate
[build]   cargo:rustc-link-search=/Users/allen/Soft/Qt/6.5.3/macos/lib
[build]   cargo:rustc-link-search=framework=/Users/allen/Soft/Qt/6.5.3/macos/lib
[build]   cargo:rustc-link-lib=framework=QtCore
[build]   cargo:rustc-link-lib=framework=IOKit
[build]   cargo:rustc-link-lib=framework=DiskArbitration
[build]   cargo:rerun-if-changed=src/connection.cpp
[build]   TARGET = Some("aarch64-apple-darwin")
[build]   OPT_LEVEL = Some("0")
[build]   HOST = Some("aarch64-apple-darwin")
[build]   cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
[build]   CXX_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
[build]   CXX_aarch64_apple_darwin = Some("/usr/bin/clang++")
[build]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[build]   CRATE_CC_NO_DEFAULTS = None
[build]   DEBUG = Some("true")
[build]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
[build]   CXXFLAGS_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
[build]   CXXFLAGS_aarch64_apple_darwin = None
[build]   cargo:rerun-if-env-changed=HOST_CXXFLAGS
[build]   HOST_CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS
[build]   CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
[build]   CXX_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
[build]   CXX_aarch64_apple_darwin = Some("/usr/bin/clang++")
[build]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[build]   CRATE_CC_NO_DEFAULTS = None
[build]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
[build]   CXXFLAGS_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
[build]   CXXFLAGS_aarch64_apple_darwin = None
[build]   cargo:rerun-if-env-changed=HOST_CXXFLAGS
[build]   HOST_CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS
[build]   CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
[build]   CXX_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
[build]   CXX_aarch64_apple_darwin = Some("/usr/bin/clang++")
[build]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[build]   CRATE_CC_NO_DEFAULTS = None
[build]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
[build]   CXXFLAGS_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
[build]   CXXFLAGS_aarch64_apple_darwin = None
[build]   cargo:rerun-if-env-changed=HOST_CXXFLAGS
[build]   HOST_CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS
[build]   CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
[build]   CXX_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
[build]   CXX_aarch64_apple_darwin = Some("/usr/bin/clang++")
[build]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[build]   CRATE_CC_NO_DEFAULTS = None
[build]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
[build]   CXXFLAGS_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
[build]   CXXFLAGS_aarch64_apple_darwin = None
[build]   cargo:rerun-if-env-changed=HOST_CXXFLAGS
[build]   HOST_CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS
[build]   CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64-apple-darwin
[build]   CXX_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXX_aarch64_apple_darwin
[build]   CXX_aarch64_apple_darwin = Some("/usr/bin/clang++")
[build]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[build]   CRATE_CC_NO_DEFAULTS = None
[build]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64-apple-darwin
[build]   CXXFLAGS_aarch64-apple-darwin = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS_aarch64_apple_darwin
[build]   CXXFLAGS_aarch64_apple_darwin = None
[build]   cargo:rerun-if-env-changed=HOST_CXXFLAGS
[build]   HOST_CXXFLAGS = None
[build]   cargo:rerun-if-env-changed=CXXFLAGS
[build]   CXXFLAGS = None
[build]   cargo:warning=In file included from /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/sources/cxx-qt/src/connection.rs.cc:1:
[build]   cargo:warning=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxx-qt/connection.h:9:10: fatal error: 'QtCore/QObject' file not found
[build]   cargo:warning=#include <QtCore/QObject>
[build]   cargo:warning=         ^~~~~~~~~~~~~~~~
[build]   cargo:warning=In file included from src/connection.cpp:7:
[build]   cargo:warning=/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxx-qt/connection.h:9:10: fatal error: 'QtCore/QObject' file not found
[build]   cargo:warning=#include <QtCore/QObject>
[build]   cargo:warning=         ^~~~~~~~~~~~~~~~
[build]   cargo:warning=1 error generated.
[build]   exit status: 1
[build]   cargo:warning=ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/usr/bin/clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.5" "-std=c++17" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/include" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/crate" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include" "-Wall" "-Wextra" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/004555274e898307-connection.rs.o" "-c" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/sources/cxx-qt/src/connection.rs.cc" with args "clang++" did not execute successfully (status code exit status: 1).cargo:warning=1 error generated.
[build] 
[build]   exit status: 1
[build]   cargo:warning=ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/usr/bin/clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.5" "-std=c++17" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/include" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/crate" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include" "-Wall" "-Wextra" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/2e40c9e35e9506f4-connection.o" "-c" "src/connection.cpp" with args "clang++" did not execute successfully (status code exit status: 1).
[build] 
[build]   --- stderr
[build] 
[build]   CXX include path:
[build]     /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/include
[build]     /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/crate
[build] 
[build] 
[build]   error occurred: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/usr/bin/clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.5" "-std=c++17" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/include" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/cxxbridge/crate" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include" "-Wall" "-Wextra" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/debug/build/cxx-qt-4bbaf09bb859567d/out/2e40c9e35e9506f4-connection.o" "-c" "src/connection.cpp" with args "clang++" did not execute successfully (status code exit status: 1).
[build] 
[build] 
[build] [2/43   2% :: 0.049] Automatic MOC for target demo_threading
[build] FAILED: examples/demo_threading/CMakeFiles/_cargo-build_cxx_qt_demo_threading /Users/allen/Projects/RustProjects/cxx-qt/build/examples/demo_threading/CMakeFiles/_cargo-build_cxx_qt_demo_threading 
[build] cd /Users/allen/Projects/RustProjects/cxx-qt/examples/demo_threading/rust && /Applications/CMake.app/Contents/bin/cmake -E env CXXQT_EXPORT_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/examples/demo_threading/cxxqt QMAKE=/Users/allen/Soft/Qt/6.5.3/macos/bin/qmake 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.5.sdk CORROSION_BUILD_DIR=/Users/allen/Projects/RustProjects/cxx-qt/build/examples/demo_threading 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 cxx_qt_demo_threading --manifest-path /Users/allen/Projects/RustProjects/cxx-qt/examples/demo_threading/rust/Cargo.toml --target-dir /Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build -- -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 all -- exited with code: 1
[driver] Build completed: 00:00:00.813
[build] Build finished with exit code 1

Do you found any question? Look this :

[build] warning: cxx-qt@0.6.1: ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/usr/bin/clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.5" "-std=c++17" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/include" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/crate" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include" "-Wall" "-Wextra" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/74519e3fc51a2df9-connection.rs.o" "-c" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/sources/cxx-qt/src/connection.rs.cc" with args "clang++" did not execute successfully (status code exit status: 1).cargo:warning=1 error generated. [build] warning: cxx-qt@0.6.1: ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "/usr/bin/clang++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64-apple-darwin" "-mmacosx-version-min=14.5" "-std=c++17" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/include" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/cxxbridge/crate" "-I" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore" "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include" "-Wall" "-Wextra" "-o" "/Users/allen/Projects/RustProjects/cxx-qt/build/./cargo/build/aarch64-apple-darwin/debug/build/cxx-qt-348ffdabb508938d/out/2e40c9e35e9506f4-connection.o" "-c" "src/connection.cpp" with args "clang++" did not execute successfully (status code exit status: 1).

First of all, it specify a qt header directory as "-I" "/Users/allen/Soft/Qt/6.5.3/macos/include/QtCore", In my machine , it is "/Users/allen/Soft/Qt/6.5.3/macos/lib/QtCore.framework/Versions/A/Headers/QObject",So did it correct parse the header and lib path ??? It calls clang++ to build a qt-related project, but no -L or -l or -F flags , no one ! Where should clang++ to find library to link???? But it has "-I" flag and target a qt-include path ! I dont know how do you think about it, do you think it can build successful?

ahayzen-kdab commented 1 month ago

So it looks like it's picked up the right link folder and linker arg?

[build]   cargo:rustc-link-search=framework=/Users/allen/Soft/Qt/6.5.3/macos/lib
[build]   cargo:rustc-link-lib=framework=QtCore

But it's the include paths that are potentially wrong now, looking at this code it appears to naively add the Qt modules as the folder names to the include path when it could be a framework. Maybe we need some specific logic here as well for frameworks ?

https://github.com/KDAB/cxx-qt/blob/309190a199f61a2406c541dc17cdd73c5e5b296e/crates/qt-build-utils/src/lib.rs#L520-L530

@dezbracaty are you able to run the following commands so i can understand what this looks like on macOS? Reading around it appears we might want to add something like /Users/allen/Soft/Qt/6.5.3/macos/lib/QtCore.framework/Headers potentially to our includes

$ qmake -query
$ ls -la /Users/allen/Soft/Qt/6.5.3/macos/
$ ls -la /Users/allen/Soft/Qt/6.5.3/macos/include/
$ ls -la /Users/allen/Soft/Qt/6.5.3/macos/include/QtCore.framework
$ ls -la /Users/allen/Soft/Qt/6.5.3/macos/lib/
$ ls -la /Users/allen/Soft/Qt/6.5.3/macos/lib/QtCore.framework/
$ ls -la /Users/allen/Soft/Qt/6.5.3/macos/lib/QtCore.framework/Headers
ahayzen-kdab commented 1 month ago

Hmm but also an #include <QtCore/QObject> should supposedly automatically resolve using frameworks when the framework path has been set (which we have done via cargo:rustc-link-search=framework=/Users/allen/Soft/Qt/6.5.3/macos/lib. And yes odd how the clang line doesn't have any -F to reflect that :thinking:

ahayzen-kdab commented 4 weeks ago

So thinking about this more i think the issue is more subtle, we are telling cargo correctly where the framework folder is to include and link to (this can be seen by cargo:rustc-link-search=framework=/Users/allen/Soft/Qt/6.5.3/macos/lib).

But we are not telling our inner cc builders where to include correctly, i wonder if providing /Users/allen/Soft/Qt/6.5.3/macos/lib as a -L is enough for it to figure it out or if cc::Build has a way to pass in -F

ahayzen-kdab commented 4 weeks ago

@dezbracaty are you able to try out https://github.com/KDAB/cxx-qt/pull/970 and see if that changes anything? Could you also provide the output of the build again so i can see if it changes anything?

dezbracaty commented 4 weeks ago

But it's the include paths that are potentially wrong now, looking at this code it appears to naively add the Qt modules as the folder names to the include path when it could be a framework. Maybe we need some specific logic here as well for frameworks ?

Thanks for your replying ! I find out the reason is the qmake program that I install it by qt online installer, "qmake -query xxx" output the directory is different from that I installed by using "brew install qt".
Specificallly,when I install qt using online installer and it has no include directory under install path, or the path to the include directory is very special that there was no logic to handle it.But when I install qt using "brew install qt ", Its include path and corresponding qmake specified path were fine ,so the program can parser it correctly. Over all , there is a bug in this program , but the bug is due to Qt's online installer uses a different logic to place header files. If anyone has same problem, I suggest they use " brew install qt " to fix this problem. And thanks for you replying again ~!

dezbracaty commented 4 weeks ago

@dezbracaty are you able to try out #970 and see if that changes anything? Could you also provide the output of the build again so i can see if it changes anything?

Your changes is same as me. But if you fix this problem by using -F ,then there will be a @rpath error . 0b79a8a8a146abf2725ade97c44f7909 This bug is very hard to fix... I haven't fix it until now . So I just use "brew install qt" to fix the "QtCore not found" error.