Re: [PD] readanysf for windows? (again)

2011-04-28 Thread Patrice Colet
After resolving two dozens undefined references I finally have readanysf compiled. Curiously gmerlin_avdec needs a prepended link of each used library. The link flags must be at the end, like in attached file. I had to copy missing dll's into pd/bin along with other libs provided py

Re: [PD] Arduino, any feedback to help me choose the model?

2011-04-28 Thread Pierre Massat
I have bought a 4.7 K pot yesterday, it's working perfectly. The guy at the shop said it didn't really matter as long as i stayed within the 1K - 10K range. I'm gonna strat building a real interface around the board pretty soon. Pierre 2011/4/28 Richie Cyngler glitch...@gmail.com Exciting

Re: [PD] Data Structures - Delete specific scalar?

2011-04-28 Thread João Pais
Hi, I looked at your sequencer. I didn't play around with it, but I wonder if you are better off using an array instead of X scalars? As I suggested before, you can use a variable to decide if the data is active or not, it's not really necessary to erase it from the patch. Also on the

[PD] GLSL Abstractions Library for Pd/GEM

2011-04-28 Thread mark edward grimm
I was just re-reading Marius Schebella's paper on glsl stuffs: http://gem.iem.at/convention09/schebella.pdf/view is there a repo for these abs? I cant seem to locate any of them as pd patches. seems like only this paper exists cheers mark -- mark edward grimm | m.f.a |

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread august
hmm. I wish I could help more. I have never built a windows external. Is there an extra step that is needed for windows? Do you have to register the _tilde_setup function somewhere else? Is there a way to tell windows where to find the .dll's for a given package? After resolving two

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread Hans-Christoph Steiner
Maybe the symbol EXTERN/exporting stuff isn't quite right? For an example to learn from, I think the Makefile template is your best bet: http://puredata.info/docs/developer/MakefileTemplate .hc On Apr 27, 2011, at 11:15 PM, Patrice Colet wrote: After resolving two dozens undefined

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread august
Isn't that template just for libraries? what about single externals? Maybe the symbol EXTERN/exporting stuff isn't quite right? For an example to learn from, I think the Makefile template is your best bet: http://puredata.info/docs/developer/MakefileTemplate .hc On Apr 27, 2011,

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread Hans-Christoph Steiner
It builds each object as a single .pd_linux/.dll If there is just one object in your library, there is basically no diference ;) hc On Apr 28, 2011, at 9:38 AM, august wrote: Isn't that template just for libraries? what about single externals? Maybe the symbol EXTERN/exporting stuff

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread august
Patrice, Here is a new Makefile that I made looking at the template base. I think this should take care of exporting the tilde_setup symbol. again, doing it blindly...so there may be errors. -august. After resolving two dozens undefined references I

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread august
Will it also handle C++ externals? I tried to implement it for readanysf, but had problems with sed sed: invalid option -- 'm' It builds each object as a single .pd_linux/.dll If there is just one object in your library, there is basically no diference ;) hc On Apr 28, 2011, at

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread Hans-Christoph Steiner
sed is used for getting the version from the mylibrary-meta.pd file. In this case, its optional. .hc On Apr 28, 2011, at 10:33 AM, august wrote: Will it also handle C++ externals? I tried to implement it for readanysf, but had problems with sed sed: invalid option -- 'm' It

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread Patrice Colet
still doesn't recognize readanysf_tilde_setup even with -Wl,--enable-auto-import by defining -DMSW in CFLAGS the compiler should read this macro in m_pd.h: #define EXTERN __declspec(dllimport) extern but it doesn't is there a more explicit template makefile for cpp sources? the only working

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread august
I did notice that in externals/frankenstein/Makefile, it does this for Visual Studio: link /dll /export:$*_setup $*.obj common.obj $(PDNTLIB) Are extra linking directives necessary for mingw externals? As for C++ files and the template Makefile, you might be able to just set CC=cpp

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread Patrice Colet
I even tried to put manually: __declspec(dllexport) void readanysf_tilde_setup(void) but still same error pd can't read it, there is nothing else I can do, someone with better knowledge of makefile should look at it. attached is attempt to rewrite a makefile that compiles on mingw, and that

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread yvan volochine
sorry for the OT noise but... Patrice, it looks like your mail reader does not follow the 'reply-to topic' rule, i.e. each of your message appears as a new thread, which is pretty boring with long threads like this one in a decent mail reader. cheers, _y

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread yvan volochine
On 04/28/2011 11:15 PM, Patrice Colet wrote: Thank you for telling me, but I don't now how to fix this, sometimes it follow the thread, sometimes not, let me try out how this one will be displayed on the archive... It's boring indeed when mails don't follow the thread. yeah this one

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread Patrice Colet
Thank you for telling me, but I don't now how to fix this, sometimes it follow the thread, sometimes not, let me try out how this one will be displayed on the archive... It's boring indeed when mails don't follow the thread. - yvan volochine yvan...@gmail.com a écrit : sorry for the OT

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread Hans-Christoph Steiner
Ah yes, its C++, so you need the 'extern C' stuff to expose the symbols to C. .hc On Apr 28, 2011, at 1:07 PM, Patrice Colet wrote: In a last attempt I've written extern C __declspec(dllexport) void readanysf_tilde_setup(void) and now pd can load the external I've attached the dll if

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread Hans-Christoph Steiner
You only need __declspec(dllexport) for the Windows linker. MinGW doesn't need it. That template Makefile is used in many external libraries included in Pd-extended, therefore it works for many many objects on Windows. .hc On Apr 28, 2011, at 12:45 PM, Patrice Colet wrote: I even

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread Patrice Colet
I've explored a bit the source files of pd-extended externals and didn't see a single one with .cpp extension available on windows, the solution I've found is ugly #ifdef NT extern C __declspec(dllexport) void readanysf_tilde_setup(void) { #else extern C void readanysf_tilde_setup(void) {

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread Hans-Christoph Steiner
Check creb, it has a couple. Also, some C++ files use .cc instead of .cpp. .hc On Apr 28, 2011, at 3:25 PM, Patrice Colet wrote: I've explored a bit the source files of pd-extended externals and didn't see a single one with .cpp extension available on windows, the solution I've found

[PD] [PD-announce] Streaming pd_LAunch Workshops, today and tomorrow

2011-04-28 Thread Hans-Christoph Steiner
http://pd-la.info/pd-launch-schedule/ As part of the Crashspace pd_LAunch festival, Chris McCormick and I are teaching workshops. There should be a live stream coming soon, mine workshop is today at 19:30 Pacific time (in two hours), and Chris' is tomorrow at the same time. Tune in

Re: [PD] readanysf for windows? (again)

2011-04-28 Thread Martin Peach
This might be relevant here: http://sourceware.org/binutils/docs-2.21/ld/WIN32.html#WIN32 especially: If `--export-all-symbols' is not given explicitly on the command line, then the default auto-export behavior will be disabled if either of the following are true: A DEF file is used.