2015-12-10 140 views
1

我使用的是Ubuntu 15.04 x64。如何從源代碼構建KDE Dolphin?

我從git://anongit.kde.org/dolphin克隆了Dolphin存儲庫。我接着建立由目錄:

mkdir build 
cd build 
cmake .. 

但是當我運行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 
-- Looking for __GLIBC__ 
-- Looking for __GLIBC__ - found 
-- Performing Test _OFFT_IS_64BIT 
-- Performing Test _OFFT_IS_64BIT - Success 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5DocTools" 
    (requested version 5.16.0) with any of the following names: 

    KF5DocToolsConfig.cmake 
    kf5doctools-config.cmake 

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


-- Could NOT find KF5DocTools: found neither KF5DocToolsConfig.cmake nor kf5doctools-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5Init" 
    (requested version 5.16.0) with any of the following names: 

    KF5InitConfig.cmake 
    kf5init-config.cmake 

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


-- Could NOT find KF5Init: found neither KF5InitConfig.cmake nor kf5init-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5KCMUtils" 
    (requested version 5.16.0) 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:50 (find_package) 


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

    KF5NewStuffConfig.cmake 
    kf5newstuff-config.cmake 

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


-- Could NOT find KF5NewStuff: found neither KF5NewStuffConfig.cmake nor kf5newstuff-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5CoreAddons" 
    (requested version 5.16.0) 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:50 (find_package) 


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

    KF5I18nConfig.cmake 
    kf5i18n-config.cmake 

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


-- Could NOT find KF5I18n: found neither KF5I18nConfig.cmake nor kf5i18n-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5DBusAddons" 
    (requested version 5.16.0) with any of the following names: 

    KF5DBusAddonsConfig.cmake 
    kf5dbusaddons-config.cmake 

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


-- Could NOT find KF5DBusAddons: found neither KF5DBusAddonsConfig.cmake nor kf5dbusaddons-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5Bookmarks" 
    (requested version 5.16.0) with any of the following names: 

    KF5BookmarksConfig.cmake 
    kf5bookmarks-config.cmake 

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


-- Could NOT find KF5Bookmarks: found neither KF5BookmarksConfig.cmake nor kf5bookmarks-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5Config" 
    (requested version 5.16.0) 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:50 (find_package) 


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

    KF5KIOConfig.cmake 
    kf5kio-config.cmake 

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


-- Could NOT find KF5KIO: found neither KF5KIOConfig.cmake nor kf5kio-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5Parts" 
    (requested version 5.16.0) with any of the following names: 

    KF5PartsConfig.cmake 
    kf5parts-config.cmake 

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


-- Could NOT find KF5Parts: found neither KF5PartsConfig.cmake nor kf5parts-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5Solid" 
    (requested version 5.16.0) with any of the following names: 

    KF5SolidConfig.cmake 
    kf5solid-config.cmake 

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


-- Could NOT find KF5Solid: found neither KF5SolidConfig.cmake nor kf5solid-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5IconThemes" 
    (requested version 5.16.0) with any of the following names: 

    KF5IconThemesConfig.cmake 
    kf5iconthemes-config.cmake 

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


-- Could NOT find KF5IconThemes: found neither KF5IconThemesConfig.cmake nor kf5iconthemes-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5Completion" 
    (requested version 5.16.0) with any of the following names: 

    KF5CompletionConfig.cmake 
    kf5completion-config.cmake 

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


-- Could NOT find KF5Completion: found neither KF5CompletionConfig.cmake nor kf5completion-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5TextWidgets" 
    (requested version 5.16.0) with any of the following names: 

    KF5TextWidgetsConfig.cmake 
    kf5textwidgets-config.cmake 

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


-- Could NOT find KF5TextWidgets: found neither KF5TextWidgetsConfig.cmake nor kf5textwidgets-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5WindowSystem" 
    (requested version 5.16.0) with any of the following names: 

    KF5WindowSystemConfig.cmake 
    kf5windowsystem-config.cmake 

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


-- Could NOT find KF5WindowSystem: found neither KF5WindowSystemConfig.cmake nor kf5windowsystem-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5Notifications" 
    (requested version 5.16.0) with any of the following names: 

    KF5NotificationsConfig.cmake 
    kf5notifications-config.cmake 

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


-- Could NOT find KF5Notifications: found neither KF5NotificationsConfig.cmake nor kf5notifications-config.cmake 
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package): 
    Could not find a package configuration file provided by "KF5Crash" 
    (requested version 5.16.0) with any of the following names: 

    KF5CrashConfig.cmake 
    kf5crash-config.cmake 

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


-- Could NOT find KF5Crash: found neither KF5CrashConfig.cmake nor kf5crash-config.cmake 
CMake Error at /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message): 
    Could NOT find KF5 (missing: DocTools Init KCMUtils NewStuff CoreAddons 
    I18n DBusAddons Bookmarks Config KIO Parts Solid IconThemes Completion 
    TextWidgets WindowSystem Notifications Crash) (Required is at least version 
    "5.16.0") 
Call Stack (most recent call first): 
    /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE) 
    /usr/share/ECM/find-modules/FindKF5.cmake:113 (find_package_handle_standard_args) 
    CMakeLists.txt:50 (find_package) 


-- Configuring incomplete, errors occurred! 
See also "/home/nic/kde/dolphin/build/CMakeFiles/CMakeOutput.log". 

它看起來像我錯過了KDE框架庫。但我似乎無法找到將它們安裝在我的電腦上的方法。我應該如何從源代碼構建Dolphin以用於開發目的?

+0

看看kdesrc-build。 – mrub

回答

2

使用kdesrc-build打造海豚它的依賴:https://community.kde.org/Frameworks/Building

集起來,並運行kdesrc-build --include-dependencies dolphin

不幸的Ubuntu 15.04的KDE框架庫尚未公佈(只能通過PPA)。

+1

我不知道它何時更改,但現在我們必須使用'--include-dependencies'標誌來代替[https://kdesrc-build.kde.org/documentation/kdesrc-build.1.html]。 – j4x

+0

是的。可能是我的一個大腦放屁。固定。 – kfunk