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

build issue on Qt 6.2.3 with qtwebenginequick #259

Open
nniclausse opened this issue Mar 11, 2022 · 0 comments
Open

build issue on Qt 6.2.3 with qtwebenginequick #259

nniclausse opened this issue Mar 11, 2022 · 0 comments

Comments

@nniclausse
Copy link

I can't build with Qt 6.2.3 (runs fine with Qt6.2.2):

  Compiling qmetaobject v0.2.7 (/home/nniclaus/git/qmetaobject-rs/qmetaobject)
The following warnings were emitted during compilation:

warning: In file included from /home/nniclaus/miniconda3/envs/qt623/include/qt/QtWebEngineCore/QtWebEngineCore:15,
warning:                  from /home/nniclaus/miniconda3/envs/qt623/include/qt/QtWebEngineQuick/QtWebEngineQuickDepends:7,
warning:                  from /home/nniclaus/miniconda3/envs/qt623/include/qt/QtWebEngineQuick/QtWebEngineQuick:3,
warning:                  from src/webengine.rs:7:
warning: /home/nniclaus/miniconda3/envs/qt623/include/qt/QtWebEngineCore/qwebengineloadinginfo.h:45:10: fatal error: QExplicitlySharedDataPointer: No such file or directory
warning:    45 | #include <QExplicitlySharedDataPointer>
warning:       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: compilation terminated.

error: failed to run custom build command for `qmetaobject v0.2.7 (/home/nniclaus/git/qmetaobject-rs/qmetaobject)`

the following patch fixes the problem, although i don't know if it's the right way to do this:

diff --git a/qmetaobject/build.rs b/qmetaobject/build.rs
index cf7598f..1cc5523 100644
--- a/qmetaobject/build.rs
+++ b/qmetaobject/build.rs
@@ -29,6 +29,7 @@ fn main() {
     for f in std::env::var("DEP_QT_COMPILE_FLAGS").unwrap().split_terminator(";") {
         config.flag(f);
     }
+    config.include(format!("{}/QtCore", &qt_include_path));
     config.include(&qt_include_path).build("src/lib.rs");
 
     for minor in 7..=15 {
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

No branches or pull requests

1 participant