cairo-dock-team team mailing list archive
-
cairo-dock-team team
-
Mailing list archive
-
Message #05899
[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 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
Follow ups
References