CLUTTER-EGLX-1.0 on Beagle Board

I was able to successfully compile n build clutter-1.06 source with following configuration

./configure --with-flavour=eglx --wtih-gles=2.0 --with-imagebackend=gdk-pixbuf

on the beagleboard with no warnings and errors.

But whn i try to run the following sample code i get a blank stage of size 200x200 with complete white background instead of a black background n a red rectangle (70x70) on it.

File exp4.c

#include <stdlib.h>
#include <clutter/clutter.h>

int main(int argc, char *argv[])
ClutterColor stage_color = { 0x00, 0x00, 0x00, 0xff }; //black color
ClutterColor rect_color = { 0xf0, 0x00, 0x00, 0xff }; //red color
clutter_init (&argc, &argv);

/* Get the stage and set its size and color: */
ClutterActor *stage = clutter_stage_get_default ();
clutter_actor_set_size (stage, 200, 200);
clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);

/* Add a rectangle to the stage: */
ClutterActor *rect = clutter_rectangle_new_with_color (&rect_color);
clutter_actor_set_size (rect, 70, 70);
clutter_actor_set_position (rect, 50, 100);
clutter_container_add_actor (CLUTTER_CONTAINER (stage), rect);
clutter_actor_show (rect);

/* Show the stage: */
clutter_actor_show (stage);

/* Start the main loop, so we can respond to events: */
clutter_main ();


Compiled the above code with

gcc exp4.c -o exp4_eglx pkg-config --cflags --libs clutter-eglx-1.0

Compilation is successful without any errors or warnings.

But as i mentioned above the program fails to show any meaningful output :frowning:

PS: when i try to run the test programs (compiled during time of making) provided in the code they run perfectly well.

Rohit Jain