Re: [PD] howto get pool
On Fri, 27 Aug 2010, Thomas Grill wrote: Is the only possibility, to declare the ::new operators as static inline or so, in the *.h files ? (I think I did that for a while in GF, but I removed those completely several years ago because I wasn't really using them anymore) I ithink using an anonymous namespace (a more recent C++ language feature) would be possible... The anonymous namespace feature is there because of the 'static' mess in C++. This mess comes from the expansion of the original meanings of 'static' in conflicting ways (this comes from the C language's double meaning of 'static' in the first place). So really, anonymous namespaces are only needed when you need to hide symbols in this compilation so that the linker doesn't see it, but in a context where the 'static' word already means «this is a class variable instead of an object variable» or «this is a class method instead of an object method». Incidentally it can also be used as a shortcut for not having to write static in front of 242 different names. I just wrote this because I thought you could say static in front of a global operator new, but one can't, so, yes, it has to be using anonymous namespaces... however, using namespaces in flext would make flext-based projects backwards incompatible. But do people use flext as .so file ? if not, then any old code will run with an old version of flext while a new one gets installed. I say that because the only change would be to make the global 'operator new' a part of the .h instead of the .a ... Alternately, I suppose you can achieve a lot of the same effect by putting operator new in a common superclass, but it depends on what you use 'operator new' for... _ _ __ ___ _ _ _ ... | Mathieu Bouchard on the road (in Îles-de-la-Madeleine, QC). ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
On Tue, 24 Aug 2010, IOhannes m zmoelnig wrote: have you tried gem-0.92 ? i think there was some conflict with flext and Gem both overriding new, at least Gem behaves now better. Is there any way to make that linkage more local on Linux ? Is the only possibility, to declare the ::new operators as static inline or so, in the *.h files ? (I think I did that for a while in GF, but I removed those completely several years ago because I wasn't really using them anymore) _ _ __ ___ _ _ _ ... | Mathieu Bouchard on the road (in Îles-de-la-Madeleine, QC). ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
On Fri, 27 Aug 2010, Mathieu Bouchard wrote: Is there any way to make that linkage more local on Linux ? Is the only possibility, to declare the ::new operators as static inline or so, in the *.h files ? (I think I did that for a while in GF, but I removed those completely several years ago because I wasn't really using them anymore) Actually, the options for that are in the loading of the .so files, which is in Pd's s_loader.c, and that uses the RTLD_GLOBAL option in the dlopen() command, and that is required so that GEM-PDP, GF-GEM and GF-PDP connectors work (as they are implemented now). And the platform-dependency of that, is explaining the weird hacks we had to do (Patrice Colet and I), to make GF-GEM work properly on Windows, because the Windows code probably doesn't use an equivalent of RTLD_GLOBAL, and/or something to do with __declspec(dllexport) and __declspec(dllimport)... does anyone compile third-party GEM externals in a way not linked to Gem.DLL ? Because that would be an example for how to improve that aspect of GF... _ _ __ ___ _ _ _ ... | Mathieu Bouchard on the road (in Îles-de-la-Madeleine, QC). ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
Am 27.08.2010 um 17:08 schrieb Mathieu Bouchard: On Tue, 24 Aug 2010, IOhannes m zmoelnig wrote: have you tried gem-0.92 ? i think there was some conflict with flext and Gem both overriding new, at least Gem behaves now better. Is there any way to make that linkage more local on Linux ? Is the only possibility, to declare the ::new operators as static inline or so, in the *.h files ? (I think I did that for a while in GF, but I removed those completely several years ago because I wasn't really using them anymore) I ithink using an anonymous namespace (a more recent C++ language feature) would be possible... however, using namespaces in flext would make flext-based projects backwards incompatible. In general it makes a lot of sense though and i have been thinking about it for years or so. gr~~~ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
So I should add that line to the config file and then compile flext, and then compile pool. Is that the procedure? Wish me luck. ;) João Martins No dia 24 de Agosto de 2010 23:07, Thomas Grill g...@g.org escreveu: Am 24.08.2010 um 23:55 schrieb Thomas Grill: In your flext/buildsys/config-lnx-pd.txt file, there is a line beginning with UFLAGS += Try adding -DFLEXT_CMEM at the end of this line. Sorry, it's actually -DFLEXT_USE_CMEM gr~~~ -- João Pedro Martins música . web design http://joaomartins.entropiadesign.org mail: joaomart...@mac.com skype: joaopsmartins ichat: joaomartins msn: joaopsmartins ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
Am 25.08.2010 um 15:40 schrieb João Martins: So I should add that line to the config file and then compile flext, and then compile pool. Is that the procedure? exactly! There are some docs in the flext distribution (readme.txt, build.txt) with some more information about the procedure. gr~~~ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
On 2010-08-23 22:10, João Martins wrote: Hi, S. Jensen, I'm looking for a way to get pool working on a Linux distribution (Ubuntu or Ubuntu Studio are my main goals). I've noticed that you were able to compile your own Pd-extended and were looking to add pool to it. Did you manage to get pool working? Installing it is the easy bit, I guess (I'm having no problems installing externals in Linux, as I have some experience in Pd), but pool that works without any problem in my Mac setup (my main one) appears to be incompatible with Gem on Linux, regardless of GEM version or Linux distro. have you tried gem-0.92 ? i think there was some conflict with flext and Gem both overriding new, at least Gem behaves now better. fgmasdr IOhannes smime.p7s Description: S/MIME Cryptographic Signature ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
I'll try that. Should I try it before or after recompiling everything Flext related (Frank Barknecht suggestion)? Thank you all, João Martins No dia 24 de Agosto de 2010 08:25, IOhannes m zmoelnig zmoel...@iem.atescreveu: On 2010-08-23 22:10, João Martins wrote: Hi, S. Jensen, I'm looking for a way to get pool working on a Linux distribution (Ubuntu or Ubuntu Studio are my main goals). I've noticed that you were able to compile your own Pd-extended and were looking to add pool to it. Did you manage to get pool working? Installing it is the easy bit, I guess (I'm having no problems installing externals in Linux, as I have some experience in Pd), but pool that works without any problem in my Mac setup (my main one) appears to be incompatible with Gem on Linux, regardless of GEM version or Linux distro. have you tried gem-0.92 ? i think there was some conflict with flext and Gem both overriding new, at least Gem behaves now better. fgmasdr IOhannes -- João Pedro Martins música . web design http://joaomartins.entropiadesign.org mail: joaomart...@mac.com skype: joaopsmartins ichat: joaomartins msn: joaopsmartins ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
Oh yes, i remember that issue now... there's a flag called FLEXT_CMEM which inhibits overriding the new/delete operators. To my knowledge the flag is set by default for versions within the last 3 years or so. I'll check later to be sure. gr~~~ Am 24.08.2010 um 09:25 schrieb IOhannes m zmoelnig: On 2010-08-23 22:10, João Martins wrote: Hi, S. Jensen, I'm looking for a way to get pool working on a Linux distribution (Ubuntu or Ubuntu Studio are my main goals). I've noticed that you were able to compile your own Pd-extended and were looking to add pool to it. Did you manage to get pool working? Installing it is the easy bit, I guess (I'm having no problems installing externals in Linux, as I have some experience in Pd), but pool that works without any problem in my Mac setup (my main one) appears to be incompatible with Gem on Linux, regardless of GEM version or Linux distro. have you tried gem-0.92 ? i think there was some conflict with flext and Gem both overriding new, at least Gem behaves now better. fgmasdr IOhannes ___ 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
Re: [PD] howto get pool
Would this issue be exclusive of Linux installations? One of my main problems now is not understanding the portability issues. I really thank you all for your time and help. João Martins No dia 24 de Agosto de 2010 18:23, Thomas Grill g...@g.org escreveu: Oh yes, i remember that issue now... there's a flag called FLEXT_CMEM which inhibits overriding the new/delete operators. To my knowledge the flag is set by default for versions within the last 3 years or so. I'll check later to be sure. gr~~~ Am 24.08.2010 um 09:25 schrieb IOhannes m zmoelnig: On 2010-08-23 22:10, João Martins wrote: Hi, S. Jensen, I'm looking for a way to get pool working on a Linux distribution (Ubuntu or Ubuntu Studio are my main goals). I've noticed that you were able to compile your own Pd-extended and were looking to add pool to it. Did you manage to get pool working? Installing it is the easy bit, I guess (I'm having no problems installing externals in Linux, as I have some experience in Pd), but pool that works without any problem in my Mac setup (my main one) appears to be incompatible with Gem on Linux, regardless of GEM version or Linux distro. have you tried gem-0.92 ? i think there was some conflict with flext and Gem both overriding new, at least Gem behaves now better. fgmasdr IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- João Pedro Martins música . web design http://joaomartins.entropiadesign.org mail: joaomart...@mac.com skype: joaopsmartins ichat: joaomartins msn: joaopsmartins ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
Am 24.08.2010 um 19:31 schrieb João Martins: Would this issue be exclusive of Linux installations? One of my main problems now is not understanding the portability issues. I'm not sure about the exclusiveness, but different OSs handle combined namespaces of dynamic libraries in different ways. In your flext/buildsys/config-lnx-pd.txt file, there is a line beginning with UFLAGS += Try adding -DFLEXT_CMEM at the end of this line. gr~~~ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
Am 24.08.2010 um 23:55 schrieb Thomas Grill: In your flext/buildsys/config-lnx-pd.txt file, there is a line beginning with UFLAGS += Try adding -DFLEXT_CMEM at the end of this line. Sorry, it's actually -DFLEXT_USE_CMEM gr~~~ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
Hi,... Am Mittwoch, den 28.07.2010, 13:36 -0400 schrieb Hans-Christoph Steiner: own Pd-extended. It would be great if you could document how you did it on the pure-data wiki. You could create a new page off of this one: Done. I can expand it with setting up JACK together with Pulseaudio on Fedora 13, if someone is interested. (This setup works much better, as using padsp or pasuspender.) best regards stefan -- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
On Jul 28, 2010, at 4:59 PM, Stefan Jensen wrote: Hi,... Am Mittwoch, den 28.07.2010, 13:36 -0400 schrieb Hans-Christoph Steiner: Welcome to Pd! You've already jumped quite a hurdle by building your Thank you, I appreciate it. own Pd-extended. It would be great if you could document how you did it on the pure-data wiki. You could create a new page off of this one: Sure, I'll do it. I just want to wait til i get all that stuff i need together and working. Currently only Pool is missing. Than I'll try to make a fedora rpm package for the hole thing. Mainly to make my own life easier, because with Fedora changes happens very fast. If it worked out ok, i made it available for all, of course. I don't know, why ccrma don't make a x86_64 Package. So there might be some issue with internal functions of pd maybe. Anyway, I'll see how far i come. Currently i tried some examples and it seems that all is working like expected. But I'm a noop pd-user, so i can not test the hole range of abilities. best regards Stefan If you are working on packaging for Fedora, it would be super-useful if you could make the Fedora packaging for the library template. That is the future for how Pd-extended will be packaged and distributed, and there are already many libraries that are based on that template. http://puredata.info/docs/developer/MakefileTemplate .hc Access to computers should be unlimited and total. - the hacker ethic ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto get pool
Welcome to Pd! You've already jumped quite a hurdle by building your own Pd-extended. It would be great if you could document how you did it on the pure-data wiki. You could create a new page off of this one: .hc On Wed, 2010-07-28 at 18:42 +0200, Stefan Jensen wrote: Hi,... first thing: i'm very very new to pd, so be nice to a first time user, please. ;-) I've got pd-extended compiling and working fine on Fedora13_x86_64. (I use rsync -av --delete rsync://128.238.56.50/distros/pd-extended to get the tree.) Now i'm missing pool. Where can i get it and how can i include it in the above tree, so that it is build, when i rebuild pd? Thank you very much. best regards Stefan -- ___ 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
Re: [PD] howto get pool
Oops, forgot the URL: http://puredata.info/docs/developer/64BitLinux .hc On Wed, 2010-07-28 at 13:36 -0400, Hans-Christoph Steiner wrote: Welcome to Pd! You've already jumped quite a hurdle by building your own Pd-extended. It would be great if you could document how you did it on the pure-data wiki. You could create a new page off of this one: .hc On Wed, 2010-07-28 at 18:42 +0200, Stefan Jensen wrote: Hi,... first thing: i'm very very new to pd, so be nice to a first time user, please. ;-) I've got pd-extended compiling and working fine on Fedora13_x86_64. (I use rsync -av --delete rsync://128.238.56.50/distros/pd-extended to get the tree.) Now i'm missing pool. Where can i get it and how can i include it in the above tree, so that it is build, when i rebuild pd? Thank you very much. best regards Stefan -- ___ 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
Re: [PD] howto get pool
Hi,... Am Mittwoch, den 28.07.2010, 13:36 -0400 schrieb Hans-Christoph Steiner: Welcome to Pd! You've already jumped quite a hurdle by building your Thank you, I appreciate it. own Pd-extended. It would be great if you could document how you did it on the pure-data wiki. You could create a new page off of this one: Sure, I'll do it. I just want to wait til i get all that stuff i need together and working. Currently only Pool is missing. Than I'll try to make a fedora rpm package for the hole thing. Mainly to make my own life easier, because with Fedora changes happens very fast. If it worked out ok, i made it available for all, of course. I don't know, why ccrma don't make a x86_64 Package. So there might be some issue with internal functions of pd maybe. Anyway, I'll see how far i come. Currently i tried some examples and it seems that all is working like expected. But I'm a noop pd-user, so i can not test the hole range of abilities. best regards Stefan -- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list