I've been compiling the svn clutter on osx 10.4 as shown below. It
stopped building with a recent update. I tried the 0.7.4 release
tarball, but it is obviously just pulled off the svn depot because it
has the same error.
% ./configure --with-flavour osx
% make
Am I the only one regularly compiling builds on 10.4? Is it helpful
for me to do this and report errors and/or try to fix them? My focus
is on developing OCAML bindings. I've attached a copy of the
translated test-effect.c that I recently got working. It should be
familiar to the author of test/test-effect.c even if you don't know
the OCAML language.
- Reid
gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"ClutterOSX\" -
I../.. -I../../clutter -I../../clutter -DXTHREADS -D_REENTRANT -I/opt/
local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/
include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/
include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -
I/usr/X11R6/include -DCLUTTER_ENABLE_DEBUG -g -Wall -xobjective-c -g -
O2 -g -MT clutter-backend-osx.lo -MD -MP -MF .deps/clutter-backend-
osx.Tpo -c clutter-backend-osx.c -fno-common -DPIC -o .libs/clutter-
backend-osx.o
clutter-backend-osx.c: In function
‘clutter_backend_osx_get_display_size’:
clutter-backend-osx.c:179: error: ‘CLUTTER_OSX_ALLOC_POOL’ undeclared
(first use in this function)
clutter-backend-osx.c:179: error: (Each undeclared identifier is
reported only once
clutter-backend-osx.c:179: error: for each function it appears in.)
clutter-backend-osx.c:193: error: ‘CLUTTER_OSX_RELEASE_POOL’
undeclared (first use in this function)
make[4]: *** [clutter-backend-osx.lo] Error 1
--Apple-Mail-13--42638811
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode44;
name=test-effect.ml
Content-Disposition: attachment;
filename=test-effect.ml
open Clutter
open ClutterEnums
open Printf
let _ let stage_color = Color.rgba (0xcc,0xcc,0xcc,0xff) in
let rect_color = Color.rgba (0,0,0,0xdd) in
let timeline = ClutterTimeline.timeline ~duration:5000 () in
timeline#set_loop true;
let tmpl = ClutterEffects.template timeline#as_timeline `RAMP_INC in
let stage = ClutterStage.get_default () in
let _ = stage#connect#button_press_event
(fun _ -> printf "got a button press\n%!"; Clutter.quit (); true) in
stage#set_color stage_color#as_color;
stage#set_use_fog true;
stage#set_size ~width:800 ~height:600;
stage#show_all;
let actor = ClutterRectangle.rectangle ~width:50 ~height:50 ~x:50 ~y:10
~color:rect_color#obj () in
stage#add_actor actor#as_actor; (* container operation *)
let _ = tmpl#fade actor#as_actor 0x22
~done_cb:(fun _ -> printf "fade done\n%!") in
actor#show;
let actor = ClutterRectangle.rectangle ~color:rect_color#obj ~width:50
~height:50 ~x:750 ~y:70 () in
stage#add_actor actor#as_actor;
let _ = tmpl#depth actor#as_actor ~depth:(-500)
~done_cb:(fun _ -> printf "depth done\n%!") in
actor#show;
let actor = ClutterRectangle.rectangle ~color:rect_color#obj ~width:50
~height:50 ~x:50 ~y:140 () in
stage#add_actor actor#as_actor;
let _ = tmpl#move actor#as_actor ~x:750 ~y:140
~done_cb:(fun _ -> printf "move done\n%!") in
actor#show;
let actor = ClutterRectangle.rectangle ~color:rect_color#obj ~width:50
~height:50 ~x:750 ~y:210 () in
stage#add_actor actor#as_actor;
let _ = tmpl#path actor#as_actor ~knots:[|(750,210); (350,210)|]
~done_cb:(fun _ -> printf "path done\n%!") in
actor#show;
let actor = ClutterRectangle.rectangle ~color:rect_color#obj ~width:50
~height:50 ~x:50 ~y:280 () in
stage#add_actor actor#as_actor;
actor#set_anchor_point_from_gravity `GRAVITY_CENTER;
let _ = tmpl#scale actor#as_actor ~xscale:2. ~yscale:2.
~done_cb:(fun _ -> printf "scale done\n%!") in
actor#show;
let actor = ClutterRectangle.rectangle ~color:rect_color#obj ~width:50
~height:50 ~x:750 ~y:350 () in
stage#add_actor actor#as_actor;
let _ = tmpl#rotate actor#as_actor ~axis:`Z_AXIS ~angle:180.
~x:25 ~y:25 ~z:0 ~dir:`ROTATE_CW
~done_cb:(fun _ -> printf "rotate done\n%!") in
actor#show;
main ()
--Apple-Mail-13--42638811--
-- To unsubscribe send a mail to clutter+unsubscribe_at_o-hand.comReceived on Thu Jun 26 2008 - 09:42:42 EDT
This archive was generated by hypermail 2.2.0 : Thu Jun 26 2008 - 10:00:17 EDT