CmakeがQt5WebEngineWidgetsモジュールを見つけることができません。

CmakeがQt5WebEngineWidgetsモジュールを見つけることができません。

QSyncthingTrayをコンパイルしたい(https://github.com/sieren/QSyncthingTray)私のラップトップでアーチLinux x86を実行しています。

$QTDIRを次のように設定しました。

/home/user/.qt/5.5/gcc/

および$ CMAKE_PREFIX_PATH

$Qt5WebEngineWidgets_DIR を次のように設定したりしました。

/home/user/.qt/5.5/gcc/lib/cmake/Qt5WebEngineWidgets

ディレクトリが存在し、必要なファイルがそこにあります。

Cmakeはまだエラーが発生しました。

CMake Warning at /usr/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:326 (find_package):
Could not find a package configuration file provided by
"Qt5WebEngineWidgets" with any of the following names:

Qt5WebEngineWidgetsConfig.cmake
qt5webenginewidgets-config.cmake

Add the installation prefix of "Qt5WebEngineWidgets" to CMAKE_PREFIX_PATH or set "Qt5WebEngineWidgets_DIR" to a directory containing one of the above files.  If "Qt5WebEngineWidgets" provides a separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
CMakeLists.txt:127 (qt5_use_modules)


CMake Error at /usr/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:328 (message):
Can not use "WebEngineWidgets" module which has not yet been found.
Call Stack (most recent call first):
CMakeLists.txt:127 (qt5_use_modules)

ベストアンサー1


»»見つからない 'WebEngineWidgets'モジュールは利用できません。 «<

Qt5WebEngineWidgetsによって提供されるようですqtwebエンジン-opensource-src-5.6.0.tar.xzhttps://download.qt.io/official_releases/qt/5.6/5.6.0/submodules/

?バージョン5.4が構築するのは簡単ですか? : qtwebengine-5.4.1 → qtwebengine-opensource-src-5.4.1.tar.xz... qtwebengine-opensource-src-5.4.0-gyp_conf.patch(および.tar.xz)パッチは、 。qt5-qtwebengine-5.4.1-1.fc21.src.rpm ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/devel%3A/cloverleaf%3A/testing%3A/frameworks/devel_cloverleaf_testing_Fedora_21/src/qt5-qtwebengine-5 1.fc21.src.rpm


編集:QSyncthingTrayはqtwebengine-5.6でのみ構築できます。 v5.4が失敗しました。

lib64qt5webengine-devel-5.6.0-2pclos2016qtwebengine-5.6:PCLinuxOS 2016 - 64bits→とQSyncthingTrayを数秒で構築できるOSを見つけました。


おすすめ記事