-
Notifications
You must be signed in to change notification settings - Fork 77
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
Prl file parsing fixes #600
Conversation
Instead look for the files by iterating over the directory entries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on build fixes for Android and emscripten! We haven't been trying these platforms ourselves, so this is a very welcome contribution!
(Note that you might want to rebase your branches onto |
when static linking only one of them is allowed to to add object files else duplicate symbol errors will be produced.
…link_libraries and are hard to remove. instead instruct this function to not include these object files.
hmm latest changes failed on macOS Qt6 with duplicate symbol errors on the qml_extension_plugin example. Strange that only this platform would pull in additional object files that are now also handled by cxx-qt. The following change might fix this, but I have no mac to test this on and would not like to spam the pipeline with things that might not actually do anything. For Linux Qt6 this would not make a difference though examples/qml_extension_plugin/plugin/rust/Cargo.toml:
It might even be better to place this feature on on all crates that use cxx-qt-build and CMake for building, or invert the logic for this feature, since almost everything uses CMake here. |
What we are doing here now would technically be more correct but would break compatibility for some system and Qt installations, thus requiring major, or since this is still in major 0 a minor, version change. |
macOS isn't the issue. I can reproduce this on Linux with a static build of Qt6. The issue is that both the Cargo side and the CMake side are both linking those |
Oof, we're in quite a maze of conflicting requirements and I can't think of a great solution that Just Works automatically in every case. The duplicate symbol errors come from Cargo linking the There might be a way to tell CMake to not link the We want Cargo to link the We could use a Cargo feature to toggle whether to link the |
I made another PR for your fork adding back the Cargo feature for linking |
Ah great that it's merged. I did not have much free time this week too look at it hence the silence from me. I will tests all of it out with my setup for wasm and android. And a quick question, is there any indication when a new release will be made? I would need that since I'd like to move away from using this crate as a submodule in my project and just use cargo. |
We are currently in the middle of an API transition to 0.6, currently projecting for maybe end of August for the 0.6 series. However I can try to do a backport to the 0.5.x series and make a 0.5.4 release if this doesn't regress / change the behaviour for 0.5.x 🤔 |
neat.
While handy I won't require it very much. Using a submodule till then would not be bothersome for me, so don't bother with it(unless you really want of course). It was just a curiosity because the last release was a while ago. |
Cool, thanks for the info :-) I think we'll continue focusing on the 0.6 series for now unless there is a serious bug fix we need to backport to 0.5.x (then we could also include these changes). Let us know if you do need a release for something though :-) |
The following three issues with prl file parsing have been fixed: