Results 1 to 8 of 8

Thread: CMake Plasmoid compiling problem

  1. #1
    Join Date
    Oct 2008
    Posts
    27

    Arrow CMake Plasmoid compiling problem

    Hello,

    I am currently trying to install the "Stock Quote" plasmoid (Stock Quote KDE-Look.org ) and I have a CMake plasma compiling problem.

    In fact, here is the error I get:

    Code:
    CMake Error at /usr/share/kde4/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:53 (MESSAGE):                                                        
      Could not find REQUIRED package Plasma                                                                                                                   
    Call Stack (most recent call first):
      /usr/share/kde4/apps/cmake/modules/FindPlasma.cmake:30 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
      CMakeLists.txt:4 (find_package)
    At the end of this post are the code of both files.

    I've seen some resolutions concerning Ubuntu but nothing at all about OpenSuSE, which is why I'm asking here.

    Any help would be greatly appreciated, thanks!

    Here's the code of both files:

    /usr/share/kde4/apps/cmake/modules/FindPackageHandleStandardArgs.cmake
    Code:
    # FIND_PACKAGE_HANDLE_STANDARD_ARGS(NAME (DEFAULT_MSG|"Custom failure message") VAR1 ... )                                                                        
    #                                                                                                                                                                 
    # This macro is intended to be used in FindXXX.cmake modules files.                                                                                               
    # It handles the REQUIRED and QUIET argument to FIND_PACKAGE() and                                                                                                
    # it also sets the <UPPERCASED_NAME>_FOUND variable.                                                                                                              
    # The package is found if all variables listed are TRUE.                                                                                                          
    # Example:                                                                                                                                                        
    #                                                                                                                                                                 
    #    FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXml2 DEFAULT_MSG LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)                                                                 
    #                                                                                                                                                                 
    # LibXml2 is considered to be found, if both LIBXML2_LIBRARIES and                                                                                                
    # LIBXML2_INCLUDE_DIR are valid. Then also LIBXML2_FOUND is set to TRUE.                                                                                          
    # If it is not found and REQUIRED was used, it fails with FATAL_ERROR,                                                                                            
    # independent whether QUIET was used or not.                                                                                                                      
    #                                                                                                                                                                 
    # If it is found, the location is reported using the VAR1 argument, so                                                                                            
    # here a message "Found LibXml2: /usr/lib/libxml2.so" will be printed out.                                                                                        
    # If the second argument is DEFAULT_MSG, the message in the failure case will                                                                                     
    # be "Could NOT find LibXml2", if you don't like this message you can specify                                                                                     
    # your own custom failure message there.                                                                                                                          
    
    MACRO(FIND_PACKAGE_HANDLE_STANDARD_ARGS _NAME _FAIL_MSG _VAR1 )
    
      IF("${_FAIL_MSG}" STREQUAL "DEFAULT_MSG")
        IF (${_NAME}_FIND_REQUIRED)            
          SET(_FAIL_MESSAGE "Could not find REQUIRED package ${_NAME}")
        ELSE (${_NAME}_FIND_REQUIRED)                                  
          SET(_FAIL_MESSAGE "Could not find OPTIONAL package ${_NAME}")
        ENDIF (${_NAME}_FIND_REQUIRED)                                 
      ELSE("${_FAIL_MSG}" STREQUAL "DEFAULT_MSG")                      
        SET(_FAIL_MESSAGE "${_FAIL_MSG}")                              
      ENDIF("${_FAIL_MSG}" STREQUAL "DEFAULT_MSG")                     
    
      STRING(TOUPPER ${_NAME} _NAME_UPPER)
    
      SET(${_NAME_UPPER}_FOUND TRUE)
      IF(NOT ${_VAR1})              
        SET(${_NAME_UPPER}_FOUND FALSE)
      ENDIF(NOT ${_VAR1})              
    
      FOREACH(_CURRENT_VAR ${ARGN})
        IF(NOT ${_CURRENT_VAR})    
          SET(${_NAME_UPPER}_FOUND FALSE)
        ENDIF(NOT ${_CURRENT_VAR})       
      ENDFOREACH(_CURRENT_VAR)           
    
      IF (${_NAME_UPPER}_FOUND)
        IF (NOT ${_NAME}_FIND_QUIETLY)
            MESSAGE(STATUS "Found ${_NAME}: ${${_VAR1}}")
        ENDIF (NOT ${_NAME}_FIND_QUIETLY)                
      ELSE (${_NAME_UPPER}_FOUND)                        
        IF (${_NAME}_FIND_REQUIRED)
            MESSAGE(FATAL_ERROR "${_FAIL_MESSAGE}")
        ELSE (${_NAME}_FIND_REQUIRED)
          IF (NOT ${_NAME}_FIND_QUIETLY)
            MESSAGE(STATUS "${_FAIL_MESSAGE}")
          ENDIF (NOT ${_NAME}_FIND_QUIETLY)
        ENDIF (${_NAME}_FIND_REQUIRED)
      ENDIF (${_NAME_UPPER}_FOUND)
    ENDMACRO(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
    /usr/share/kde4/apps/cmake/modules/FindPlasma.cmake
    Code:
    # cmake macro to see if we have Plasma from KDE workspace                                                                                                         
    
    # PLASMA_INCLUDE_DIR
    # PLASMA_FOUND      
    # Copyright (C) 2007 Brad Hards <bradh@frogmouth.net>
    #                                                    
    # Redistribution and use is allowed according to the terms of the BSD license.
    # For details see the accompanying COPYING-CMAKE-SCRIPTS file.                
    
    
    if (PLASMA_INCLUDE_DIR AND PLASMA_LIBS)
        # Already in cache, be silent      
        set(Plasma_FIND_QUIETLY TRUE)      
    endif (PLASMA_INCLUDE_DIR AND PLASMA_LIBS)
    
    
    find_path(PLASMA_INCLUDE_DIR NAMES plasma/plasma.h
            PATHS                                     
            ${KDE4_INCLUDE_DIR}                       
            ${INCLUDE_INSTALL_DIR}                    
    )                                                 
    
    find_library(PLASMA_LIBS NAMES plasma
            PATHS                        
            ${KDE4_LIB_DIR}              
            ${LIB_INSTALL_DIR}           
    )                                    
    
    include(FindPackageHandleStandardArgs)
    FIND_PACKAGE_HANDLE_STANDARD_ARGS(Plasma DEFAULT_MSG PLASMA_LIBS PLASMA_INCLUDE_DIR )
    
    if (PLASMA_FOUND)
        find_file(PLASMA_OPENGL_FOUND plasma/glapplet.h
                  PATHS ${PLASMA_INCLUDE_DIR}
                  NO_DEFAULT_PATH)
    endif (PLASMA_FOUND)
    
    mark_as_advanced(PLASMA_INCLUDE_DIR PLASMA_LIBS)

  2. #2
    Join Date
    Mar 2008
    Location
    Vsters, Sweden ex. Highbury London UK
    Posts
    1,245

    Default Re: CMake Plasmoid compiling problem

    The error says "Could not find REQUIRED package Plasma" are you sure you have it installed?
    Go to yast and check for libplasma

    Geoff
    Core 2 Duo 3.16GHz, 8GB DDR2, 3.5TB, GeForce 9600 GT, Amilo LCD 26", OS 11.1 x86_64, KDE4.2.4 (2)
    My wine tips & tricks

  3. #3
    Join Date
    Oct 2008
    Posts
    27

    Default Re: CMake Plasmoid compiling problem

    Yes I have libplasma1 installed:

    Code:
    libplasma1 - Version: 4.0.4-24.88
    That is the latest version available with my repositories.

  4. #4
    Join Date
    Oct 2008
    Posts
    27

    Default Re: CMake Plasmoid compiling problem

    I've read around the internet that the developpement files of plasma are needed to compile plasmods. Thus, I am wondering if there is any "libplasma-dev" package and/or source packages. I don't mind compiling it my self (I used to be under Gentoo ).

    Thanks for any help!

  5. #5
    Join Date
    Jun 2008
    Location
    Sarasota
    Posts
    301

    Default Re: CMake Plasmoid compiling problem

    I ran into the same issue (and solved it). But the sad news
    is that I can't remember now exactly which package I had to install
    to fix it. I DO remember that it was obscure and did NOT
    have the name plasma anywhere in its name. So, their error
    msg is grossly misleading and is a bug. If you know how to
    file bug-reports, I'd suggest you do that.

    That said, I THINK the needed package has 'QT' somewhere in
    its name, but I can't swear to that. So, only thing I can suggest is
    that you just google out on the net, and someone will mention
    the solution.

    Meanwhile, someone at Novell needs to go into Yast-Software and
    ADD a PATTERN that includes everything that is needed to compile
    all of KDE 4.x, so that the user community can more easily deal with
    KDE-4 source-code.

    My 2-cents...

    Dave
    Box1: MEPIS-8.5/sidux/openSUSE-11.3M6(broken-wifi/hiddenSSIDs)/XP(32-bit), nvidia 5200
    Lap1: antiX-8.5(KDE4.4.3)/MEPIS-8.5/Vista, Intel 945GM, builtin-wifi->Broadcom-4311(drv=wl)

  6. #6

    Default Re: CMake Plasmoid compiling problem

    I was able to get this app to compile, unfortunately i can't remember what the exact name was but i thought it was something like libplasma-devel.

  7. #7

    Default Re: CMake Plasmoid compiling problem

    I have the same problem (on KDE 4.1.2 and now KDE 4.1.3):

    "Could not find REQUIRED package Plasma"

    There is no development-package for plasa in the repository!

    I don't have any idea where the missing PLASMA package may be. I am afraid that SuSE has forgotten to deploy all essential development stuff to compile plasmoids and such.
    (And yes, I have looked into any resonable repository and searched through SuSEs build service.

    Any ideas?

  8. #8

    Default Re: CMake Plasmoid compiling problem

    kdebase4-workspace-devel

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •