Hi,

I've successfully built DirectFb on OS X 10.4.6 and there were some special 
things I had to do.

First off, I found that the Fink ports didn't work so well. MacPort (aka 
Darwin Port) worked much better.

Second, my HOWTO is broken. For some reason specifying the /opt/local/lib 
directory ticks off the build script and you get something like you got. So I 
ended up copying the libraries in the appropriate location (usr/lib). 

Third, I think they way you are doing it won't work. The script SEEMS to want 
everything in the right Linux place. I haven't been able to get it to work 
specifying other directories.

Finally, I DON'T think you need --disable-mmx and --disable-multi. I didn't. 
And this was all on a PPC, not an Intel box. So there may be a LOT of 
differences that I can't comment on.

I do remember seeing the SHCALLOC error. Unfortunately, I don't remember how I 
got past it <sigh>. 

Sorry I couldn't be of more help. BTW I was the one that did the OS X "How To" 
on the wiki and since then can't get it to work :( Unfortunately I haven't 
had enough time to go back and review it...

Hope some of this helps!

Cheers,

Lloyd

On Monday 13 November 2006 06:29, Christian Demmer wrote:
> Hello,
>
> I am trying to compile DirectFB on an Intel Mac mini and have some
> trouble doing so:
>
> The most successfull configuration appears to be
>
> ./configure --enable-static --enable-osx --prefix=$HOME --with-tests \
>       LDFLAGS='-L/Users/chris/lib' CPPFLAGS='-I/Users/chris/include'
> --disable-mmx --disable-multi
>
> but make stops at this point:
>
>  gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../include
> -I../../lib -I../../lib -I../../src -D_REENTRANT -I/Users/chris/include
> -I/sw/include -O3 -ffast-math -pipe -D_GNU_SOURCE
> -Werror-implicit-function-declaration -c primary.c  -fno-common -DPIC -o
> .libs/primary.o primary.c:316:69: error: macro "SHCALLOC" requires 3
> arguments, but only 2 given primary.c: In function
> 'primaryAllocateSurface':
> primary.c:316: error: 'SHCALLOC' undeclared (first use in this function)
> primary.c:316: error: (Each undeclared identifier is reported only once
> primary.c:316: error: for each function it appears in.)
> primary.c: In function 'dfb_osx_set_video_mode':
> primary.c:560: error: implicit declaration of function 'fusion_is_shared'
> primary.c:561:57: error: macro "SHMALLOC" requires 2 arguments, but only 1
> given primary.c:561: error: 'SHMALLOC' undeclared (first use in this
> function) primary.c:569: warning: passing argument 3 of
> 'fusion_call_execute' makes integer from pointer without a cast
> primary.c:569: error: too few arguments to function 'fusion_call_execute'
> primary.c:572:23: error: macro "SHFREE" requires 2 arguments, but only 1
> given primary.c:572: error: 'SHFREE' undeclared (first use in this
> function) primary.c:588:50: error: macro "SHMALLOC" requires 2 arguments,
> but only 1 given primary.c: In function 'dfb_osx_update_screen':
> primary.c:588: error: 'SHMALLOC' undeclared (first use in this function)
> primary.c:597: warning: passing argument 3 of 'fusion_call_execute'
> makes integer from pointer without a cast primary.c:597: error: too few
> arguments to function 'fusion_call_execute' primary.c:600:23: error:
> macro "SHFREE" requires 2 arguments, but only 1 given primary.c:600:
> error: 'SHFREE' undeclared (first use in this function) primary.c: In
> function 'dfb_osx_set_palette': primary.c:611: warning: passing
> argument 3 of 'fusion_call_execute' makes integer from pointer without
> a cast primary.c:611: error: too few arguments to function
> 'fusion_call_execute' make[3]: *** [primary.lo] Error 1 make[2]: ***
> [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: ***
> [all-recursive-am] Error 2
>
> I am not sure about the current state of OSX support in DirectFB but any
> hints would be great!
>
> Greetings, Christian
>
> _______________________________________________
> directfb-users mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to