Re: compile on apple

"nico bats" <[email protected]> Thu, 12 Jun 2008 11:01:28 +0200
Newsgroups gmane.linux.bluez.user
Message-ID <[email protected]>
hi,
following this page(
http://wiki.openmoko.org/wiki/User:SNMoore#Patch_to_work_around_byteswap.h_and_endian.h_errors_on_OS_X),
byteswap macro can be re-written and use  <machine/endian.h> as header

maybe it worth the try
++

On Wed, Jun 11, 2008 at 3:15 PM, Marcel Holtmann <[email protected]>
wrote:

> Hi Nico,
>
> > i've tried to compile Bluez on macbookpro and came across error:
> >
> > /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
> > -I.. -I../include    -Wall -O2 -D_FORTIFY_SOURCE=2 -MT bluetooth.lo
> > -MD -MP -MF .deps/bluetooth.Tpo -c -o bluetooth.lo bluetooth.c
> > mkdir .libs
> >  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -Wall -O2
> > -D_FORTIFY_SOURCE=2 -MT bluetooth.lo -MD -MP -MF .deps/bluetooth.Tpo
> > -c bluetooth.c  -fno-common -DPIC -o .libs/bluetooth.o
> > bluetooth.c:35:20: error: malloc.h: No such file or directory
> > In file included from bluetooth.c:39:
> > ../include/bluetooth/bluetooth.h:36:20: error: endian.h: No such file
> > or directory
> > ../include/bluetooth/bluetooth.h:37:22: error: byteswap.h: No such
> > file or directory
> >
> > does macros included in endian.h & byteswap.h can be coded in a
> > portable way ?
>
> I can fix the malloc.h include, because that is not needed, but for the
> others, I have no idea. Maybe or maybe not.
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users