Skip to content

Conversation

@whitslack
Copy link

Qt private header directories only get added to the include search path when the Qt6::${component}Private library is added to the target.

@whitslack whitslack force-pushed the fix-private-headers branch 2 times, most recently from 2cf6add to 5420bec Compare January 16, 2026 10:11
whitslack referenced this pull request in Tatsh/tatsh-overlay Jan 17, 2026
Signed-off-by: Andrew Udvare <audvare@gmail.com>
@whitslack whitslack marked this pull request as ready for review January 17, 2026 10:46
@Tatsh
Copy link

Tatsh commented Jan 17, 2026

This gets past the configure stage and gets 99% into the build but fails for me:

webkit-1ab4d21d082e89fe1837c0279467a6da18c78cf0/Tools/QtTestBrowser/launcherwindow.h:47:10: fatal error: private/qeventpoint_p.h: No such file or directory
   47 | #include <private/qeventpoint_p.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~

This file does exist for me at /usr/include/qt6/QtGui/6.10.1/QtGui/private/qeventpoint_p.h but I am assuming the include path is not being set properly.

The command has these -isystem flags:

-isystem /usr/include/qt6/QtGui \
-isystem /usr/include/qt6 \
-isystem /usr/include/qt6/QtCore \
-isystem /usr/include/qt6/QtDBus \
-isystem /usr/include/qt6/QtNetwork \
-isystem /usr/include/qt6/QtWidgets \
-isystem /usr/lib64/qt6/mkspecs/linux-g++ \
-isystem /usr/include/qt6/QtPrintSupport \

All of the -I flags are only referencing directories in the source.

-isystem /usr/include/qt6/QtGui/6.10.1/QtGui \
-isystem /usr/include/qt6/QtGui/6.10.1 \
-isystem /usr/include/qt6/QtCore/6.10.1 \

If I run this manually with the above added, it compiles that file.

Tatsh added a commit to Tatsh/tatsh-overlay that referenced this pull request Jan 17, 2026
Related-to: movableink/webkit#53
Signed-off-by: Andrew Udvare <audvare@gmail.com>
@Tatsh
Copy link

Tatsh commented Jan 17, 2026

@whitslack
Copy link
Author

whitslack commented Jan 17, 2026

@Tatsh: Thank you for testing. I wasn't building with tests enabled, so I didn't catch the missing piece. Do you know for certain that NetworkPrivateCorePrivate is required here? Your error message only mentioned a private header from GuiPrivate.

@Tatsh
Copy link

Tatsh commented Jan 18, 2026

I assume you mean CorePrivate. Once I ran with the GuiPrivate includes another error occurred regarding CorePrivate.

@whitslack
Copy link
Author

@Tatsh: Yes, I did. And does it not work if you append to QtTestBrowser_PRIVATE_LIBRARIES (rather than QtTestBrowser_LIBRARIES)? (The former will not be propagated to dependent targets.)

Qt private header directories only get added to the include search path
when the "Qt6::${component}Private" library is added to the target.
@whitslack whitslack force-pushed the fix-private-headers branch from 5420bec to 949c35a Compare January 18, 2026 00:20
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.

2 participants