CMake problems

From Wiki for iCub and Friends
Revision as of 11:18, 18 July 2006 by 130.251.196.24 (talk)
Jump to: navigation, search

CMake is currently having lots of trouble if you have " "s

Gtk+ on Cygwin

pkg-config does not work well and cmake fails if GUI flag is turned on.

The emergency solution is editting yarp2/conf/FindGtkPlus.conf such as:

SET(GTKPLUS_LINK_FLAGS "-L/GTK/bin -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgobject-2.0 -lgdk_pixbuf-2.0" CACHE INTERNAL "gtk+ link flags")
SET(GTKPLUS_C_FLAGS "-I/GTK/include/atk-1.0 -I/GTK/include/pango-1.0 -I/GTK/include/gtk-2.0 -I/GTK/include/glib-2.0 -I/GTK/include/cairo -I/GTK/lib/gtk-2.0/include -I/GTK/lib/glib-2.0/include" CACHE INTERNAL "gtk+ include flags")
SET(GTKPLUS_INCLUDE_DIR "/GTK/include/atk-1.0 /GTK/include/pango-1.0 /GTK/include/gtk-2.0 /GTK/inlcude/glib-2.0 /GTK/include/cairo /GTK/lib/gtk-2.0/include /GTK/lib/glib-2.0/include" CACHE INTERNAL "gtk+ include directory")
IF (GTKPLUS_C_FLAGS)
	SET(GtkPlus_FOUND TRUE)
ELSE (GTKPLUS_C_FLAGS)

SET(GtkPlus_FOUND FALSE)

ENDIF (GTKPLUS_C_FLAGS)

/GTK is GTK_BASEPATH.