Compile error: sound.c

View: New views
7 Messages — Rating Filter:   Alert me  

Compile error: sound.c

by mailinglists-16 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi folks,

Mac OS, Snow Leopard, macports, current snapshot:

Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-DDOCDIR='"/Users/ace/local/share/doc/gnubg/"'
-DDATADIR='"/Users/ace/local/share"'
-DPKGDATADIR='"/Users/ace/local/share/gnubg"'   -O3 -msse -MT sound.o
-MD -MP -MF .deps/sound.Tpo -c -o sound.o sound.c
sound.c: In function 'Thread_PlaySound_QuickTime':
sound.c:74: error: 'Movie' undeclared (first use in this function)
sound.c:74: error: (Each undeclared identifier is reported only once
sound.c:74: error: for each function it appears in.)
sound.c:74: error: 'movie' undeclared (first use in this function)
sound.c:74: error: expected expression before ')' token
sound.c: In function 'PlaySound_QuickTime':
sound.c:125: error: 'Movie' undeclared (first use in this function)
sound.c:125: error: 'movie' undeclared (first use in this function)
sound.c:125: error: expected expression before ')' token
sound.c:134: warning: assignment makes pointer from integer without a cast
make[2]: *** [sound.o] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2

What is missing?

Ciao

Achim


_______________________________________________
Bug-gnubg mailing list
Bug-gnubg@...
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Re: Compile error: sound.c

by Louis Zulli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is the QuickTime framework being included?


On Oct 23, 2009, at 8:41 AM, Achim Mueller wrote:

> Hi folks,
>
> Mac OS, Snow Leopard, macports, current snapshot:
>
> Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
> -DDOCDIR='"/Users/ace/local/share/doc/gnubg/"'
> -DDATADIR='"/Users/ace/local/share"'
> -DPKGDATADIR='"/Users/ace/local/share/gnubg"'   -O3 -msse -MT sound.o
> -MD -MP -MF .deps/sound.Tpo -c -o sound.o sound.c
> sound.c: In function 'Thread_PlaySound_QuickTime':
> sound.c:74: error: 'Movie' undeclared (first use in this function)
> sound.c:74: error: (Each undeclared identifier is reported only once
> sound.c:74: error: for each function it appears in.)
> sound.c:74: error: 'movie' undeclared (first use in this function)
> sound.c:74: error: expected expression before ')' token
> sound.c: In function 'PlaySound_QuickTime':
> sound.c:125: error: 'Movie' undeclared (first use in this function)
> sound.c:125: error: 'movie' undeclared (first use in this function)
> sound.c:125: error: expected expression before ')' token
> sound.c:134: warning: assignment makes pointer from integer without  
> a cast
> make[2]: *** [sound.o] Error 1
> make[1]: *** [install-recursive] Error 1
> make: *** [install] Error 2
>
> What is missing?
>
> Ciao
>
> Achim
>
>
> _______________________________________________
> Bug-gnubg mailing list
> Bug-gnubg@...
> http://lists.gnu.org/mailman/listinfo/bug-gnubg



_______________________________________________
Bug-gnubg mailing list
Bug-gnubg@...
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Re: Compile error: sound.c

by Michael Petch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The Framework is used if it is found. But Likely what is occuring is that
with the new version of OS/X is not being identified as Apple OS/X. If you
can send me a copy of your config.log I should be able to fix that. I don't
have Snow Leopard installed anywhere to try myself.


On 23/10/09 6:47 AM, "Louis Zulli" <zullil@...> wrote:

> Is the QuickTime framework being included?
>
>
> On Oct 23, 2009, at 8:41 AM, Achim Mueller wrote:
>
>> Hi folks,
>>
>> Mac OS, Snow Leopard, macports, current snapshot:
>>
>> Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
>> -DDOCDIR='"/Users/ace/local/share/doc/gnubg/"'
>> -DDATADIR='"/Users/ace/local/share"'
>> -DPKGDATADIR='"/Users/ace/local/share/gnubg"'   -O3 -msse -MT sound.o
>> -MD -MP -MF .deps/sound.Tpo -c -o sound.o sound.c
>> sound.c: In function 'Thread_PlaySound_QuickTime':
>> sound.c:74: error: 'Movie' undeclared (first use in this function)
>> sound.c:74: error: (Each undeclared identifier is reported only once
>> sound.c:74: error: for each function it appears in.)
>> sound.c:74: error: 'movie' undeclared (first use in this function)
>> sound.c:74: error: expected expression before ')' token
>> sound.c: In function 'PlaySound_QuickTime':
>> sound.c:125: error: 'Movie' undeclared (first use in this function)
>> sound.c:125: error: 'movie' undeclared (first use in this function)
>> sound.c:125: error: expected expression before ')' token
>> sound.c:134: warning: assignment makes pointer from integer without
>> a cast
>> make[2]: *** [sound.o] Error 1
>> make[1]: *** [install-recursive] Error 1
>> make: *** [install] Error 2
>>
>> What is missing?
>>
>> Ciao
>>
>> Achim
>>
>>
>> _______________________________________________
>> Bug-gnubg mailing list
>> Bug-gnubg@...
>> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>
>
>
> _______________________________________________
> Bug-gnubg mailing list
> Bug-gnubg@...
> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>




_______________________________________________
Bug-gnubg mailing list
Bug-gnubg@...
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Re: Compile error: sound.c

by Michael Petch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you look in configure.in look for QuickTime. It should be added to the
linker flags (LDFLAGS) if the OS is *-*-darwin* . If you are using
./autogen.sh, ./configure and make to do builds my guess is the host type
has been changed by apple?

On 23/10/09 6:54 AM, "Michael Petch" <mpetch@...> wrote:

> The Framework is used if it is found. But Likely what is occuring is that
> with the new version of OS/X is not being identified as Apple OS/X. If you
> can send me a copy of your config.log I should be able to fix that. I don't
> have Snow Leopard installed anywhere to try myself.
>
>
> On 23/10/09 6:47 AM, "Louis Zulli" <zullil@...> wrote:
>
>> Is the QuickTime framework being included?
>>
>>
>> On Oct 23, 2009, at 8:41 AM, Achim Mueller wrote:
>>
>>> Hi folks,
>>>
>>> Mac OS, Snow Leopard, macports, current snapshot:
>>>
>>> Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
>>> -DDOCDIR='"/Users/ace/local/share/doc/gnubg/"'
>>> -DDATADIR='"/Users/ace/local/share"'
>>> -DPKGDATADIR='"/Users/ace/local/share/gnubg"'   -O3 -msse -MT sound.o
>>> -MD -MP -MF .deps/sound.Tpo -c -o sound.o sound.c
>>> sound.c: In function 'Thread_PlaySound_QuickTime':
>>> sound.c:74: error: 'Movie' undeclared (first use in this function)
>>> sound.c:74: error: (Each undeclared identifier is reported only once
>>> sound.c:74: error: for each function it appears in.)
>>> sound.c:74: error: 'movie' undeclared (first use in this function)
>>> sound.c:74: error: expected expression before ')' token
>>> sound.c: In function 'PlaySound_QuickTime':
>>> sound.c:125: error: 'Movie' undeclared (first use in this function)
>>> sound.c:125: error: 'movie' undeclared (first use in this function)
>>> sound.c:125: error: expected expression before ')' token
>>> sound.c:134: warning: assignment makes pointer from integer without
>>> a cast
>>> make[2]: *** [sound.o] Error 1
>>> make[1]: *** [install-recursive] Error 1
>>> make: *** [install] Error 2
>>>
>>> What is missing?
>>>
>>> Ciao
>>>
>>> Achim
>>>
>>>
>>> _______________________________________________
>>> Bug-gnubg mailing list
>>> Bug-gnubg@...
>>> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>>
>>
>>
>> _______________________________________________
>> Bug-gnubg mailing list
>> Bug-gnubg@...
>> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>>
>




_______________________________________________
Bug-gnubg mailing list
Bug-gnubg@...
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Re: Compile error: sound.c

by Michael Petch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I guess I should answer when I have caffeine. I just noticed that this
wasn't a linker problem. Clearly the __APPLE__ define is set. This must mean
that since the QuickTime header loaded without error -Apple must have
renamed or changed the Movie structure. Unfortunately without Snow Leopard I
can't tell. But this wouldn't be the first time Quicktime changed!


On 23/10/09 6:58 AM, "Michael Petch" <mpetch@...> wrote:

