Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: cxx-qt-lib: remove cxx-qt-lib-headers and store in cxx-qt-lib #842

Closed

Conversation

ahayzen-kdab
Copy link
Collaborator

This reverts commit c357722.

But it fails to build on Windows due to a missing dll.
It appears to happen when cxx-qt-lib is a build dependency.

Requires #764

@@ -22,6 +22,7 @@ serde_json.workspace = true

[build-dependencies]
cxx-qt-build.workspace = true
cxx-qt-lib.workspace = true
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this causes Windows builds to fail with a missing dll 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(note it works when using cxx-qt-lib-headers, so is something specific to the build.rs and note it happened when using cxx_build instead of cxx-qt-build too)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that in #843 the same build failure occurred in qml-features, the issue turned out to be having a extern "Rust" type in the bridges, removing that from the cxx-qt crate resolved the build failure.

@ahayzen-kdab ahayzen-kdab force-pushed the 319-remove-cxx-qt-lib-headers branch 2 times, most recently from 6b1b936 to e8f2e26 Compare February 21, 2024 16:56
@@ -251,5 +251,52 @@ fn main() {
});
println!("cargo:rerun-if-changed=src/assertion_utils.h");

builder.with_opts(cxx_qt_lib_headers::build_opts()).build();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes cxx-qt-lib worse to build as we need to duplicate the header copy phase :-/

This reverts commit c357722.

But it fails to build on Windows due to a missing dll.
It appears to happen when cxx-qt-lib is a build dependency.
@ahayzen-kdab ahayzen-kdab force-pushed the 319-remove-cxx-qt-lib-headers branch from e8f2e26 to 9f8c402 Compare February 21, 2024 17:00
@ahayzen-kdab
Copy link
Collaborator Author

cxx-qt-lib-headers has now gone due to other refactorings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant