Re: [PD] aka.wiiremote object for os x
Here's what needs to be done: http://lists.puredata.info/pipermail/pd-list/2008-03/060646.html Basically, the Bluetooth API needs a CFRunLoop to poll for data. Since 'pd' is not a Carbon app, it doesn't have a CFRunLoop. That means you have to set one up, then it'll poll the bluetooth stuff for you. .hc On Jan 20, 2009, at 7:35 AM, Florian Krebs wrote: I would like to work on akawiiremote a bit, because it seems to be the only external for wiimote and pd on mac. Can somebody, who has successfully compiled it yet, tell which version of Pd he/she has used ? I still haven't managed to compile it with neither pd- extended-0.40-3, nor pd-0.42-3, and would like to try it with another build system. Thanks, Florian There is no way to peace, peace is the way. -A.J. Muste ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] aka.wiiremote object for os x
I would like to work on akawiiremote a bit, because it seems to be the only external for wiimote and pd on mac. Can somebody, who has successfully compiled it yet, tell which version of Pd he/she has used ? I still haven't managed to compile it with neither pd-extended-0.40-3, nor pd-0.42-3, and would like to try it with another build system. Thanks, Florian ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] aka.wiiremote object for os x
Hi Johannes, Hi Florian I tested to compile akawiiremote on OS X and it actually worked. But : i get only output of the buttons, cannot set the LED, and no motion- data... if anyone gets any further with it, i would be interested Bye Luigi Am 20.01.2009 um 14:11 schrieb IOhannes m zmoelnig: Florian Krebs wrote: I would like to work on akawiiremote a bit, because it seems to be the only external for wiimote and pd on mac. Can somebody, who has successfully compiled it yet, tell which version of Pd he/she has used ? I still haven't managed to compile it with neither pd- extended-0.40-3, nor pd-0.42-3, and would like to try it with another build system. Thanks, attached is a standalone makefile that at least compiles here. it is derived from the build-process of pd-extended (which had no problem here, but i have checked out the entire trunk) fgmadsr IOhannes makefile.zip___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] aka.wiiremote object for os x
Hello, I was trying a lot, but unfortunately I still don't get it compiled/linked... i assume you got the aka.wiiremote sources via svn from https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/io/aka.wiiremote yes I do. by checkout the entire 'externals' branch i meant, you should checkout the entire externals directory: $ svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/ then repeat the steps (aka.wiiremote has no real makefile, instead it's make instructions are within https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/Makefile) I did, but when calling the makefile I get: make: *** No rule to make target `pre_all_', needed by `all'. Stop. try to compile another external (that works) and see which exact compiler/linker commands are called. I tried a modified makefile from tm's iemlib (see attachement) and I get: Macintosh-2:aka.wiiremote-2008-07-22$ make :: aka.wiiremote.o wiiremote.o cc -bundle -bundle_loader /Applications/Pd-extended.app/Contents/Resources/bin/pd -o akawiiremote.pd_darwin *.o -ldl -lm -lpthread Undefined symbols: _CFRelease, referenced from: _wiiremote_search in wiiremote.o _IOBluetoothDeviceInquiryDelete, referenced from: _wiiremote_search in wiiremote.o _wiiremote_stopsearch in wiiremote.o (...) ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [all] Error 1 I don't find any mentioning of the wiiremote.h header file in the makefile. Maybe I have to include it somehow in the makefile ? Thanks, Greetings Florian Makefile Description: Binary data ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] aka.wiiremote object for os x
On Sun, 2009-01-18 at 12:00 +, Florian Krebs wrote: Hello, I was trying a lot, but unfortunately I still don't get it compiled/linked... i assume you got the aka.wiiremote sources via svn from https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/io/aka.wiiremote yes I do. by checkout the entire 'externals' branch i meant, you should checkout the entire externals directory: $ svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/ then repeat the steps (aka.wiiremote has no real makefile, instead it's make instructions are within https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/Makefile) I did, but when calling the makefile I get: make: *** No rule to make target `pre_all_', needed by `all'. Stop. try to compile another external (that works) and see which exact compiler/linker commands are called. I tried a modified makefile from tm's iemlib (see attachement) and I get: Macintosh-2:aka.wiiremote-2008-07-22$ make :: aka.wiiremote.o wiiremote.o cc -bundle -bundle_loader /Applications/Pd-extended.app/Contents/Resources/bin/pd -o akawiiremote.pd_darwin *.o -ldl -lm -lpthread Undefined symbols: _CFRelease, referenced from: _wiiremote_search in wiiremote.o _IOBluetoothDeviceInquiryDelete, referenced from: _wiiremote_search in wiiremote.o _wiiremote_stopsearch in wiiremote.o (...) ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [all] Error 1 I don't find any mentioning of the wiiremote.h header file in the makefile. Maybe I have to include it somehow in the makefile ? Thanks, i am not really familiar with the extended build system, but probably you need to check out the the scripts folder as well in order to use the extended makefiles: svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/scripts/ please someone confirm or negate that! roman ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] aka.wiiremote object for os x
On Jan 18, 2009, at 6:14 AM, Roman Haefeli wrote: On Sun, 2009-01-18 at 12:00 +, Florian Krebs wrote: Hello, I was trying a lot, but unfortunately I still don't get it compiled/linked... i assume you got the aka.wiiremote sources via svn from https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/io/aka.wiiremote yes I do. by checkout the entire 'externals' branch i meant, you should checkout the entire externals directory: $ svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/ then repeat the steps (aka.wiiremote has no real makefile, instead it's make instructions are within https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/Makefile) I did, but when calling the makefile I get: make: *** No rule to make target `pre_all_', needed by `all'. Stop. try to compile another external (that works) and see which exact compiler/linker commands are called. I tried a modified makefile from tm's iemlib (see attachement) and I get: Macintosh-2:aka.wiiremote-2008-07-22$ make :: aka.wiiremote.o wiiremote.o cc -bundle -bundle_loader /Applications/Pd-extended.app/Contents/Resources/bin/pd -o akawiiremote.pd_darwin *.o -ldl -lm -lpthread Undefined symbols: _CFRelease, referenced from: _wiiremote_search in wiiremote.o _IOBluetoothDeviceInquiryDelete, referenced from: _wiiremote_search in wiiremote.o _wiiremote_stopsearch in wiiremote.o (...) ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [all] Error 1 I don't find any mentioning of the wiiremote.h header file in the makefile. Maybe I have to include it somehow in the makefile ? Thanks, i am not really familiar with the extended build system, but probably you need to check out the the scripts folder as well in order to use the extended makefiles: svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/scripts/ please someone confirm or negate that! roman With Pd-extended, trunk is the base of the source code, so the easiest thing to do is check out trunk or a pd-extended branch. svn co http://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk svn co http://pure-data.svn.sourceforge.net/svnroot/pure-data/branches/pd-extended/v0-40/ .hc ___ Telefonate ohne weitere Kosten vom PC zum PC: http:// messenger.yahoo.de ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list I spent 33 years and four months in active military service and during that period I spent most of my time as a high class muscle man for Big Business, for Wall Street and the bankers. - General Smedley Butler ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] aka.wiiremote object for os x
On Jan 18, 2009, at 6:14 AM, Roman Haefeli wrote: On Sun, 2009-01-18 at 12:00 +, Florian Krebs wrote: Hello, I was trying a lot, but unfortunately I still don't get it compiled/linked... i assume you got the aka.wiiremote sources via svn from https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/io/aka.wiiremote yes I do. by checkout the entire 'externals' branch i meant, you should checkout the entire externals directory: $ svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/ then repeat the steps (aka.wiiremote has no real makefile, instead it's make instructions are within https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/Makefile) I did, but when calling the makefile I get: make: *** No rule to make target `pre_all_', needed by `all'. Stop. try to compile another external (that works) and see which exact compiler/linker commands are called. I tried a modified makefile from tm's iemlib (see attachement) and I get: Macintosh-2:aka.wiiremote-2008-07-22$ make :: aka.wiiremote.o wiiremote.o cc -bundle -bundle_loader /Applications/Pd-extended.app/Contents/Resources/bin/pd -o akawiiremote.pd_darwin *.o -ldl -lm -lpthread Undefined symbols: _CFRelease, referenced from: _wiiremote_search in wiiremote.o _IOBluetoothDeviceInquiryDelete, referenced from: _wiiremote_search in wiiremote.o _wiiremote_stopsearch in wiiremote.o (...) ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [all] Error 1 I don't find any mentioning of the wiiremote.h header file in the makefile. Maybe I have to include it somehow in the makefile ? Thanks, i am not really familiar with the extended build system, but probably you need to check out the the scripts folder as well in order to use the extended makefiles: svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/scripts/ please someone confirm or negate that! roman With Pd-extended, trunk is the base of the source code, so the easiest thing to do is check out trunk or a pd-extended branch. svn co http://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk svn co http://pure-data.svn.sourceforge.net/svnroot/pure-data/branches/pd-extended/v0-40/ Oops, but I forgot to add, that external barely works, I think you have to poll it get data out if it. It is close to being fully functional, it just needs someone to figure out the apple carbon CFRunLoop stuff. On the other hand, the GNU/Linux cwiid library and external works really well with 6 wiiremotes connected. .hc ___ Telefonate ohne weitere Kosten vom PC zum PC: http:// messenger.yahoo.de ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list I spent 33 years and four months in active military service and during that period I spent most of my time as a high class muscle man for Big Business, for Wall Street and the bankers. - General Smedley Butler ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] aka.wiiremote object for os x
Florian Krebs wrote: Hi, I am trying to get the aka.wiiremote working on osx. I downloaded the files from svn (aka.wiiremote-2008-07-22) at http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/io/aka.wiiremote/ I tested the binary akawiiremote.pd_darwin (don't know at the moment where I got it from) and I could connect, but could not get motion sensor data. buttons were recognized. So I wanted to try compiling myself: There is a makefile in the svn for aka.wiiremote, but for me it makes no real sense (or maybe i don't understand it). in the folder (svn) there are the following files: aka.wiiremote.c wiiremote.c wiiremote.h Makefile I tried with make, but i get: make -C /Users/Floriano/aka.wiiremote-original-2008-07-22- aka.wiiremote-original-2008-07-22- make[1]: *** No rule to make target `aka.wiiremote-original-2008-07-22-'. Stop. I checked the makefile, there is no rule for making the target, there is just another make command in the makefile. Does this make sense ? Doesn't this create an endless loop of calling the makefile ? ah i think you are experiencing the joys of pd-extended. the solution is simple: just checkout the entire externals branch and redo what you have done. there are certainly simpler ways, e.g. copy an existing Makefile for multi-source libraries (e.g. one of tm's iemlib libraries) and adapt it to your needs. gmadsr IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] aka.wiiremote object for os x
Thanks for your answer. ah i think you are experiencing the joys of pd-extended. the solution is simple: just checkout the entire externals branch and redo what you have done. You are right I do use Pd version 0.40.3-extended... What do you mean with checkout the eternals branch ? I renamed the directory Contents/Resources/extra to extra_temp, but nothing changed. there are certainly simpler ways, e.g. copy an existing Makefile for multi-source libraries (e.g. one of tm's iemlib libraries) and adapt it to your needs. Unfortunately I don't know so much about Makefiles. But shouldn't this basically work with : akawiiremote.pd_darwin: aka.wiiremote.c wiiremote.c wiiremote.h gcc -o akawiiremote.pd_darwin aka.wiiremote.c wiiremote.c wiiremote.h (but unfortunately it doesn't) Thanx, Florian ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] aka.wiiremote object for os x
Florian Krebs wrote: Thanks for your answer. ah i think you are experiencing the joys of pd-extended. the solution is simple: just checkout the entire externals branch and redo what you have done. You are right I do use Pd version 0.40.3-extended... that's not what i meant. i was referring to Pd-extended's build system (rather than the binaries), which sometimes makes it awkward to compile an external. What do you mean with checkout the eternals branch ? I renamed the directory Contents/Resources/extra to extra_temp, but nothing changed. i assume you got the aka.wiiremote sources via svn from https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/io/aka.wiiremote by checkout the entire 'externals' branch i meant, you should checkout the entire externals directory: $ svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/ then repeat the steps (aka.wiiremote has no real makefile, instead it's make instructions are within https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk/externals/Makefile) fgamdr IOhannes there are certainly simpler ways, e.g. copy an existing Makefile for multi-source libraries (e.g. one of tm's iemlib libraries) and adapt it to your needs. Unfortunately I don't know so much about Makefiles. But shouldn't this basically work with : akawiiremote.pd_darwin: aka.wiiremote.c wiiremote.c wiiremote.h gcc -o akawiiremote.pd_darwin aka.wiiremote.c wiiremote.c wiiremote.h no; you are still producing an executable rather than a library. try to compile another external (that works) and see which exact compiler/linker commands are called. fgamfrt IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list