Menu

Can't build Rkward 050d on OpenSuSE 11.1 KDE4

Help
Joe
2009-05-13
2013-01-15
  • Joe

    Joe - 2009-05-13

    Hi,

    I am unable to build the just released Rkward 050d on OpenSuSE 11.1 with KDE4.  I also tried the release candidate version last week with the same results.  It looks like Cmake cannot find KDE4, even though I have tried dozens of ways to tell it how to find it.  Note that I determined my KDE4 directory by submitting "which kget" and taking off the "/bin/kget/" portion of the path. Below I show my output, trying several methods to tell Cmake where to find KDE4. The syntax may not be correct on some of them, because I found the Rkward INSTALL directions confusing.  Nevertheless, they all result in the same error message.

    I am using CMake version 2.6.2-2.19.  My box has 2 Dual-Core AMD-Opteron CPUs with 4Gb ram.

    Can anyone help with this or is it a bug?

    Do you know when and if a SuSE RPM will be released?  That would solve my problem.

    Thanks,

    Joe

    Here is my output

    =====================================================================
    root:/usr/bin/build # which kget
    /usr/bin/kget
    root:/usr/bin/build #

    root:/usr/bin/build # cmake /home/joe/Download/rkward-0.5.0d -DCMAKE_BUILD_TYPE=Release
    -- The C compiler identification is GNU                                                    
    -- The CXX compiler identification is GNU                                                  
    -- Check for working C compiler: /usr/bin/gcc                                              
    -- Check for working C compiler: /usr/bin/gcc -- 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                                                  
    CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:83 (MESSAGE):                       
      ERROR: cmake/modules/FindKDE4Internal.cmake not found in                                 
      /root/.kde4/share/apps;/usr/share/kde4/apps;/etc/kde4/share/apps                         
    Call Stack (most recent call first):                                                       
      CMakeLists.txt:10 (FIND_PACKAGE)

    -- Configuring incomplete, errors occurred!
    root:/usr/bin/build # rm -rf *
    root:/usr/bin/build # cmake /home/joe/Download/rkward-0.5.0d -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
    -- The C compiler identification is GNU
    -- The CXX compiler identification is GNU
    -- Check for working C compiler: /usr/bin/gcc
    -- Check for working C compiler: /usr/bin/gcc -- 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
    CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:83 (MESSAGE):
      ERROR: cmake/modules/FindKDE4Internal.cmake not found in
      /root/.kde4/share/apps;/usr/share/kde4/apps;/etc/kde4/share/apps
    Call Stack (most recent call first):
      CMakeLists.txt:10 (FIND_PACKAGE)

    -- Configuring incomplete, errors occurred!
    root:/usr/bin/build # rm -rf *
    root:/usr/bin/build # cmake /home/joe/Download/rkward-0.5.0d -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`/usr --prefix`
    bash: /usr: is a directory
    -- The C compiler identification is GNU
    -- The CXX compiler identification is GNU
    -- Check for working C compiler: /usr/bin/gcc
    -- Check for working C compiler: /usr/bin/gcc -- 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
    CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:83 (MESSAGE):
      ERROR: cmake/modules/FindKDE4Internal.cmake not found in
      /root/.kde4/share/apps;/usr/share/kde4/apps;/etc/kde4/share/apps
    Call Stack (most recent call first):
      CMakeLists.txt:10 (FIND_PACKAGE)

    -- Configuring incomplete, errors occurred!
    root:/usr/bin/build # rm -rf *
    root:/usr/bin/build # cmake /home/joe/Download/rkward-0.5.0d -DCMAKE_BUILD_TYPE=Release  --prefix=/usr
    CMake Error: The source directory "/usr/bin/build/--prefix=/usr" does not exist.
    Specify --help for usage, or press the help button on the CMake GUI.
    root:/usr/bin/build #
    =====================================================================

     
    • P Kapat

      P Kapat - 2009-05-14

      I am neither comfortable with cmake nor have I used Suse. But there are somethings that seemed odd:

      1.  Instead of 'which kget' try 'kde4-config --prefix' -- this should ideally be the required prefix.

      2. Instead of using /usr/bin/build for the building process try this:
      $ cd /home/joe/Download/rkward-0.5.0d
      $ mkdir build && cd build
      $ cmake ..  (assuming /home/joe/Download/rkward-0.5.0d contains the file CMakeLists.txt)

      3. Ubuntu's cmake package contains:
      /usr/share/cmake-2.6/Modules/FindKDE4.cmake
      Try the following  (may be as root) and let us know what you get:
      find /usr -type f -name 'FindKDE4.cmake'

      Also read the INSTALL/README file(s) for rkward.

      We are updating our online documentation. I agree that currently it is a bit fragmented. Hopefully things will improve. It would be great if you can take some time to provide your opinions on what is good/bad/what needs improvement regarding the new wiki:

      http://apps.sourceforge.net/mediawiki/rkward/index.php?title=Main_Page

      Please feel free to contact us. Someone else on the list might provide insight on Suse's rpm updates.

      Regards,
      PK

       
    • Joe

      Joe - 2009-05-14

      Thanks PK,

      I tried your suggestions without success and provide some feedback on the installation instructions and new wiki.

      The response to

      find /usr -type f -name 'FindKDE4.cmake'

      is

      /usr/share/cmake/Modules/FindKDE4.cmake

      As you can see, I tried the 'kde4-config --prefix' syntax in the command:

      cmake /home/joe/Download/rkward-0.5.0d -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`

      This was the first command syntax I tried last week.  When that failed, I thought I was misinterpreting the INSTALL instructions and tried the other syntaxes.  I even opened up /usr/share/cmake/Modules/FindKDE4.cmake to hardwire the variable which holds the location of KDE4.  One of the locations I tried was "/usr" which is the response I get when I type "kde4-config --prefix" at the terminal.

      I think the problem could be with /usr/share/cmake/Modules/FindKDE4.cmake at about line 83 because it appears not to determine that it has the location of KDE4, after I have clearly hardwired the variable.

      In any case, I tried two versions of the in-source syntax that you recommend, without any more luck:

      First

      /home/joe/Download/rkward-0.5.0d # mkdir build
      root:/home/joe/Download/rkward-0.5.0d # cd build
      root:/home/joe/Download/rkward-0.5.0d/build # cmake /home/joe/Download/rkward-0.5.0d -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
      -- The C compiler identification is GNU
      -- The CXX compiler identification is GNU
      -- Check for working C compiler: /usr/bin/gcc
      -- Check for working C compiler: /usr/bin/gcc -- 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
      CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:83 (MESSAGE):
        ERROR: cmake/modules/FindKDE4Internal.cmake not found in
        /root/.kde4/share/apps;/usr/share/kde4/apps;/etc/kde4/share/apps
      Call Stack (most recent call first):
        CMakeLists.txt:10 (FIND_PACKAGE)

      -- Configuring incomplete, errors occurred!
      root:/home/joe/Download/rkward-0.5.0d/build #
      ========================================================================

      Second
      rm -rf *
      coventure:/home/joe/Download/rkward-0.5.0d/build # cmake  -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
      CMake Error: The source directory "/home/joe/Download/rkward-0.5.0d/build" does not appear to contain CMakeLists.txt.
      Specify --help for usage, or press the help button on the CMake GUI.
      root:/home/joe/Download/rkward-0.5.0d/build #
      ========================================================================

      On Another Subject -- Feedback on Instructions and the new wiki

      I took a quick look at the new wiki.  I like the screenshots, but I think I could evaluate the page better once I have Rkward started and try to reaquaint myself with it.  (It has been about a year since I used it and that was only light usage.)

      One simple comment about the page, from a user perspective is that I would put a link to installation instructions in the initial contents list.  At the top of the page, you will see the following text and links.  I have inserted in ALL CAPS where a link to installation instructions would be nice.

        User Documentation

      This section contains documentation on RKWard from a user perspective / intended for end users.

          * Overview
          * Screenshots
          * General FAQ
          * Available downloads
          * INSTALLATION
          * Further documentation
      =================================================

      I do have feedback on the confusing installation instructions.  Keep in mind, my comments are more stylistic and perhaps after we have resolved my installation problem, I can make some substantive suggestions.

      INSTALL document

      1) Line 17 recommends the "out-of-source" method, while you recommend the in-source variation.  Would it be appropriate to explain to the user to try one method and if that does not work try the other?

      2) line 59 says, "You _have to_ install RKWard.  Otherwise RKWard will be missing important menu-options..."  That is just confusing. I had to reread it several times and kept thinking, well of course you have to install RKWard, that is what I am trying to do here.  Here is a suggested wording:  "The last step is to run the 'make install' command."  I would leave out the "otherwise RKWard will be missing ..." clause, although I find it interesting that it might work at all without 'make install'.

      General FAQ document on the wiki--installation section (http://apps.sourceforge.net/mediawiki/rkward/index.php?title=General_FAQ#Compiling_and_installing)

      1) See my comment above about having an "installation" link on the new wiki.  That link might link to this installation text (or some similar revised text).

      2) In the KDE4 (RKWard versions 0.5.0 or higher) section, there is a recommended approach to run the following commands:

      =======================================================================
      # mkdir build; cd build
      # cmake path_to_rkward_sources [options]  # see below
      # make
      # sudo make install
      =======================================================================

      The "see below" comment is confusing because there is no explanations of options below, except those for KDE3, which are relevant to the ./configuration --> make --> make install framework, rather than the cmake --> make --> install framework.

      3) As an explanation to the above four commands, I would add an instruction for the neophyte that the first three lines of code can be run as either root or normal user.

      Well, that is all the comments that I have for now.  Let me know if you have any more suggestions for resolving the installation problems.

      Cheers, 

      Joe

       
    • Joe

      Joe - 2009-05-14

      Thanks PK,

      I tried your suggestions without success and provide some feedback on the installation instructions and new wiki.

      The response to

      find /usr -type f -name 'FindKDE4.cmake'

      is

      /usr/share/cmake/Modules/FindKDE4.cmake

      As you can see, I tried the 'kde4-config --prefix' syntax in the command:

      cmake /home/joe/Download/rkward-0.5.0d -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`

      This was the first command syntax I tried last week.  When that failed, I thought I was misinterpreting the INSTALL instructions and tried the other syntaxes.  I even opened up /usr/share/cmake/Modules/FindKDE4.cmake to hardwire the variable which holds the location of KDE4.  One of the locations I tried was "/usr" which is the response I get when I type "kde4-config --prefix" at the terminal.

      I think the problem could be with /usr/share/cmake/Modules/FindKDE4.cmake at about line 83 because it appears not to determine that it has the location of KDE4, after I have clearly hardwired the variable.

      In any case, I tried two versions of the in-source syntax that you recommend, without any more luck:

      First

      /home/joe/Download/rkward-0.5.0d # mkdir build
      root:/home/joe/Download/rkward-0.5.0d # cd build
      root:/home/joe/Download/rkward-0.5.0d/build # cmake /home/joe/Download/rkward-0.5.0d -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
      -- The C compiler identification is GNU
      -- The CXX compiler identification is GNU
      -- Check for working C compiler: /usr/bin/gcc
      -- Check for working C compiler: /usr/bin/gcc -- 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
      CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:83 (MESSAGE):
        ERROR: cmake/modules/FindKDE4Internal.cmake not found in
        /root/.kde4/share/apps;/usr/share/kde4/apps;/etc/kde4/share/apps
      Call Stack (most recent call first):
        CMakeLists.txt:10 (FIND_PACKAGE)

      -- Configuring incomplete, errors occurred!
      root:/home/joe/Download/rkward-0.5.0d/build #
      ========================================================================

      Second
      rm -rf *
      coventure:/home/joe/Download/rkward-0.5.0d/build # cmake  -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
      CMake Error: The source directory "/home/joe/Download/rkward-0.5.0d/build" does not appear to contain CMakeLists.txt.
      Specify --help for usage, or press the help button on the CMake GUI.
      root:/home/joe/Download/rkward-0.5.0d/build #
      ========================================================================

      On Another Subject -- Feedback on Instructions and the new wiki

      I took a quick look at the new wiki.  I like the screenshots, but I think I could evaluate the page better once I have Rkward started and try to reaquaint myself with it.  (It has been about a year since I used it and that was only light usage.)

      One simple comment about the page, from a user perspective is that I would put a link to installation instructions in the initial contents list.  At the top of the page, you will see the following text and links.  I have inserted in ALL CAPS where a link to installation instructions would be nice.

        User Documentation

      This section contains documentation on RKWard from a user perspective / intended for end users.

          * Overview
          * Screenshots
          * General FAQ
          * Available downloads
          * INSTALLATION
          * Further documentation
      =================================================

      I do have feedback on the confusing installation instructions.  Keep in mind, my comments are more stylistic and perhaps after we have resolved my installation problem, I can make some substantive suggestions.

      INSTALL document

      1) Line 17 recommends the "out-of-source" method, while you recommend the in-source variation.  Would it be appropriate to explain to the user to try one method and if that does not work try the other?

      2) line 59 says, "You _have to_ install RKWard.  Otherwise RKWard will be missing important menu-options..."  That is just confusing. I had to reread it several times and kept thinking, well of course you have to install RKWard, that is what I am trying to do here.  Here is a suggested wording:  "The last step is to run the 'make install' command."  I would leave out the "otherwise RKWard will be missing ..." clause, although I find it interesting that it might work at all without 'make install'.

      General FAQ document on the wiki--installation section (http://apps.sourceforge.net/mediawiki/rkward/index.php?title=General_FAQ#Compiling_and_installing)

      1) See my comment above about having an "installation" link on the new wiki.  That link might link to this installation text (or some similar revised text).

      2) In the KDE4 (RKWard versions 0.5.0 or higher) section, there is a recommended approach to run the following commands:

      =======================================================================
      # mkdir build; cd build
      # cmake path_to_rkward_sources [options]  # see below
      # make
      # sudo make install
      =======================================================================

      The "see below" comment is confusing because there is no explanations of options below, except those for KDE3, which are relevant to the ./configuration --> make --> make install framework, rather than the cmake --> make --> install framework.

      3) As an explanation to the above four commands, I would add an instruction for the neophyte that the first three lines of code can be run as either root or normal user.

      Well, that is all the comments that I have for now.  Let me know if you have any more suggestions for resolving the installation problems.

      Cheers, 

      Joe

       
      • Thomas Friedrichsmeier

        Hi Joe,

        thanks for your feedback. I'll take a closer look at your suggestions, soon. For now, here's another shot at the installation problem:

        The file you seem to be lacking is in fact "FindKDE4internal.cmake", not "FindKDE4.cmake". You could try
           find /usr -name "FindKDE4internal.cmake"
        to check whether you have that file, somewhere. However, my guess is that you don't have the kdelibs headers installed, yet. I don't know the exact name of that on openSUSE, probably something like kdelibs4-devel, libkde4-devel, kdelibs-dev (version 4.x) or similar.

        Could you make sure you have that installed?

        Regards
        Thomas

         
      • Thomas Friedrichsmeier

        Short feedback on your suggestions:

        INSTALL: 1) Technically that *is* and out-of-source build. But that's being nitpicky. Nobody really needs an in-source build, so I removed that part.
        2) Reworded a bit. I left the part about missing menu items in, as that is a frequently reported symptom for all sorts of installation (make install)-related issues.

        Wiki: 1) I've split the compilation/installation instructions out of the General FAQ, restructured/udpated them a bit, and linked them to the front page.
        2) Fixed.
        3) Any suggestion for a wording that does not make things even more confusing?

        Regards
        Thomas

         
    • Joe

      Joe - 2009-05-15

      Thomas,

      You were right.  Find could not find FindKDE4internal.cmake.  I do have kdelibs4 installed, but not kdelibs4-devel.  Unfortunately, this is dependent on bzip2-devel.  I could not find corresponding version of bzip2 for my system after an exhaustive search.  I do have libkde4 and installed libkde4-devel.

      Now when I run cmake, I get the following error:

      ============================================================================
      root:/home/joe/Download/rkward-0.5.0d/build # cmake  -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
      CMake Error: The source directory "/home/joe/Download/rkward-0.5.0d/build" does not appear to contain CMakeLists.txt.
      Specify --help for usage, or press the help button on the CMake GUI.

      root:/home/joe/Download/rkward-0.5.0d/build #

      ============================================================================

      I have written to bzip2 to request bzip2-devel.  I will let you know how that goes if I get it.

      Thanks,

      Joe

       
      • P Kapat

        P Kapat - 2009-05-15

        OK:

        1. Try not to use root when building (probably doesn't harm,  but still...). root is needed only when doing make install.

        2. [Aside] I got confused again. For Debian derivatives kdelibs4 was for KDE 3.x and kdelibs5 is for KDE 4.x. But searching through opensuse softwares, it seems they are named: kdelibs3 and kdelibs4, respectively.

        3. Suse 11.1's 'libkde4-devel' package contains /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake which at the same location as that for Debian's kdelibs5-dev package.

        Suse 11.1: http://download.opensuse.org/repositories/KDE:/42/openSUSE_11.1/i586/libkde4-devel-4.2.3-3.1.i586.rpm
        Ubuntu: http://packages.ubuntu.com/jaunty/i386/kdelibs5-dev/filelist

        So, there you go, install libkde4-devel, then give the correct cmake command:

        4. You'll need to provide a correct path to cmake, eg:

        /home/joe/Download/rkward-0.5.0d/build # cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..

        Note the '..' in the end of the above line. Specifically, this should be the path to the directory where CMakeLists.txt exists. It is generally specified as relative to the current working directory, hence '..' or '../rkward'.

        Hopefully, it should compile now.

         
    • Joe

      Joe - 2009-05-20

      Thomas,

      Well, that was easier said than done.  I must have spent a good four to five hours dealing with dependencies.

      But there is a rkward (pun fully intended) to persistence and I was successfully able to install and run the program.

      Most of the files that I needed were in http://download.opensuse.org/repositories/KDE:/42/openSUSE_11.1/x86_64, which you mentioned, but a few could not find and had to go to http://rpm.pbone.net to find.  Note, that I I substituted my architecture--x86_64--for i586.  You might want to warn folks, especially SuSE folks that they may need to rely on these two sources for some of the odd dependencies.

      The other thing that was odd, was that I needed to disable all of my repositories except http://download.opensuse.org/repositories/KDE:/42/openSUSE_11.1/x86_64 and my local download directory. Somehow, I think that SuSE's YAST installer prioritized the other repositories, which did not include kde4.2 files.

      Thanks for your help!!

      Cheers

      Joe

       
MongoDB Logo MongoDB