[PD] wiiremote for Mac OS X

Hans-Christoph Steiner hans at eds.org
Wed May 23 04:54:49 CEST 2007


My guess is that I missed something in the port.  There are a ton of  
warnings, maybe one of them holds the key to the problem.  Here's  
what I get when compiling:

cc -DPD -O2 -I /Users/pd/auto-build/pd-extended/pd/src -Wall -W -ggdb  
-I/sw/include -DMACOSX -DUNIX -Dunix -o "aka.wiiremote.o" -c  
"aka.wiiremote.c"
aka.wiiremote.c:43: warning: no semicolon at end of struct or union
aka.wiiremote.c: In function 'akawiiremote_foundFunc':
aka.wiiremote.c:275: warning: unused parameter 'x'
aka.wiiremote.c: In function 'akawiiremote_motionsensor':
aka.wiiremote.c:299: warning: unused variable 'status'
aka.wiiremote.c: In function 'akawiiremote_irsensor':
aka.wiiremote.c:309: warning: unused variable 'status'
aka.wiiremote.c: In function 'akawiiremote_expansion':
aka.wiiremote.c:319: warning: unused variable 'status'
aka.wiiremote.c: In function 'akawiiremote_vibration':
aka.wiiremote.c:329: warning: unused variable 'status'
aka.wiiremote.c: In function 'akawiiremote_led':
aka.wiiremote.c:339: warning: unused variable 'status'
aka.wiiremote.c: In function 'akawiiremote_assist':
aka.wiiremote.c:490: warning: unused parameter 'x'
aka.wiiremote.c:490: warning: unused parameter 'b'
aka.wiiremote.c:490: warning: unused parameter 'm'
aka.wiiremote.c: In function 'akawiiremote_new':
aka.wiiremote.c:510: warning: unused parameter 's'
cc -DPD -O2 -I/Users/pd/auto-build/pd-extended/pd/src -Wall -W -ggdb - 
I/sw/include -DMACOSX -DUNIX -Dunix -o "wiiremote.o" -c "wiiremote.c"
wiiremote.c: In function 'myFoundFunc':
wiiremote.c:234: warning: unused parameter 'inquiry'
wiiremote.c: In function 'myUpdatedFunc':
wiiremote.c:239: warning: unused parameter 'inquiry'
wiiremote.c:239: warning: unused parameter 'devicesRemaining'
wiiremote.c: In function 'myCompleteFunc':
wiiremote.c:246: warning: unused variable 'ret'
wiiremote.c:244: warning: unused parameter 'inquiry'
wiiremote.c: In function 'wiiremote_search':
wiiremote.c:282: warning:  
'IOBluetoothDeviceInquiryCreateWithCallbackRefCon' is deprecated  
(declared at /System/Library/Frameworks/IOBluetooth.framework/Headers/ 
IOBluetoothUserLib.h:2843)
wiiremote.c:282: warning:  
'IOBluetoothDeviceInquiryCreateWithCallbackRefCon' is unavailable  
(declared at /System/Library/Frameworks/IOBluetooth.framework/Headers/ 
IOBluetoothUserLib.h:2843)
wiiremote.c:283: warning:  
'IOBluetoothDeviceInquirySetDeviceFoundCallback' is deprecated  
(declared at /System/Library/Frameworks/IOBluetooth.framework/Headers/ 
IOBluetoothUserLib.h:2894)
wiiremote.c:283: warning:  
'IOBluetoothDeviceInquirySetDeviceFoundCallback' is unavailable  
(declared at /System/Library/Frameworks/IOBluetooth.framework/Headers/ 
IOBluetoothUserLib.h:2894)
wiiremote.c:284: warning:  
'IOBluetoothDeviceInquirySetDeviceNameUpdatedCallback' is deprecated  
(declared at /System/Library/Frameworks/IOBluetooth.framework/Headers/ 
IOBluetoothUserLib.h:2914)
wiiremote.c:284: warning:  
'IOBluetoothDeviceInquirySetDeviceNameUpdatedCallback' is unavailable  
(declared at /System/Library/Frameworks/IOBluetooth.framework/Headers/ 
IOBluetoothUserLib.h:2914)
wiiremote.c:285: warning:  
'IOBluetoothDeviceInquirySetCompleteCallback' is deprecated (declared  
at /System/Library/Frameworks/IOBluetooth.framework/Headers/ 
IOBluetoothUserLib.h:2924)
wiiremote.c:285: warning:  
'IOBluetoothDeviceInquirySetCompleteCallback' is unavailable  
(declared at /System/Library/Frameworks/IOBluetooth.framework/Headers/ 
IOBluetoothUserLib.h:2924)
wiiremote.c:291: warning: 'IOBluetoothDeviceInquiryStart' is  
deprecated (declared at /System/Library/Frameworks/ 
IOBluetooth.framework/Headers/IOBluetoothUserLib.h:2864)
wiiremote.c:291: warning: 'IOBluetoothDeviceInquiryStart' is  
unavailable (declared at /System/Library/Frameworks/ 
IOBluetooth.framework/Headers/IOBluetoothUserLib.h:2864)
wiiremote.c:294: warning: 'IOBluetoothDeviceInquiryDelete' is  
deprecated (declared at /System/Library/Frameworks/ 
IOBluetooth.framework/Headers/IOBluetoothUserLib.h:2854)
wiiremote.c:294: warning: 'IOBluetoothDeviceInquiryDelete' is  
unavailable (declared at /System/Library/Frameworks/ 
IOBluetooth.framework/Headers/IOBluetoothUserLib.h:2854)
wiiremote.c: In function 'wiiremote_stopsearch':
wiiremote.c:310: warning: 'IOBluetoothDeviceInquiryStop' is  
deprecated (declared at /System/Library/Frameworks/ 
IOBluetooth.framework/Headers/IOBluetoothUserLib.h:2874)
wiiremote.c:310: warning: 'IOBluetoothDeviceInquiryStop' is  
unavailable (declared at /System/Library/Frameworks/ 
IOBluetooth.framework/Headers/IOBluetoothUserLib.h:2874)
wiiremote.c:317: warning: 'IOBluetoothDeviceInquiryDelete' is  
deprecated (declared at /System/Library/Frameworks/ 
IOBluetooth.framework/Headers/IOBluetoothUserLib.h:2854)
wiiremote.c:317: warning: 'IOBluetoothDeviceInquiryDelete' is  
unavailable (declared at /System/Library/Frameworks/ 
IOBluetooth.framework/Headers/IOBluetoothUserLib.h:2854)
wiiremote.c: In function 'handleRAMData':
wiiremote.c:345: warning: unused parameter 'dataLength'
wiiremote.c: In function 'handleStatusReport':
wiiremote.c:417: warning: unused parameter 'dataLength'
wiiremote.c: In function 'handleExtensionData':
wiiremote.c:470: warning: unused parameter 'dataLength'
wiiremote.c: In function 'handleIRData':
wiiremote.c:541: warning: unused parameter 'dataLength'
wiiremote.c: In function 'myDataListener':
wiiremote.c:699: warning: unused parameter 'channel'
wiiremote.c: In function 'myDisconnectedFunc':
wiiremote.c:752: warning: unused parameter 'inRef'
wiiremote.c: In function 'wiiremote_disconnect':
wiiremote.c:857: warning: 'i' is used uninitialized in this function
cc  -bundle -bundle_loader /Users/pd/auto-build/pd-extended/pd/bin/pd  
-L/sw/lib -o wiiremote.pd_darwin \
         aka.wiiremote.o wiiremote.o -weak_framework IOBluetooth \
         -weak_framework CoreFoundation


