无法 cmake mirall,因为找不到 Qt5Keychain(缺少:QTKEYCHAIN_LIBRARY)

无法 cmake mirall,因为找不到 Qt5Keychain(缺少:QTKEYCHAIN_LIBRARY)

我正在尝试编译米拉尔在我的 Ubuntu 14.04.1 LTS 上。

这是我正在使用的命令:

cmake -DCMAKE_BUILD_TYPE="Debug" ../mirall       -DCSYNC_BUILD_PATH=/home/jnbdz/Projects/ownCloudDesktop/ocsync-build       -DCSYNC_INCLUDE_PATH=/home/jnbdz/Projects/ownCloudDesktop/ocsync/src

结果如下:

  -- The C compiler identification is GNU 4.8.2

  -- The CXX compiler identification is GNU 4.8.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

  -- Found Qt5 core, checking for further dependencies...

  -- Using Qt 5!

  -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 

  -- checking for module 'neon'

  --   found neon, version 0.30.0

  -- Found Neon: /usr/lib/libneon.so  

  -- neon-config executable: /usr/bin/neon-config

  -- libneon has not been compiled with LFS support, rely on OS

  CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):

找不到 Qt5Keychain(缺少:QTKEYCHAIN_LIBRARY)

  Call Stack (most recent call first):

/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)

  cmake/modules/FindQt5Keychain.cmake:30 (find_package_handle_standard_args)

  CMakeLists.txt:106 (find_package)



  -- Configuring incomplete, errors occurred!

  See also "/home/jnbdz/Projects/ownCloudDesktop/mirall-build/CMakeFiles/CMakeOutput.log".

因此我尝试手动安装 QT5Keychain。通过从此页面下载: http://hr.archive.ubuntu.com/ubuntu/pool/universe/q/qtkeychain/

这两个包:libqt5keychain0_0.3.0-2_i386.deb 和 qt5keychain-dev_0.3.0-2_i386.deb。

然后它再次向我发送同样的错误。

我也尝试搜索:

sudo find / -name qtkeychain.dylib
sudo find / -name qt5keychain.dylib

但却什么也没发现。

我也尝试过这个:

sudo apt-get install qt5keychain-dev

结果:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
qt5keychain-dev:i386 is already the newest version.
The following packages were automatically installed and are no longer required:
  libgcrypt11-dev libgnutls-dev libgnutlsxx27 libgpg-error-dev libp11-kit-dev
  libtasn1-6-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 119 not upgraded.

所以看起来一切都安装好了...所以我不知道为什么它仍然在抱怨。

答案1

您应该首先下载 libqt5keychain 和 qtkeychain-dev 包以便恢复 mirall 编译。

对每个 URL 使用 wget 命令(这取决于您的系统架构):

wget http://hr.archive.ubuntu.com/ubuntu/pool/universe/q/qtkeychain/libqt5keychain0_0.3.0-2_amd64.deb  
wget http://hr.archive.ubuntu.com/ubuntu/pool/universe/q/qtkeychain/qtkeychain-dev_0.1.0-1ubuntu1_amd64.deb

然后,使用以下命令进行安装:

dpkg -i qt5keychain-dev_0.3.0-2_amd64.deb libqt5keychain0_0.3.0-2_amd64.deb

相关内容