web-dev-qa-db-fra.com

Comment compiler KanColleTool?

J'ai téléchargé le référentiel KanColleTool de GitHub avec cette commande:

git clone --recursive https://github.com/KanColleTool/KanColleTool.git KanColleTool.git

Cependant quand je cours:

cmake -DCMAKE_INSTALL_PREFIX=/usr

...ça arrive:

CMake Error at viewer/src/CMakeLists.txt:28 (find_package):
By not providing "FindQt5WebKitWidgets.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5WebKitWidgets", but CMake did not find one.

Could not find a package configuration file provided by "Qt5WebKitWidgets"
with any of the following names:

Qt5WebKitWidgetsConfig.cmake
qt5webkitwidgets-config.cmake

Add the installation prefix of "Qt5WebKitWidgets" to CMAKE_PREFIX_PATH or
set "Qt5WebKitWidgets_DIR" to a directory containing one of the above
files.  If "Qt5WebKitWidgets" provides a separate development package or
SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/zmaj/KanColleTool.git/CMakeFiles/CMakeOutput.log".
1
Mario Kamenjak

Installez les bibliothèques de développement à l'aide de

Sudo apt-get install libqt5webkit5-dev

obtenir

Qt5WebKitWidgetsConfig.cmake
qt5webkitwidgets-config.cmake

et commencez cmake -DCMAKE_INSTALL_PREFIX=/usr encore

exemple de sortie

~/tmp/KanColleTool.git] master ± cmake -DCMAKE_INSTALL_PREFIX=/usr                                                 
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/aboettger/tmp/KanColleTool.git
2
A.B.