LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   set CMAKE_C_COMPILER...... (https://www.linuxquestions.org/questions/linux-software-2/set-cmake_c_compiler-923203/)

AGazzaz 01-11-2012 02:44 AM

set CMAKE_C_COMPILER......
 
Hello,
I was trying to install icon tasks plasmoid, I followed the readme file instructions until there was a cmake command and it was not found so I installed cmake using yum after the install I got this
Code:

build]$ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found.  Please set CMAKE_C_COMPILER to a valid compiler path or name.
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/Modules/FindKDE4.cmake:98 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /home/ahmad/.kde/share/apps;/usr/share/kde-settings/kde-profile/default/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
  CMakeLists.txt:22 (find_package)


-- Configuring incomplete, errors occurred!

I am using fedora 16 and KDE version 4.7.4

How can I solve this problem?

Thanks.

knudfl 01-11-2012 07:07 AM

# yum install gcc-c++ kdebase-workspace-devel dbusmenu-qt-devel


cd plasma-icontasks-0.9.2/ && mkdir build && cd build/
&& cmake ../ && make : OK on Fedora 16, 64bits.

AGazzaz 01-14-2012 02:34 PM

Thank you knudfl, it works!

dorusto 01-14-2013 01:23 PM

trying to install darktable 1.1.1
 
I'm using opensuse and with that packages I get forward to the next error. I'm trying to install darktable 1.1.1 and I get this error:

Code:

./build.sh --prefix /opt/darktable --buildtype Release
Darktable build script

Building directory:  ./build
Installation prefix: /opt/darktable
Build type:          Release
Make program:        make
Make tasks:          2


-- The CXX compiler identification is GNU 4.7.1
-- 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
-- checking for module 'Gettext'
--  package 'Gettext' not found
-- Found Gettext
-- Found msgfmt to convert language file. Translation enabled
-- Found xsltproc
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp 
-- checking for module 'glib-2.0'
--  found glib-2.0, version 2.32.4
-- Found Glib
CMake Warning (dev) at src/CMakeLists.txt:113 (find_package):
  Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
  and POP.  Run "cmake --help-policy CMP0011" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The included script

    /home/doru/Documents/darktable-1.1.1/cmake/modules/FindGlib.cmake

  affects policy settings.  CMake is implying the NO_POLICY_SCOPE option for
  compatibility, so the effects are applied to the including context.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at cmake/modules/FindGTK2.cmake:387 (message):
  Could not find GTK2 include directory
Call Stack (most recent call first):
  src/CMakeLists.txt:118 (find_package)


CMake Warning (dev) at src/CMakeLists.txt:118 (find_package):
  Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
  and POP.  Run "cmake --help-policy CMP0011" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The included script

    /home/doru/Documents/darktable-1.1.1/cmake/modules/FindGTK2.cmake

  affects policy settings.  CMake is implying the NO_POLICY_SCOPE option for
  compatibility, so the effects are applied to the including context.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Any help please!

Thanks.

knudfl 01-14-2013 03:07 PM

Post # 4, @dorusto : Welcome to LQ.

Quote:

Could not find GTK2 include directory
# zypper in gtk2-devel


And the other numerous prerequisites for darktable-1.1.1 :
Most of those are also <name>-devel
To be found with : # zypper se <name> ( or part of name.)

-

knudfl 01-14-2013 08:27 PM

# 4 : Build prerequisites for darktable-1.1.1 :

# zypper in \
gtk2-devel libexiv2-devel libgphoto2-devel libxslt-tools libxml2-devel lensfun-devel \
librsvg-devel sqlite3-devel libcurl-devel libjpeg62-devel libtiff-devel liblcms2-devel \
libopenexr-devel libgudev-1_0-devel dbus-1-devel sane-backends-devel polkit-devel \
libgnome-keyring-devel libSDL-devel libsoup-devel dbus-1-glib-devel libcolord-devel

-


All times are GMT -5. The time now is 07:48 PM.