.hc

On May 18, 2007, at 5:08 AM, Matthias Neuenhofer wrote:

> This is the Mac Intel 10.4 i got build.
> <wiiremote.pd_darwin.zip>
> The object create but receive no data from the wiiremote.
> starting the metro returns 0 at outlet 2 and 16 16 16 0 at outlet 4
> Baterylevel, ledstatus and expansionstatus all 0
>
> any idea??
>
> mn
>
> Am 17.05.2007 um 22:44 schrieb Hans-Christoph Steiner:
>
>>
>> On May 17, 2007, at 2:42 AM, Maik Hester wrote:
>>
>>> Hans-Christoph Steiner schrieb:
>>>> I just merged in aka's most recent changes and got it building.
>>>> I  have neither bluetooth nor a wiiremote, so it up to y'all to
>>>> figure  out if it actually works:
>>>>
>>>> http://idmi.poly.edu/pdlab/wiiremote.pd_darwin-PowerPC.zip
>>>>
>>>> I'll try to put out a Mac/Intel version tomorrow if there is
>>>> interest.
>>>>
>>>> .hc
>>> Since I have unsucsessfully tried to get wiiremote.pd_darwin
>>> running on an Intel Mac, this would be great.
>>
>> Here's an older binary, give it a shot:
>>
>>
>> Otherwise, wiiremote should be in the Pd-0.40.2-extended auto-builds
>> as of tomorrow.  It'll be in the 'io' library, so use [io/wiiremote].
>>
>> .hc
>>
>>>
>>> Thanks, Maik.




------------------------------------------------------------------------ 
----

                             kill your television






More information about the Pd-list mailing list