Cmake não pode encontrar o módulo Qt5WebEngineWidgets

2

Eu quero compilar o QSyncthingTray ( link ) no meu notebook executando o arch linux x86.

Eu configurei $ QTDIR para

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

bem como $ CMAKE_PREFIX_PATH

Eu até configurei o $ Qt5WebEngineWidgets_DIR para

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

O diretório existe e os arquivos necessários estão lá.

Cmake ainda com erros

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)
    
por Unkn0wn 09.06.2016 / 21:37

1 resposta

0

»» Can not use "WebEngineWidgets" module which has not yet been found ««

Qt5WebEngineWidgets parece ser fornecido por qtwebengine -opensource-src-5.6.0.tar.xz link

Mais fácil de construir a versão 5.4? : qtwebengine-5.4.1 → qtwebengine-opensource-src-5.4.1.tar.xz ... O patch qtwebengine-opensource-src-5.4.0-gyp_conf.patch (e o .tar.xz) podem ser encontrados em 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.4.1-1.fc21.src.rpm

EDIT: O QSyncthingTray pode ser construído apenas com o qtwebengine-5.6. Falha com v5.4.

Eu encontrei um sistema operacional com um qtwebengine-5.6: PCLinuxOS 2016 - 64bits → lib64qt5webengine-devel-5.6.0-2pclos2016 e QSyncthingTray construídos em poucos segundos.

por 10.06.2016 / 22:01