This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Building KTp on Ubuntu 14.04

Tags: None
(comma "," separated)
GDR!
Registered Member
Posts
5
Karma
0

Building KTp on Ubuntu 14.04

Fri Nov 28, 2014 12:56 pm
Since there are no packages for 14.04 I wanted to build KTp from source, following this guide: https://community.kde.org/KTp/Getting_Set_Up

Unfortunately, all my attempts break with this error:

Code: Select all
        Cloning kde-build-metadata
kdesrc-build encountered an exceptional error condition: Runtime Error: Failed to make initial clone of kde-build-metadata
        Can't continue, so stopping now.


I've found this error log:

Code: Select all
ls -l src/log/latest/kde-build-metadata/error.log
lrwxrwxrwx 1 gdr gdr 13 lis 28 13:13 src/log/latest/kde-build-metadata/error.log -> git-clone.log


Which led me to this problem:

Code: Select all
➜  ktp  find . -name git-clone.log
./src/log/2014-11-28-01/kde-build-metadata/git-clone.log
./src/log/2014-11-28-03/kde-build-metadata/git-clone.log
./src/log/2014-11-28-07/kde-build-metadata/git-clone.log
./src/log/2014-11-28-05/kde-build-metadata/git-clone.log
➜  ktp  cat ./src/log/2014-11-28-05/kde-build-metadata/git-clone.log
# kdesrc-build running: 'git' 'clone' '--' 'kde:kde-build-metadata' '/home/gdr/ktp/src/kde-build-metadata'
# from directory: /home/gdr/ktp
Cloning into '/home/gdr/ktp/src/kde-build-metadata'...
ssh: Could not resolve hostname kde: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


Which led me to this topic: https://aur.archlinux.org/packages/strigi-git/

So the whole problem can be solved by appending the following lines to ~/.gitconfig:

Code: Select all
[url "git://anongit.kde.org/"]
insteadOf = kde:
[url "git@git.kde.org:"]
pushInsteadOf = kde:


Later I've found that it has been described in the guide, but I'm posting this anyway, in case somebody else has this problem - I couldn't find a working solution by searching the error string.

Then there was a minor inconvenience - the guide I used didn't mention that a few more packages need to be installed:

Code: Select all
sudo apt-get install libjson-perl extra-cmake-modules qtdeclarative5-dev


This almost worked but threw a bunch of "KF5"-related errors like this, which I could not resolve with apt-file search:

Code: Select all
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:75 (find_package):
  Could not find a package configuration file provided by "KF5CoreAddons"
  with any of the following names:

    KF5CoreAddonsConfig.cmake
    kf5coreaddons-config.cmake

  Add the installation prefix of "KF5CoreAddons" to CMAKE_PREFIX_PATH or set
  "KF5CoreAddons_DIR" to a directory containing one of the above files.  If
  "KF5CoreAddons" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:16 (find_package)


-- Could NOT find KF5CoreAddons: found neither KF5CoreAddonsConfig.cmake nor kf5coreaddons-config.cmake
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:75 (find_package):
  Could not find a package configuration file provided by "KF5KCMUtils" with
  any of the following names:

    KF5KCMUtilsConfig.cmake
    kf5kcmutils-config.cmake

  Add the installation prefix of "KF5KCMUtils" to CMAKE_PREFIX_PATH or set
  "KF5KCMUtils_DIR" to a directory containing one of the above files.  If
  "KF5KCMUtils" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:16 (find_package)


-- Could NOT find KF5KCMUtils: found neither KF5KCMUtilsConfig.cmake nor kf5kcmutils-config.cmake
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:75 (find_package):
  Could not find a package configuration file provided by "KF5NotifyConfig"
  with any of the following names:

    KF5NotifyConfigConfig.cmake
    kf5notifyconfig-config.cmake

  Add the installation prefix of "KF5NotifyConfig" to CMAKE_PREFIX_PATH or
  set "KF5NotifyConfig_DIR" to a directory containing one of the above files.
  If "KF5NotifyConfig" provides a separate development package or SDK, be
  sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:16 (find_package)


-- Could NOT find KF5NotifyConfig: found neither KF5NotifyConfigConfig.cmake nor kf5notifyconfig-config.cmake
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:75 (find_package):
  Could not find a package configuration file provided by "KF5TextEditor"
  with any of the following names:

    KF5TextEditorConfig.cmake
    kf5texteditor-config.cmake

  Add the installation prefix of "KF5TextEditor" to CMAKE_PREFIX_PATH or set
  "KF5TextEditor_DIR" to a directory containing one of the above files.  If
  "KF5TextEditor" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:16 (find_package)


-- Could NOT find KF5TextEditor: found neither KF5TextEditorConfig.cmake nor kf5texteditor-config.cmake
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:75 (find_package):
  Could not find a package configuration file provided by "KF5Wallet" with
  any of the following names:

    KF5WalletConfig.cmake
    kf5wallet-config.cmake

  Add the installation prefix of "KF5Wallet" to CMAKE_PREFIX_PATH or set
  "KF5Wallet_DIR" to a directory containing one of the above files.  If
  "KF5Wallet" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:16 (find_package)


-- Could NOT find KF5Wallet: found neither KF5WalletConfig.cmake nor kf5wallet-config.cmake
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:75 (find_package):
  Could not find a package configuration file provided by "KF5Config" with
  any of the following names:

    KF5ConfigConfig.cmake
    kf5config-config.cmake

  Add the installation prefix of "KF5Config" to CMAKE_PREFIX_PATH or set
  "KF5Config_DIR" to a directory containing one of the above files.  If
  "KF5Config" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:16 (find_package)


-- Could NOT find KF5Config: found neither KF5ConfigConfig.cmake nor kf5config-config.cmake
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:75 (find_package):
  Could not find a package configuration file provided by
  "KF5KDELibs4Support" with any of the following names:

    KF5KDELibs4SupportConfig.cmake
    kf5kdelibs4support-config.cmake

  Add the installation prefix of "KF5KDELibs4Support" to CMAKE_PREFIX_PATH or
  set "KF5KDELibs4Support_DIR" to a directory containing one of the above
  files.  If "KF5KDELibs4Support" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:16 (find_package)


-- Could NOT find KF5KDELibs4Support: found neither KF5KDELibs4SupportConfig.cmake nor kf5kdelibs4support-config.cmake
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find KF5 (missing: CoreAddons KCMUtils NotifyConfig TextEditor
  Wallet Config KDELibs4Support)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/ECM/find-modules/FindKF5.cmake:111 (find_package_handle_standard_args)
  CMakeLists.txt:16 (find_package)


Any ideas what can be wrong?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]