Solved Performing Test Qt5Gui_PRIVATE_HEADER_FOUND - Failed
-
CMake caches results of compilation tests in build directory (in CMakeCache.txt file), so I guess that you've fixed issue with unresolved libraries successfully but didn't clear cache after that
-
I delete everything from my build directory before running make, including any CMakeCache.txt file. Unless there is another location that files are stored on building, I believe I'm starting with a clean slate.
-
@RaymondH said in Performing Test Qt5Gui_PRIVATE_HEADER_FOUND - Failed:
-DQt5Gui_PRIVATE_HEADER_FOUND
What is in CMakeError.log if you don't add
-DQt5Gui_PRIVATE_HEADER_FOUND
? -
This is an automated script - i.e. it's configuring things using the OptionsQt.cmake file. I am not adding any parameters manually. How do I remove parameters that I didn't add and are added atomatically?
-
This post is deleted! -
Ok, seems like you are just missing
Qt5Gui_PRIVATE_INCLUDE_DIRS
cmake variable inQt5GuiConfig.cmake
now -
So are you suggesting I make changes to the Qt installation to make my compilation work? I wouldn't think that should be necessary...
The file is located at: <QtInstall>/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake
There is logic in that file that is supposed to set the variable, but it is by-passed during this build because of the following conditional:
if (NOT TARGET Qt5::Gui)
Apparently, when this configuration step happens, the TARGET is Qt5::Gui, and hence this conditional branch is never entered.
However, removing this conditional causes the QtWebKit configuration to fail in many many other ways, so it's not as simple as removing it.
-
Apparently, when this configuration step happens, the TARGET is Qt5::Gui
No, this condition means "if target Qt5::Gui wasn't defined yet" (sort of guard against double inclusion)
Qt5Gui_PRIVATE_INCLUDE_DIRS may be empty if you are using shadow build when building Qt, see https://bugreports.qt.io/browse/QTBUG-37417
-
Apparently a former build, or something, created the following files, which show up as new files when doing a
git status
command:Source/JavaScriptCore/disassembler/udis86/ud_optable.pyc Source/WebCore/inspector/CodeGeneratorInspectorStrings.pyc Source/WebKit2/Scripts/webkit2/__init__.pyc Source/WebKit2/Scripts/webkit2/messages.pyc Source/WebKit2/Scripts/webkit2/model.pyc Source/WebKit2/Scripts/webkit2/parser.pyc
Once I delete these files, and reconfigure, the problem seems to have gone away.
Thanks Konstantin for your time.
-
@RaymondH This
*.pyc
files could not have any impact on cmake stage -
I don't know. Regardless, removing these files makes my problem go away.