D24363: Fix several builsystem errors

Alexey Min noreply at phabricator.kde.org
Wed Oct 2 14:49:53 BST 2019


alexeymin added a comment.


  First of all, if you try to build qqc2-desktop-style on a system with only Qt5 and other Tier 1 frameworks installed, you will get the following cmake configure log (https://paste.ubuntu.com/p/YRjSRWm9g6/):
  
    OS Kubuntu 18.04 LTS
    Custom-built Qt 5.14 in ~/prefix514
    Other Tier 1 Frameworks also built and installed in ~/prefix514
    
    The C compiler identification is GNU 7.4.0
    The CXX compiler identification is GNU 7.4.0
    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
    Detecting C compile features
    Detecting C compile features - 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
    Detecting CXX compile features
    Detecting CXX compile features - done
    Installing in the same prefix as Qt, adopting their path scheme.
    Setting build type to 'Debug' as none was specified.
    Looking for __GLIBC__
    Looking for __GLIBC__ - found
    Performing Test _OFFT_IS_64BIT
    Performing Test _OFFT_IS_64BIT - Success
    Performing Test HAVE_DATE_TIME
    Performing Test HAVE_DATE_TIME - Success
    Found KF5Kirigami2: /home/minnehanov/prefix514/lib/x86_64-linux-gnu/cmake/KF5Kirigami2/KF5Kirigami2Config.cmake (found version "5.63.0") 
    Found KF5: success (found suitable version "5.63.0", minimum required is "5.62.0") found components: Kirigami2 
    Could NOT find KF5IconThemes (missing: KF5IconThemes_DIR)
    Could NOT find KF5IconThemes: found neither KF5IconThemesConfig.cmake nor kf5iconthemes-config.cmake 
    Could NOT find KF5ConfigWidgets (missing: KF5ConfigWidgets_DIR)
    Could NOT find KF5ConfigWidgets: found neither KF5ConfigWidgetsConfig.cmake nor kf5configwidgets-config.cmake 
    Could NOT find KF5 (missing: IconThemes ConfigWidgets) (Required is at least version "5.62.0")
    Found X11: /usr/include   
    Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
    Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
    Looking for gethostbyname
    Looking for gethostbyname - found
    Looking for connect
    Looking for connect - found
    Looking for remove
    Looking for remove - found
    Looking for shmat
    Looking for shmat - found
    Looking for IceConnectionNumber in ICE
    Looking for IceConnectionNumber in ICE - found
    Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
    The following OPTIONAL packages have been found:
    
     * Freetype
     * Fontconfig
     * X11
     * Qt5X11Extras (required version >= 5.11.0)
     * PkgConfig
    
    -- The following REQUIRED packages have been found:
    
     * ECM (required version >= 5.62.0)
     * Qt5Network (required version >= 5.14.0)
     * Qt5Qml (required version >= 5.14.0)
     * Qt5QmlModels (required version >= 5.14.0)
     * Qt5Quick
     * Qt5Gui
     * Qt5Widgets
     * Qt5QuickControls2
     * Qt5 (required version >= 5.11.0)
     * Qt5Core (required version >= 5.11.0)
     * KF5Kirigami2 (required version >= 5.62.0)
    
    -- The following OPTIONAL packages have not been found:
    
     * KF5IconThemes (required version >= 5.62.0)
     * KF5ConfigWidgets (required version >= 5.62.0)
    
    -- The following REQUIRED packages have not been found:
    
     * KF5 (required version >= 5.62.0)
    
    CMake Error at /home/minnehanov/prefix514/share/cmake-3.15/Modules/FeatureSummary.cmake:457 (message):
      feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
      run.
  
  So, at first cmake says that KF5 is found with Kirigami as required dependency, and then next invocation of `find_package` - KF5 is NOT found, with optional deps of IconThemes and ConfigWidgets. Optional, but still not found. So, to solve that problem, change the second `find_package` invocaition to a two separate calls for individual components, not involving KF5 as whole.

REPOSITORY
  R858 Qt Quick Controls 2: Desktop Style

REVISION DETAIL
  https://phabricator.kde.org/D24363

To: alexeymin
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191002/9d76ed17/attachment-0001.html>


More information about the Plasma-devel mailing list