Announcement

Collapse
No announcement yet.

Trouble compiling source since switching to KDE

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trouble compiling source since switching to KDE

    Wanted to switch to Kubuntu and decided a clean install was the way to go. Though the learning curve isn't too tough, I've hit a serious snag: When I try to compile a source package according to the similar instructions in each of the README files, I get the same error message;

    Instructions:

    mkdir build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
    make
    su -c 'make install'
    kbuildsycoca4

    When I run the 'cmake' terminal command on the third line, I get this spat at me:


    CMake Error at CMakeLists.txt:3 (kde4_add_plugin):
    Unknown CMake command "kde4_add_plugin".


    CMake Warning (dev) in CMakeLists.txt:
    No cmake_minimum_required command is present. A line of code such as

    cmake_minimum_required(VERSION 2.8)

    should be added at the top of the file. The version specified may be lower
    if you wish to support older CMake versions for this project. For more
    information run "cmake --help-policy CMP0000".
    This warning is for project developers. Use -Wno-dev to suppress it.

    -- Configuring incomplete, errors occurred!



    Two problems here: first, the warning about "cmake_minimum_required"... there is such a line right at the top of the file. The second problem is that the terminal barks out that a particular command is unfamiliar: the "kde4_add_plugin" command.

    What's the deal? I'm liking this KDE 4.4 setup, but if I can't install the improvements from kde-look.org I'm gonna be none too happy. Please, help!

    For an example of what I'm looking at, see:

    http://kde-look.org/content/show.php...b7afd6da127cff

    #2
    Re: Trouble compiling source since switching to KDE

    About > Audiothumbs

    You will need:

    0) AudioThumbs-0.1 source
    1) build-essential
    2) kdelibs5-dev
    3) libflac++-dev
    4) libtag1-dev

    After that:
    Code:
    /AudioThumbs-0.1$ mkdir -p builddir
    Code:
    /AudioThumbs-0.1$ cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=/usr
    -- 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
    ...
    - Performing Test FLAC_METADATA_PICTURE_FOUND - Success
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /AudioThumbs-0.1/builddir
    Code:
    /AudioThumbs-0.1/builddir$ make
    Scanning dependencies of target AudioThumbs_automoc
    Generating moc_AudioThumbs.cpp
    ...
    Linking CXX shared module ../lib/AudioThumbs.so
    [100%] Built target AudioThumbs
    => binaries are there

    ...and after installation:
    /usr/lib/kde4/AudioThumbs.so
    /usr/share/kde4/services/AudioThumbs.desktop

    As .deb packages from the PPA repositories:

    Search page > Personal Package Archives for Ubuntu.
    The PPA search may or may not find packages - now it don't find them but there are:

    > PPA for Rog131 and there > Package name contains: audio-thumbs


    More:
    > FAQ: Installing from source
    > FAQ: Repositories
    > Using the PPA repositories
    > Topic: Plasma, plasmoids and short how to recover
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: Trouble compiling source since switching to KDE

      As a general rule, YOU NEVER (well, hardly ever) HAVE TO COMPILE ANYTHING (unless you want to). There are Linux program packages available for just about anything you might want to do with a computer including some that you can't find for M$ and Apple OS's because they aren't profitable enough for commercial developers. These packages are prepared for you by "developers" (who are mostly, volunteers). You find them by using a "package manager". My favorite is "Synaptic", but you will have to install that by using Kpackagekit which was installed with Kubuntu. Click on K>Computer>Kpackagekit. With Kpackagekit you can install all sorts of applications that were not on the installation CD.

      Comment


        #4
        Re: Trouble compiling source since switching to KDE

        I really appreciate the help, folks (and in fact, I recognize both of your replies as refries from other posts I found while researching this issue). One final follow-up: concerning many of the 'KDE Improvements' found on kde-look.org, is it generally best to look for a ppa for those packages before trying to compile the source? There seems to be more information one needs to remember when compiling kde packages than when compiling generic linux packages. Just curious; again, thanks for the help!

        Comment


          #5
          Re: Trouble compiling source since switching to KDE

          FYI - there are numerous packages (plasmoids, etc) on kde-look that are not in any repositories, and I get the same errors from cmake. I sure would like to get this fixed, then it's MY choice whether or not to use the source code (this is OpenSource, after all).

          Besides the cmake srrors noted in the original post, one error I consistently get concerns the "kde default directory", and I can't figure out what that wants -- /usr/lib/kde4, /usr/share/kde4, /home/user/.kde, or what??
          We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

          Comment

          Working...
          X