> If you look in configure.in look for QuickTime. It should be added to the
> linker flags (LDFLAGS) if the OS is *-*-darwin* . If you are using
> ./autogen.sh, ./configure and make to do builds my guess is the host type
> has been changed by apple?
>
> On 23/10/09 6:54 AM, "Michael Petch" <mpetch@...> wrote:
>
>> The Framework is used if it is found. But Likely what is occuring is that
>> with the new version of OS/X is not being identified as Apple OS/X. If you
>> can send me a copy of your config.log I should be able to fix that. I don't
>> have Snow Leopard installed anywhere to try myself.
>>
>>
>> On 23/10/09 6:47 AM, "Louis Zulli" <zullil@...> wrote:
>>
>>> Is the QuickTime framework being included?
>>>
>>>
>>> On Oct 23, 2009, at 8:41 AM, Achim Mueller wrote:
>>>
>>>> Hi folks,
>>>>
>>>> Mac OS, Snow Leopard, macports, current snapshot:
>>>>
>>>> Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
>>>> -DDOCDIR='"/Users/ace/local/share/doc/gnubg/"'
>>>> -DDATADIR='"/Users/ace/local/share"'
>>>> -DPKGDATADIR='"/Users/ace/local/share/gnubg"'   -O3 -msse -MT sound.o
>>>> -MD -MP -MF .deps/sound.Tpo -c -o sound.o sound.c
>>>> sound.c: In function 'Thread_PlaySound_QuickTime':
>>>> sound.c:74: error: 'Movie' undeclared (first use in this function)
>>>> sound.c:74: error: (Each undeclared identifier is reported only once
>>>> sound.c:74: error: for each function it appears in.)
>>>> sound.c:74: error: 'movie' undeclared (first use in this function)
>>>> sound.c:74: error: expected expression before ')' token
>>>> sound.c: In function 'PlaySound_QuickTime':
>>>> sound.c:125: error: 'Movie' undeclared (first use in this function)
>>>> sound.c:125: error: 'movie' undeclared (first use in this function)
>>>> sound.c:125: error: expected expression before ')' token
>>>> sound.c:134: warning: assignment makes pointer from integer without
>>>> a cast
>>>> make[2]: *** [sound.o] Error 1
>>>> make[1]: *** [install-recursive] Error 1
>>>> make: *** [install] Error 2
>>>>
>>>> What is missing?
>>>>
>>>> Ciao
>>>>
>>>> Achim
>>>>
>>>>
>>>> _______________________________________________
>>>> Bug-gnubg mailing list
>>>> Bug-gnubg@...
>>>> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>>>
>>>
>>>
>>> _______________________________________________
>>> Bug-gnubg mailing list
>>> Bug-gnubg@...
>>> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>>>
>>
>
>
>
>
> _______________________________________________
> Bug-gnubg mailing list
> Bug-gnubg@...
> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>




_______________________________________________
Bug-gnubg mailing list
Bug-gnubg@...
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Re: Compile error: sound.c

by Michael Petch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Okay, I have had caffeine and here is the answer to our question (it was ina
macports thread):

"Quicktime/mov file support is removed due to Carbon QuickTime framework
being 32 bit only. As far as I can gather the only way to fix this without
forcing a 32 bit compile of the library (which would be useless for linking
other 64 bit ports against) would be to re-write the Mac OS specific parts
of the library to use the Cocoa x64 framework equivalents (if possible)."

It makes me wonder if we could build libcanberra with OS/X macports and use
that to play sounds, allowing us to remove all the Apple OS/X specific sound
code. The other option is the check for 64 Bit OS/X and put ifdefs in for
the Cocoa x64 format. Maybe for the time being just turn sound off?

Clearly this is Snow Leopard and x64 related.




_______________________________________________
Bug-gnubg mailing list
Bug-gnubg@...
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Parent Message unknown Re: Compile error: sound.c

by mailinglists-16 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 23, 2009 at 3:54 PM, Michael Petch <mpetch@...> wrote:
>
> I have access to a SL machine at a client but won't be able to look at this
> until the weekend. If Libcanberra is in Macports and It works I'd like to
> remove the Quicktime support.

 It is, I'm just compiling it.

Ciao

Achim

PS. Take your time, I probably won't be able to work on it before Sunday night.


_______________________________________________
Bug-gnubg mailing list
Bug-gnubg@...
http://lists.gnu.org/mailman/listinfo/bug-gnubg