make fails with undefined reference to `cogl_rectangle(float, float, float, float)'

Bug #559743 reported by James Martin on 2010-04-10
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gloobus
New
Undecided
Unassigned
gloobus-flow
Undecided
Unassigned

Bug Description

Attempting to compile from source, this happens:
$ make
Making all in src
make[1]: Entering directory `/home/nvsbl/Projects/gloobus-flow/src'
g++ -Wall -rdynamic -g -ldl -lstdc++ -pthread -D_REENTRANT -I/usr/include/clutter-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gtk-2.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gio-unix-2.0/ -D_REENTRANT -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DORBIT2=1 -pthread -D_REENTRANT -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1.0 -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/directfb -I/usr/include/libpng12 -g -O2 -pthread -lclutter-gtk-0.10 -lclutter-glx-1.0 -lgtk-x11-2.0 -lGL -lX11 -lXext -lXdamage -lXcomposite -lXfixes -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lgio-2.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lgio-2.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -pthread -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lgio-2.0 -lpango-1.0 -lfreetype -lfontconfig -lgconf-2 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -o gloobus gloobus-main.o gloobus-coverflow.o gloobus-utilities.o clutter-black-texture.o
clutter-black-texture.o: In function `black_texture_paint':
/home/nvsbl/Projects/gloobus-flow/src/clutter-black-texture.cpp:40: undefined reference to `cogl_rectangle(float, float, float, float)'
collect2: ld returned 1 exit status
make[1]: *** [gloobus] Error 1
make[1]: Leaving directory `/home/nvsbl/Projects/gloobus-flow/src'
make: *** [all-recursive] Error 1

Nandox7 (nandox7) wrote :

I'm having the same problem.

I've checked and the cogl_rectangle() is provided by the libclutter-glx lib:

  1323: 000000000008c290 97 FUNC GLOBAL DEFAULT 12 cogl_rectangle_with_textu
  1457: 000000000008c200 72 FUNC GLOBAL DEFAULT 12 cogl_rectangle <-----
  1983: 000000000008c390 141 FUNC GLOBAL DEFAULT 12 cogl_rectangles

And that is given to the linker command by "-lclutter-glx-1.0".
Any idea what's missing here?

ammonkey (am-monkeyd) wrote :

this code is not maintained. Part of it has been merged in nautilus-elementary (2.28)
https://code.launchpad.net/~elementaryart/nautilus-elementary/nautilus-elementary

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers