Como faço para compilar o KanColleTool?

1

Eu baixei o repositório KanColleTool do GitHub com este comando:

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

No entanto, quando eu corro:

cmake -DCMAKE_INSTALL_PREFIX=/usr

... isso acontece:

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".
    
por Mario Kamenjak 06.08.2015 / 11:04

1 resposta

2

Instale as bibliotecas de desenvolvimento usando

sudo apt-get install libqt5webkit5-dev

para obter

Qt5WebKitWidgetsConfig.cmake
qt5webkitwidgets-config.cmake

e inicie cmake -DCMAKE_INSTALL_PREFIX=/usr novamente

Exemplo de saída

~/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
    
por A.B. 06.08.2015 / 11:58