1 votes

Comment compiler KanColleTool ?

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

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

Cependant, lorsque j'exécute :

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".

2voto

A.B. Points 84870

Installez les bibliothèques de développement en utilisant

sudo apt-get install libqt5webkit5-dev

pour obtenir

Qt5WebKitWidgetsConfig.cmake
qt5webkitwidgets-config.cmake

et commencer cmake -DCMAKE_INSTALL_PREFIX=/usr à nouveau

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

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X