在 Kaffeine <1.3 中,samba 有 bug,我尝试构建版本 1.3.x。但调用 cmake 后,出现错误:
-- 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
CMake Error at CMakeLists.txt:6 (qt5_add_resources):
**Unknown CMake command "qt5_add_resources".**
-- Configuring incomplete, errors occurred!
我测试版本和设置:
$ qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt5/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"
$ qmake -v
QMake version 3.0
Using Qt version 5.3.2 in /usr/lib/x86_64-linux-gnu
$ cmake --version
cmake version 3.0.2
答案1
您可能缺少必要的 qt 包。尝试安装qt5-默认包裹。
sudo apt-get install -y qt5-default