← Back to team overview

cairo-dock-team team mailing list archive

Re: [Bug 1256335] Re: build issues with cmake

 

Sure:


danny@owl:~/src/cairo-dock-3.3.2/build> cmake .. -DCMAKE_INSTALL_PREFIX=/usr 
-- Building cairo-dock_en.1.gz 
-- Building be.gmo... 
-- Building sv.gmo... 
-- Building cs.gmo... 
-- Building ar.gmo... 
-- Building lt.gmo... 
-- Building pt.gmo... 
-- Building eo.gmo... 
-- Building eu.gmo... 
-- Building it.gmo... 
-- Building bn.gmo... 
-- Building sr.gmo... 
-- Building et.gmo... 
-- Building ca.gmo... 
-- Building ko.gmo... 
-- Building fi.gmo... 
-- Building ru.gmo... 
-- Building sr@xxxxxxxxx... 
-- Building zh_CN.gmo... 
-- Building bg.gmo... 
-- Building de.gmo... 
-- Building pl.gmo... 
-- Building oc.gmo... 
-- Building gl.gmo... 
-- Building en.gmo... 
-- Building vi.gmo... 
-- Building nb.gmo... 
-- Building he.gmo... 
-- Building sk.gmo... 
-- Building fo.gmo... 
-- Building id.gmo... 
-- Building ro.gmo... 
-- Building tr.gmo... 
-- Building uk.gmo... 
-- Building sl.gmo... 
-- Building el.gmo... 
-- Building nl.gmo... 
-- Building pt_BR.gmo... 
-- Building es.gmo... 
-- Building hu.gmo... 
-- Building ja.gmo... 
-- Building nn.gmo... 
-- Building zh_TW.gmo... 
-- Building fr.gmo... 
-- Building cy.gmo... 
-- 
-- Cairo-Dock 3.3.2 will be compiled with the following options: 
-- * Installation in : /usr 
-- * Lib directory : /usr/lib 
-- * GTK version : 3 (3.10.2) 
-- * With X11 support : yes 
-- * With X11 extensions: yes (xtst xcomposite xrandr xrender) 
-- * With GLX support : yes 
-- * Crypt passwords : yes 
-- * Cairo-dock session : no (use '-Denable-desktop-manager=ON' to enable it) 
-- * Themes directory : themes3.3 (on the server) 
-- 
-- Configuring done 
-- Generating done 
-- Build files have been written to: /home/danny/src/cairo-dock-3.3.2 


----- Original Message -----

From: "Matthieu Baerts" <matttbe@xxxxxxxxx> 
To: dgholstein@xxxxxxxxxxxxxx 
Sent: Friday, November 29, 2013 10:35:01 AM 
Subject: [Bug 1256335] Re: build issues with cmake 

Hello and thank you for this bug report!

If you have this error there, it means that ${GTK_MAJOR} and 
${GTK_MINOR} are not defined because there is a problem with this regex: 

STRING (REGEX REPLACE "\\..*" "" GTK_MAJOR "${GTK_VERSION}") 
STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" GTK_MINOR "${GTK_VERSION}") # 3.8.2 => 3.8 
STRING (REGEX REPLACE "\\.[0-9]*" "" GTK_MINOR "${GTK_MINOR}") # 3.8 => 8 

Maybe because ${GTK_VERSION} is not defined (but it should stop there) or not correctly formatted (but it should not happen). 
Did you launch the CMake command from src/gldit directory? But it should print other errors. 

Is it possible to relaunch CMake from an empty directory and give us all 
output messages? 

$ cd cairo-dock-3.3.2/ 
$ mkdir build && cd build 
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr 

** Changed in: cairo-dock-core 
Status: New => Incomplete 

-- 
You received this bug notification because you are subscribed to the bug 
report. 
https://bugs.launchpad.net/bugs/1256335 

Title: 
build issues with cmake 

Status in Cairo-Dock : Core: 
Incomplete 

Bug description: 
I downloaded the latest version of Cairo Dock and compiled on OpenSuse 
13.1. When running: 

cmake CMakeLists.txt -DCMAKE_INSTALL_PREFIX=/usr

I get this: 
CMake Error at src/gldit/CMakeLists.txt:71 (if): 
if given arguments: 

"GREATER" "3" "OR" "(" "EQUAL" "3" "AND" "GREATER" "8" ")"


A work around is to get rid of the curly brackets and replace: 

# Gtk > 3.8 
if (${GTK_MAJOR} GREATER 3 OR (${GTK_MAJOR} EQUAL 3 AND ${GTK_MINOR} GREATER 
8)) 
LIST(APPEND core_lib_SRCS gtk3imagemenuitem.c gtk3imagemenuitem.h) 
endif() 

with:

# Gtk > 3.8 
if ($GTK_MAJOR EQUAL 3 AND $GTK_MINOR GREATER 8) 
LIST(APPEND core_lib_SRCS gtk3imagemenuitem.c gtk3imagemenuitem.h) 
endif() 

To manage notifications about this bug go to: 
https://bugs.launchpad.net/cairo-dock-core/+bug/1256335/+subscriptions

-- 
You received this bug notification because you are a member of Cairo-
Dock Devs, which is subscribed to Cairo-Dock Core.
https://bugs.launchpad.net/bugs/1256335

Title:
  build issues with cmake

Status in Cairo-Dock : Core:
  Incomplete

Bug description:
  I downloaded the latest version of Cairo Dock and compiled on OpenSuse
  13.1. When running:

    cmake CMakeLists.txt  -DCMAKE_INSTALL_PREFIX=/usr

  I get this:
    CMake Error at src/gldit/CMakeLists.txt:71 (if):
      if given arguments:

        "GREATER" "3" "OR" "(" "EQUAL" "3" "AND" "GREATER" "8" ")"


  A work around is to get rid of the curly brackets and replace:

  # Gtk > 3.8
  if (${GTK_MAJOR} GREATER 3 OR (${GTK_MAJOR} EQUAL 3 AND ${GTK_MINOR} GREATER
  8))
      LIST(APPEND core_lib_SRCS gtk3imagemenuitem.c gtk3imagemenuitem.h)
  endif()

  with:

  # Gtk > 3.8
  if ($GTK_MAJOR EQUAL 3 AND $GTK_MINOR GREATER 8)
      LIST(APPEND core_lib_SRCS gtk3imagemenuitem.c gtk3imagemenuitem.h)
  endif()

To manage notifications about this bug go to:
https://bugs.launchpad.net/cairo-dock-core/+bug/1256335/+subscriptions


References