Announcement

Collapse
No announcement yet.

cmake error for kcm-ufw build

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

    cmake error for kcm-ufw build

    I tried to build the kcm gui for ufw and got the following error.

    - The CXX compiler identification is unknown
    CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
    CMake Error at /usr/share/cmake-2.8/Modules/FindKDE4.cmake:98 (MESSAGE):
    ERROR: cmake/modules/FindKDE4Internal.cmake not found in
    /home/larryk121/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
    Call Stack (most recent call first):
    CMakeLists.txt:19 (find_package)


    -- Configuring incomplete, errors occurred!


    What did I do wrong and how do I fix it?

    #2
    This thread on Ubuntu forums, although old, outlines a good set of steps to troubleshoot make errors. I suspect it contains a solution to your problem.

    http://ubuntuforums.org/showthread.php?t=718183

    Comment


      #3
      Example

      Browsing to the http://kde-apps.org/content/show.php?content=137789

      Checking:
      - Depends on KDE 4.x (OK)
      - Submitted: Jan 23 2011 (Might work 1*)
      - Updated: May 23 2012 (Might work 1*)
      - Source (0.4.3 - For UFW 0.31 (Kubuntu 12.04)) (Might work 2*)
      - User comments:
      kubuntu 12.10
      by avlas on: Oct 20 2012

      to have it working in kubuntu 12.10 one needs to install also python-ufw

      Build essentials /1/

      Step 1: Prep your system for building packages

      By default, Ubuntu does not come with the tools required. You need to install the package build-essential...

      Compile example (at here)

      0) Reading the developers notes: ../kcm_ufw-0.4.3/README

      ...
      Components
      ==========

      The code is split into 3 main parts:

      1. GUI - this is the main control module
      2. KAuth helper - kcm_ufw_helper. This a simpe C++ application that receives
      instructions (via KAuth) from the control module - it then invokes the
      appropriate commands on the python helper.
      3. UFW interface - kcm_ufw_helper.py. This performs all the actions upon UFW.
      Its written in Python to take advantage of UFW's python API.

      It should be possible to merge both helpers into a single KDE4 based python
      helper.


      Installation
      ============

      To build and install:

      1. mkdir build
      2. cd build
      3. cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
      4. make
      5. sudo make install


      The following options may be passed to CMake:

      -DUFW_TRANSLATIONS=<list of translations to install>
      Builds and installs the selected translations. Supported values are
      en, es, fr, lt, and all. Entries should be separated with a semicolon
      (";") e.g. -DUFW_TRANSLATIONS="es;fr;lt"
      Default: all
      At here:

      oneline@Quantal:/media/sda3/Tmp/ufw/kcm_ufw-0.4.3$ mkdir build
      oneline@Quantal:/media/sda3/Tmp/ufw/kcm_ufw-0.4.3$ cd build
      oneline@Quantal:/media/sda3/Tmp/ufw/kcm_ufw-0.4.3/build$ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
      ...
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /media/sda3/Tmp/ufw/kcm_ufw-0.4.3/build
      The output: http://pastebin.com/rEc1JD8X

      oneline@Quantal:/media/sda3/Tmp/ufw/kcm_ufw-0.4.3/build$ make
      ...
      [ 95%] Built target en-handbook
      Scanning dependencies of target es-handbook
      [100%] Generating index.cache.bz2
      [100%] Built target es-handbook
      Scanning dependencies of target translations
      [100%] Built target translations
      The output: http://pastebin.com/ysGYrFBh

      oneline@Quantal:/media/sda3/Tmp/ufw/kcm_ufw-0.4.3/build$ sudo make install
      The output: http://pastebin.com/R9CJEMNt

      KDE System Settings...




      Questions

      1. Do you have the package build-essential installed ?




      Comments:

      1* half a year is a long time...
      2* source was working with the Kubuntu 12.04 (KDE version ?) may or may not work with the 12.10.


      Links

      1. https://help.ubuntu.com/community/CompilingEasyHowTo
      Have you tried ?

      - How to Ask a Question on the Internet and Get It Answered
      - How To Ask Questions The Smart Way

      Comment


        #4
        I tried the suggestions here but I still couldn't get it to build (I'm sure I didn't understand some essential step). So I reverted back to 12.04, added a ppa (blca yukki.published), and then installed it with muon. I was having other problems with 12.10 anyway.

        Comment

        Working...
        X