Re: [PD] MinGW + Eclipse + MSWIN helloworld
Hey Luca, Thanks for troubleshooting this. I renamed $(PROGRAMFILES) to $ (ProgramFiles) in the template Makefile, following your second suggestion. That seems to be the best solution, sound good to you? http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/template/Makefile?r1=15153&r2=15164 .hc On Jul 18, 2011, at 6:12 AM, luca paganotti wrote: Hi Hans, the first option of setting environment/build variables has these effects: Defining build variable PROGRAMFILES inside eclipse doesn't work. It works if I change $(PROGRAMFILES) to $(ProgramFiles) in the make file. Obviously it works also if I define PROGRAMFILES in the mingw block of the makefile. It works defining PROGRAMFILES=${ProgramFiles} in eclipse project preferences/C/C++ Build/Environment.In mingw works as before. For the second option you gave changing PD_PATH = $(shell cd "$(PROGRAMFILES)"/pd && pwd) to PD_PATH ?= $(shell cd "$(PROGRAMFILES)"/pd && pwd) works in eclipse defining an environment variable inside project preferences/C/C++ Build/Environment as PD_PATH = ${ProgramFiles}/pd. And it works too running make PD_PATH=/c/Programmi/pd from the mingw shell. Many thanks. Ciao On Fri, Jul 15, 2011 at 5:47 PM, Hans-Christoph Steiner wrote: Arg, that's really annoying. Eclipse seems to strip the ProgramFiles env var from the environment when it runs the build. What if you set the ProgramFiles variable in Eclipse? Another option might be that we change the PD_PATH definition to be assigned with ?= then it can be overridden by setting an env var PD_PATH. This should currently work in Eclipse and the cmd line: make PD_PATH=/c/programmi/pd showsetup .hc On Jul 15, 2011, at 11:40 AM, luca paganotti wrote: Hi Hans running 'make showsetup' from eclipse gives: Build of configuration Default for project mycobject mingw32-make showsetup /usr/bin/sh: line 0: cd: /pd: No such file or directory /usr/bin/sh: line 0: cd: /pd: No such file or directory /usr/bin/sh: line 0: cd: /pd: No such file or directory /usr/bin/sh: line 0: cd: /pd: No such file or directory CFLAGS: -IC:/Programmi/pd/src -Wall -W -g -DPD -DVERSION='0.0' -mms- bitfields -O3 -funroll-loops -fomit-frame-pointer LDFLAGS: -s -shared -Wl,--enable-auto-import LIBS: -L/src/ -L/bin/ -lpd -lwsock32 -lkernel32 -luser32 -lgdi32 PD_INCLUDE: /include PD_PATH: objectsdir: /usr/local/lib/pd-externals LIBRARY_NAME: mycobject LIBRARY_VERSION: 0.0 SOURCES: mycobject.c PDOBJECTS: mypdobject.pd ALLSOURCES: mycobject.c UNAME: MINGW32_NT-5.1 CPU: i686 pkglibdir: /usr/local/lib/pd-externals DISTDIR: mycobject-0.0 ORIGDIR: pd-mycobject_0.0 Running from mingw shell gives: Pag@XP-PAG /c/dev/c++/pd-externals/mycobject $ make showsetup CFLAGS: -IC:/Programmi/pd/src -Wall -W -g -DPD -DVERSION='0.0' -mms- bitfields -O 3 -funroll-loops -fomit-frame-pointer LDFLAGS: -s -shared -Wl,--enable-auto-import LIBS: -L/c/Programmi/pd/src/ -L/c/Programmi/pd/bin/ -lpd -lwsock32 -lkernel32 - luser32 -lgdi32 PD_INCLUDE: /c/Programmi/pd/include PD_PATH: /c/Programmi/pd objectsdir: /usr/local/lib/pd-externals LIBRARY_NAME: mycobject LIBRARY_VERSION: 0.0 SOURCES: mycobject.c PDOBJECTS: mypdobject.pd ALLSOURCES: mycobject.c UNAME: MINGW32_NT-5.1 CPU: i686 pkglibdir: /usr/local/lib/pd-externals DISTDIR: mycobject-0.0 ORIGDIR: pd-mycobject_0.0 Pag@XP-PAG /c/dev/c++/pd-externals/mycobject $ hope this helps. ciao On Fri, Jul 15, 2011 at 5:22 PM, Hans-Christoph Steiner > wrote: Ok, I checked in the CC=gcc for MinGW. For the other two issues, unfortunately its more complicated: On Jul 15, 2011, at 5:06 AM, luca paganotti wrote: mycobject.dll is created by eclipse at the price of defining: CFLAGS = -I"C:/Programmi/pd/src" -Wall -W -g in place of CFLAGS = - I"$(PD_INCLUDE)/pd" -Wall -W -g The header arrangement has changed in 0.43, so now all of the headers are included in $(PD_INCLUDE)/pd. We haven't quite figured out how to handle that everywhere yet tho... PD_PATH = c:/programmi/pd in place of PD_PATH = $(shell cd "$ (PROGRAMFILES)"/pd && pwd) This little script to set PD_PATH works for me on my MinGW setup. Can you put the old PD_PATH line back in the Makefile and run 'make showsetup' and send me the result? You should see what its setting PD_PATH to. I'd like to get that working automatically. .hc and declaring CC = gcc Perhaps Eclipse sets CFLAGS or LDFLAGS, which is overriding things in the Makefile? About this template, it is oriented around making libraries, so that includes the meta file for marking the folder as a library. Setting it up is simple: - rename the template folder to the name of your library - rename template-meta.pd replacing 'template' with the name you just used for the folder - edit Makefile and put the library/folder/meta name in the first variable, LIBRARY_NAME Now you can set library meta data in the meta file, things like version, authors, etc.
Re: [PD] MinGW + Eclipse + MSWIN helloworld
On Jul 18, 2011, at 4:28 AM, Lorenzo Sutton wrote: Hans, Hans-Christoph Steiner wrote: Hey Lorenzo, It would be great to have your codeblocks setup as part of the standard template. I've never used Codeblocks, so I don't know anything about it. Does it use a simple file that can be checked into SVN? Does it use the Makefile or have its own build system? Honestly I'm not sure :-)... It does have 'projects' like many IDEs and you can configure build options from within the gui. I'm not sure if it would make sense to have some sample projects in SVN, maybe in the wiki if there is interest in using that IDE (it is corss platform with more of an less stable thing on macs). On problem with Windows IIRC was having to use absolute paths for the .lib and .dll files etc. My guess is that you can use the Windows env vars like %ProgramFiles% and %CommonFiles% to help in this situation. FYI, the template also handles one-source-file externals, and wraps all the needed files (binary, source file, help file, meta file) into a single easy-to-manage folder. For examples, check out bassemu~, plugin~, freeverb~. I think if the template works maybe it is better to have that as a 'standard'. Does CodeBlocks work well using an external Makefile? If so, then yes, its probably best if there was a wiki howto on how to setup CodeBlocks to use the Library Template. .hc Lorenzo .hc On Jul 15, 2011, at 3:21 AM, Lorenzo Sutton wrote: Hi, Sorry to drift the topic slightly... but I guess it might be of interest: when having to compile a 1-source-file external in windows I successfully managed with Codeblocks IDE and MinGW. If anyone is interested I have an example 'project' somewhere. Lorenzo. luca paganotti wrote: Hi all, i'm beginning hacking pd externals, I'm trying to use Eclipse Helios (3.6) with 1. CDT Version: 7.0.2.201102110609 Build id: 201102110609 2. pd-extended 0.42.5 3. MingW installed using mingw-get so I think the last stable version (gnu make 3.82, gcc 4.2.5 etc ...) So i made a simple c project in eclipse using the first tutorial files i found on the pd-extended source distribution (helloworld.c and the Makefile in the same folder) I modified the Makefile to set the PDROOT path for my windows box, defined the targets clean, pd_nt in my eclipse project, setup the libraries, the include paths and the library path and I think i had done this coherently ... but ... I get 'undefined reference' (s) for all the pd symbols that are used by helloworld.c i.e. pd_new, gensym, class_new, class_addbang, post I really know that it should be a trivial path problem but I'm not able to understand my mistake so if anyone can drive me to correct it i will appreciate. Thanks by now P.S. please forgive my english ___ 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 Access to computers should be unlimited and total. - the hacker ethic Looking at things from a more basic level, you can come up with a more direct solution... It may sound small in theory, but it in practice, it can change entire economies. - Amy Smith ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Redis sync, async and subscriber client: Puredis
That's a great manifesto, sounds like an interesting object. Something like [pool] but with more options. What do you have in mind to use it for? On the exciting topic of build systems, I recommend using the Library Template for this. It'll save you the headache of making a build system for GNU/Linux, Windows, etc. http://puredata.info/docs/developer/LibraryTemplate .hc On Jul 25, 2011, at 9:27 AM, Louis-Philippe wrote: Hi Pure Data Peoples, I'm still quite new to the Pure Data world, so please be indulgent to my first hacked external offering: puredis. Any of you heard of Redis? http://antirez.com/post/redis- manifesto.html for those of you who have not, it is: - NoSQL Key-Value Server - Fast - A DSL for abstract data types: Lists, Hashes, Sets, SortedSets - A Pub/Sub server Puredis brings Redis to the Pure Data world: [puredis] - Synchronous Blocking Redis client [apuredis] - Asynchronous Non-Blocking Redis client [spuredis] - Redis Pub/Sub Subscriber See https://github.com/lp/puredis#readme for build instructions and usage. Feel free to constructively criticize if you feel the pd integration lacks some fundamental functionality. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." --Bjarne Stroustrup (creator of C++) ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Redis sync, async and subscriber client: Puredis
On Mon, Jul 25, 2011 at 09:27:39AM -0400, Louis-Philippe wrote: > I'm still quite new to the Pure Data world, so please be indulgent to my > first hacked external offering: puredis. > Any of you heard of Redis? http://antirez.com/post/redis-manifesto.html Hi, Very cool, thanks for sharing! Chris. --- http://mccormick.cx ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] graph on parent bug and guis not updating
oh, and the same issue actually happens on Pd-Vanilla as well 2011/7/25 Alexandre Torres Porres > btw, the white toggle in the middle is the new display toggle. > > > 2011/7/25 Alexandre Torres Porres > >> hey people, I have this phase vocoder patch, some out there use it, and >> I'm updating it. >> >> check it at http://sites.google.com/site/porres/4b.zip >> >> >> One thing I wanted to do is to have a toggle to turn on/off the display of >> the recorded buffer/table. >> >> I done it alright, but with some problems. >> >> First, there is this kind of annoying bug that I'm not sure if it's been >> raised here. >> >> If the table was off the graph on parent area, it'd still be displayed on >> the parent patch. >> >> I had to force it to not be visible even outside the area, and it worked, >> but anyway, that's a bug... let me know if you need more info about it. >> >> Now, the other thing is that the sliders and the table/buffer will not >> properly work or display the values. I have to toggle on/off the buffer so >> it gets updated... but the sliders just die... and keep dead even if when I >> reopen it. But if I open the subpatch they come back to life! >> >> Well, I'm not sure now if the table was supposed to be updated on display >> in realtime when It's kinda big like this, is it? >> >> but none of the rest should be happening, right? >> >> thanks >> >> cheers >> Alex >> > > ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Gem / glsl_fragment
On 25.07.2011 15:04, IOhannes m zmoelnig wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-07-25 14:51, u...@xdv.org wrote: hey there, On 25.07.2011 09:26, IOhannes m zmoelnig wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-07-24 17:05, u...@xdv.org wrote: i'm running: pd-0.42.5-extended my gem version is: 0.92.3 on x86_64 ubuntu 10.10 there are some known problems with shaderID->t_float mapping on 64bit i thought at some point one should leave the 32bit comfort zone. systems which are fixed in current trunk. ok, i did the svn update, but now i can't build Gem anymore. make fails pretty soon, saying: Dylib.cpp: In function ?std::string getFullfilename(const _glist*, const char*, const char*)?: Dylib.cpp:157: error: ?canvas_open? was not declared in this scope svn log tells me these files have been worked on recently, so it might not be entirely my ignorance. indeed :-) however, i have the feeling, that your compiler simply cannot find m_pd.h (and you did not give us the full error message that would have said that) i did give the --with-pd option as ../pd/src so ./configure did not complain in the first place. weirdly now trying to reproduce it, libtool says, it can't determine the absolute directory name. i swear, that wasn't there before. :D i don't know where pd-extended puts its headers, you might try something like: $ ./configure --with-pd=/usr/include/pdextended/ anyway ... it did compile, it did install, the shader examples work and my shader also more or less works. joo! and don't forget, that now the entire build process is in ...gem/ rather than ...gem/src/ saw that. :) thanks for the help! ciao, ub ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] Redis sync, async and subscriber client: Puredis
Hi Pure Data Peoples, I'm still quite new to the Pure Data world, so please be indulgent to my first hacked external offering: puredis. Any of you heard of Redis? http://antirez.com/post/redis-manifesto.html for those of you who have not, it is: - NoSQL Key-Value Server - Fast - A DSL for abstract data types: Lists, Hashes, Sets, SortedSets - A Pub/Sub server Puredis brings Redis to the Pure Data world: [puredis] - Synchronous Blocking Redis client [apuredis] - Asynchronous Non-Blocking Redis client [spuredis] - Redis Pub/Sub Subscriber See https://github.com/lp/puredis#readme for build instructions and usage. Feel free to constructively criticize if you feel the pd integration lacks some fundamental functionality. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Gem / glsl_fragment
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-07-25 14:51, u...@xdv.org wrote: > hey there, > > On 25.07.2011 09:26, IOhannes m zmoelnig wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 2011-07-24 17:05, u...@xdv.org wrote: >>> i'm running: pd-0.42.5-extended >>> my gem version is: 0.92.3 >>> on x86_64 ubuntu 10.10 >> there are some known problems with shaderID->t_float mapping on 64bit > i thought at some point one should leave the 32bit comfort zone. >> systems which are fixed in current trunk. > ok, i did the svn update, but now i can't build Gem anymore. make fails > pretty soon, saying: > Dylib.cpp: In function ?std::string getFullfilename(const _glist*, const > char*, const char*)?: > Dylib.cpp:157: error: ?canvas_open? was not declared in this scope > > svn log tells me these files have been worked on recently, so it might > not be entirely my ignorance. > indeed :-) however, i have the feeling, that your compiler simply cannot find m_pd.h (and you did not give us the full error message that would have said that) i don't know where pd-extended puts its headers, you might try something like: $ ./configure --with-pd=/usr/include/pdextended/ and don't forget, that now the entire build process is in ...gem/ rather than ...gem/src/ fg amsdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4taeoACgkQkX2Xpv6ydvQ17wCeISbbrgobcVqyFHw5YbWGQ/Qz pGMAoMkjWAnw2p0sV6eg/4F4k2NHqUfC =POHf -END PGP SIGNATURE- 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] Gem / glsl_fragment
hey there, On 25.07.2011 09:26, IOhannes m zmoelnig wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-07-24 17:05, u...@xdv.org wrote: i'm running: pd-0.42.5-extended my gem version is: 0.92.3 on x86_64 ubuntu 10.10 there are some known problems with shaderID->t_float mapping on 64bit i thought at some point one should leave the 32bit comfort zone. systems which are fixed in current trunk. ok, i did the svn update, but now i can't build Gem anymore. make fails pretty soon, saying: Dylib.cpp: In function ‘std::string getFullfilename(const _glist*, const char*, const char*)’: Dylib.cpp:157: error: ‘canvas_open’ was not declared in this scope svn log tells me these files have been worked on recently, so it might not be entirely my ignorance. thanks+ciao, ub ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] graph on parent bug and guis not updating
btw, the white toggle in the middle is the new display toggle. 2011/7/25 Alexandre Torres Porres > hey people, I have this phase vocoder patch, some out there use it, and I'm > updating it. > > check it at http://sites.google.com/site/porres/4b.zip > > > One thing I wanted to do is to have a toggle to turn on/off the display of > the recorded buffer/table. > > I done it alright, but with some problems. > > First, there is this kind of annoying bug that I'm not sure if it's been > raised here. > > If the table was off the graph on parent area, it'd still be displayed on > the parent patch. > > I had to force it to not be visible even outside the area, and it worked, > but anyway, that's a bug... let me know if you need more info about it. > > Now, the other thing is that the sliders and the table/buffer will not > properly work or display the values. I have to toggle on/off the buffer so > it gets updated... but the sliders just die... and keep dead even if when I > reopen it. But if I open the subpatch they come back to life! > > Well, I'm not sure now if the table was supposed to be updated on display > in realtime when It's kinda big like this, is it? > > but none of the rest should be happening, right? > > thanks > > cheers > Alex > ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] graph on parent bug and guis not updating
hey people, I have this phase vocoder patch, some out there use it, and I'm updating it. check it at http://sites.google.com/site/porres/4b.zip One thing I wanted to do is to have a toggle to turn on/off the display of the recorded buffer/table. I done it alright, but with some problems. First, there is this kind of annoying bug that I'm not sure if it's been raised here. If the table was off the graph on parent area, it'd still be displayed on the parent patch. I had to force it to not be visible even outside the area, and it worked, but anyway, that's a bug... let me know if you need more info about it. Now, the other thing is that the sliders and the table/buffer will not properly work or display the values. I have to toggle on/off the buffer so it gets updated... but the sliders just die... and keep dead even if when I reopen it. But if I open the subpatch they come back to life! Well, I'm not sure now if the table was supposed to be updated on display in realtime when It's kinda big like this, is it? but none of the rest should be happening, right? thanks cheers Alex ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Gem / glsl_fragment
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-07-24 17:05, u...@xdv.org wrote: > i'm running: pd-0.42.5-extended > my gem version is: 0.92.3 > on x86_64 ubuntu 10.10 there are some known problems with shaderID->t_float mapping on 64bit systems which are fixed in current trunk. fgmasdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4tGqUACgkQkX2Xpv6ydvSwegCfaypYb6WrjNqSiXW+VvlHGnic b18AnREwHAd5WUOon93VsiyJt66/7RuR =ljOB -END PGP SIGNATURE- smime.p7s Description: S/MIME Cryptographic Signature ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list