[PD] Problem compiling wiimote external

patrick patrick at 11h11.com
Tue May 8 02:58:38 CEST 2007


attached is the wiimote compiled with 32 bits intel on ubuntu dapper 
downloaded from the author's site 
(http://mikewoz.com/index.php?page=pd-stuff)

could we include wiimote on pd extended?
but this external depends on the CWiid library...

pat



----- Original Message ----- 
From: "Erwan Lerale" <erwan at thiscow.fr>
To: "Erwan Lerale" <erwan at thiscow.fr>
Cc: <pd-list at iem.at>
Sent: Monday, May 07, 2007 1:39 PM
Subject: Re: [PD] Problem compiling wiimote external


> Erwan Lerale wrote:
>> Hello,
>>
>> Getting this on gentoo amd64 with gcc 4.1.1:
>
> hi,
>
> Same result with ubuntu 6.10 32 bits... Did anyone managed to compile
> this external ?
>
> Cheers
> r1
>
>
>>
>> erwan at menhir ~/Desktop/wiimotepd $ make
>> cc -DPD -O2 -funroll-loops -fomit-frame-pointer -W -Wshadow
>> -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch
>> -I/usr/include -o wiimote.o -c wiimote.c
>> wiimote.c: In function 'wiimote_doConnect':
>> wiimote.c:369: error: incompatible type for argument 1 of
>> 'wiimote_connect'
>> wiimote.c:369: warning: passing argument 2 of 'wiimote_connect' from
>> incompatible pointer type
>>
>> The piece of code is here :
>>
>> [...]
>> void wiimote_doConnect(t_wiimote *x, t_symbol *addr)
>> {
>>        unsigned char buf[7];
>>        bdaddr_t bdaddr;
>>
>>        // determine address:
>>        if (addr==gensym("NULL")) bdaddr = (bdaddr_t) *BDADDR_ANY;
>>        else str2ba(addr->s_name, &bdaddr);
>>
>>        // connect:
>>        if (g_wiimoteList[0]==NULL) {
>>                x->wiimote = wiimote_connect(bdaddr, &wiimote_callback_0);
>>                x->wiimoteID = 0;
>>                g_wiimoteList[0] = x;
>>        }
>>        else if
>> [...]
>>
>> Really don't know how to fix that... Anyone can help ?
>>
>> Thanks a lot
>> r1
>>
>
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wiimote.pd_linux
Type: application/octet-stream
Size: 29640 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20070507/4c11f60f/attachment.obj>


More information about the Pd-list mailing list