The probably auto-generated "/usr/lib64/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake" file installed by "dev-qt/qtwebengine-5.14.0" fails with a fatal CMake error: CMake Error at /usr/lib64/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake:4 (_populate_Designer_plugin_properties): _populate_Designer_plugin_properties Macro invoked with incorrect arguments for macro named: _populate_Designer_plugin_properties Call Stack (most recent call first): /usr/lib64/cmake/Qt5Designer/Qt5DesignerConfig.cmake:213 (include) CMakeLists.txt:244 (find_package) The underlying issue appears to be that the _populate_Designer_plugin_properties() macro defined by the "/usr/lib64/cmake/Qt5Designer/Qt5DesignerConfig.cmake" file expects a trailing "IsDebugAndRelease" argument, which the "/usr/lib64/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake" file calling that macro fails to pass. Since "Qt5Designer_QWebEngineViewPlugin.cmake" is dynamically imported by "Qt5DesignerConfig.cmake", cmake then fails at the first call to "find_package(Qt5Designer)" -- preventing usage of Qt5Designer entirely from other projects. This includes PySide2 (which I currently maintain at ::raiagent), whose top-level "CMakeLists.txt" contains just such a call: ##################################################################### # Adding sub-directories to build ##################################################################### add_subdirectory(libpyside) find_package(Qt5Designer) if(Qt5UiTools_FOUND AND Qt5Designer_FOUND) add_subdirectory(plugins) endif() To circumvent this, I've currently unconditionally disabled Qt Designer support in PySide2 by passing "-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=yes" at configuration time. Clearly, this is suboptimal. It would be awesome if someone more familiar with the QtWebEngine build system could track this down a bit deeper. Thanks, as always, for all the continued volunteerism. Gentoo rocks the open-source Casbah.
The problem is most likely related to cmake.I got a similar error when compiling cmake-14.6. The problem is temporarily resolved by masking the package cmake-14.6.
My problem appeared due to bug 703306. Sorry.
This appears to have resolved upstream by the recently bumped dev-qt/qtwebengine-5.14.1. This might simply be because I'd already updated to dev-qt/qtwebengine-5.14.0 first -- ensuring that the concurrency race condition detailed at https://bugs.gentoo.org/703306 no longer applies. In any case, I've been unable to replicate this since the bump. Score one for Team Gentoo (AKA, the good guys)!
The problem is upgrading from anything <Qt-5.14 to >=Qt-5.14 so unless they added some fallback function call this will be still an issue.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe1eb44a73d1a8e99aae1eeb2b7504b326df2cd1 commit fe1eb44a73d1a8e99aae1eeb2b7504b326df2cd1 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2020-02-09 10:59:22 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2020-02-09 18:51:02 +0000 dev-qt/qtcore: Fix cmake macro compat. for upgrade from <Qt-5.14 Closes: https://bugs.gentoo.org/703306 Closes: https://bugs.gentoo.org/705198 Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> ...qtcore-5.14.1-cmake-macro-backward-compat.patch | 50 +++++++++++++ dev-qt/qtcore/qtcore-5.14.1-r1.ebuild | 85 ++++++++++++++++++++++ 2 files changed, 135 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/qt.git/commit/?id=91b38cc3ab9bb6c70c9e40ba6a5fbbe41b2da753 commit 91b38cc3ab9bb6c70c9e40ba6a5fbbe41b2da753 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2020-02-09 10:59:22 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2020-02-09 19:22:20 +0000 dev-qt/qtcore: Fix cmake macro compat. for upgrade from <Qt-5.14 Closes: https://bugs.gentoo.org/703306 Closes: https://bugs.gentoo.org/705198 Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> (cherry picked from commit fe1eb44a73d1a8e99aae1eeb2b7504b326df2cd1) ...qtcore-5.14.1-cmake-macro-backward-compat.patch | 50 ++++++++++++++++++++++ dev-qt/qtcore/qtcore-5.14.9999.ebuild | 4 +- dev-qt/qtcore/qtcore-5.15.9999.ebuild | 4 +- 3 files changed, 56 insertions(+), 2 deletions(-)