[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] libcanberra instead of QuickTime
From: |
Louis Zulli |
Subject: |
Re: [Bug-gnubg] libcanberra instead of QuickTime |
Date: |
Fri, 15 Jan 2010 13:12:26 -0500 |
libcanberra depends on gstreamer:
> libcanberra @0.20 (audio, devel)
> Variants: universal
>
> Description: libcanberra is an implementation of the XDG Sound Theme
> and Name
> Specifications, for generating event sounds on free
> desktops, such as GNOME.
> Homepage: http://0pointer.de/lennart/projects/libcanberra/
>
> Build Dependencies: pkgconfig
> Library Dependencies: gstreamer, gconf, libvorbis
> Platforms: darwin
> License: unknown
> Maintainers: address@hidden
I'll see if I can get that config.log. Don't know how yet!
By the way, I compiled the following successfully, as a test:
> #include <stdio.h>
>
> #include <canberra.h>
>
> static int ret = 0;
> static ca_context *ccontext = NULL;
>
> static void error(int line, int errno) {
> fprintf(stderr, "error %s at line %d\n", ca_strerror(errno), line);
> }
>
> int main(int argc, char *argv[]) {
>
> if (argc < 2) {
> fprintf(stdout, "Usage: %s <filename>\n", argv[0]);
> return 1;
> }
>
>
> /* Create context */
> if ((ret = ca_context_create(&ccontext)) < 0)
> error(__LINE__-1, ret);
>
>
> if ((ret = ca_context_play(ccontext, 1, CA_PROP_MEDIA_FILENAME, argv[1],
> NULL)) < 0)
> error(__LINE__-1, ret);
>
> /* Cleanup */
> ca_context_destroy(ccontext);
>
> /* Return */
> return ret;
> }
But when I run it, I get an error message, which I haven't been able to
understand by Googling:
LZsMacPro-OSX6: ~/Desktop] ./soundplay fanfare.wav
error Out of memory at line 25
On Jan 15, 2010, at 1:00 PM, Michael Petch wrote:
> I'm not sure of the mechanism (Been a while since I used macports now), but
> could you build libcanberra and pull a copy of the config.log from its build
> process?
>
> Secondly does libcanberra have a dependency on gstreamer by any chance?
>
> On 15/01/10 10:51 AM, "Louis Zulli" <address@hidden> wrote:
>
>> gnubg builds on SL. The only issue is you can't make a 64-bit build using
>> QuickTime. But you can build all the dependencies as universal binaries
>> (+universal in MacPorts) and then build gnubg using -arch i386 in CFLAGS and
>> LDFLAGS. This works fine, as far as I can tell.
>>
>> In fact, I'm about to do this, since I can't figure out what the libcanberra
>> problem is.
>>
>> Louis
>>
>>
>>
>> On Jan 15, 2010, at 12:39 PM, Achim Mueller wrote:
>>
>>> On Fri, Jan 15, 2010 at 11:50 AM, Louis Zulli <address@hidden> wrote:
>>>> I'd like to build a 64-bit gnubg on OS X 10.6.2 Snow Leopard. So I can't
>>>> use
>>>> the QuickTime framework, which isn't 64-bit. I've built all the gnubg
>>>> dependencies as 64-bit, including libcanberra (used MacPorts).
>>>
>>> I'd really apprechiate if someone can modify the code for Snow Leopard ;-).
>>> I'm missing gnubg on my MacBook and also had people asking me because I once
>>> made packages for Leopard.
>>>
>>> Ciao
>>>
>>> Achim
>>>
>>
>>
>>
>> _______________________________________________
>> Bug-gnubg mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>>
>
>
- [Bug-gnubg] libcanberra instead of QuickTime, Louis Zulli, 2010/01/15
- Re: [Bug-gnubg] libcanberra instead of QuickTime, Christian Anthon, 2010/01/15
- Re: [Bug-gnubg] libcanberra instead of QuickTime, Achim Mueller, 2010/01/15
- [Bug-gnubg] gnubg on OS X 10.6.2, Louis Zulli, 2010/01/15
- Re: [Bug-gnubg] gnubg on OS X 10.6.2, Michael Petch, 2010/01/15
- [Bug-gnubg] OS X 10.6.2 Full Screen graphics bug, Louis Zulli, 2010/01/15
- Re: [Bug-gnubg] OS X 10.6.2 Full Screen graphics bug, Michael Petch, 2010/01/15
- Re: [Bug-gnubg] OS X 10.6.2 Full Screen graphics bug, Michael Petch, 2010/01/15
- Re: [Bug-gnubg] OS X 10.6.2 Full Screen graphics bug, Louis Zulli, 2010/01/15