Hi,
Finall'y I've got some spare time to waste :) , so I decided to try that devel_0_38 version of pd. First I've tried to build it with threaded soundfiler (since I use it _a_lot_ lately with devel_0_37). Unfortunately with no luck. Compilation stopped at g_array.c file with this:
e:\pd_test\pd\src\g_array.c(650) : error C2143: syntax error : missing ';' before 'type' e:\pd_test\pd\src\g_array.c(651) : error C2143: syntax error : missing ';' before 'type' e:\pd_test\pd\src\g_array.c(652) : error C2275: 't_template' : illegal use of this type as an expression e:\pd_test\pd\src\g_canvas.h(214) : see declaration of 't_template' e:\pd_test\pd\src\g_array.c(652) : error C2065: 'elemtemplate' : undeclared identifier e:\pd_test\pd\src\g_array.c(653) : error C2143: syntax error : missing ';' before 'type' e:\pd_test\pd\src\g_array.c(655) : error C2065: 'elemtemplatecanvas' : undeclared identifier e:\pd_test\pd\src\g_array.c(655) : warning C4047: 'function' : '_glist ** ' differs in levels of indirection from 'int *' e:\pd_test\pd\src\g_array.c(656) : warning C4047: 'function' : 't_template ** ' differs in levels of indirection from 'int *' e:\pd_test\pd\src\g_array.c(656) : error C2065: 'elemsize' : undeclared identifier e:\pd_test\pd\src\g_array.c(656) : error C2065: 'xonset' : undeclared identifier e:\pd_test\pd\src\g_array.c(656) : error C2065: 'yonset' : undeclared identifier e:\pd_test\pd\src\g_array.c(656) : error C2065: 'wonset' : undeclared identifier e:\pd_test\pd\src\g_array.c(663) : error C2065: 'i' : undeclared identifier e:\pd_test\pd\src\g_array.c(672) : error C2065: 'x1' : undeclared identifier e:\pd_test\pd\src\g_array.c(674) : error C2065: 'x2' : undeclared identifier e:\pd_test\pd\src\g_array.c(676) : error C2440: '<' : cannot convert from 'double (__cdecl *)(double)' to 'float' e:\pd_test\pd\src\g_array.c(677) : error C2440: '=' : cannot convert from 'float' to 'double (__cdecl *)(double)' e:\pd_test\pd\src\g_array.c(678) : error C2065: 'y2' : undeclared identifier e:\pd_test\pd\src\g_array.c(683) : warning C4047: '=' : 'int' differs in levels of indirection from 'double (__cdecl *)(double)'
Then I've tried with standard soundfiler. Compilation went ok, but I've got these linker errors:
m_sched.obj : error LNK2019: unresolved external symbol _fifo_init referenced in function _m_scheduler m_sched.obj : error LNK2019: unresolved external symbol _fifo_put referenced in function _set_callback m_sched.obj : error LNK2019: unresolved external symbol _fifo_get referenced in function _run_idle_callbacks ..\bin\pd.dll : fatal error LNK1120: 3 unresolved externals
What might be wrong? Should I perform some extra actions to properly build pd on windows?
ps. I'm using Microsoft compiler from Visual Toolkit.
cheers, Bart
Finall'y I've got some spare time to waste :) , so I decided to try that devel_0_38 version of pd. First I've tried to build it with threaded soundfiler (since I use it _a_lot_ lately with devel_0_37). Unfortunately with no luck. Compilation stopped at g_array.c file with this:
hm ... might be a problem with the garray locks ... got to check ... i have made some changes to the devel_0_38 on my machine but haven't checked them in ... i think i also fixed that ...
Then I've tried with standard soundfiler. Compilation went ok, but I've got these linker errors:
m_sched.obj : error LNK2019: unresolved external symbol _fifo_init referenced in function _m_scheduler m_sched.obj : error LNK2019: unresolved external symbol _fifo_put referenced in function _set_callback m_sched.obj : error LNK2019: unresolved external symbol _fifo_get referenced in function _run_idle_callbacks ..\bin\pd.dll : fatal error LNK1120: 3 unresolved externals
that's easy ... you have to add m_fifo.c to the sources ...
tim
On Mon, 13 Dec 2004, Tim Blechmann wrote:
that's easy ... you have to add m_fifo.c to the sources ...
Hmm, what kind of fifo is that ? You probably know that there are already two different fifo implementations in pd, one for portaudio and one for jack. Maybe we can use only one ?
Guenter
tim
-- mailto:TimBlechmann@gmx.de ICQ: 96771783 http://www.mokabar.tk
After one look at this planet any visitor from outer space would say "I want to see the manager." William S. Burroughs
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
On Mon, 13 Dec 2004, Tim Blechmann wrote:
that's easy ... you have to add m_fifo.c to the sources ...
Hmm, what kind of fifo is that ? You probably know that there are already two different fifo implementations in pd, one for portaudio and one for jack. Maybe we can use only one ?
that's why i started to implement a general fifo api according to the paper by Dominique Fober, Yann Orlarey, Stephane Letz "Lock-Free Techniques for Concurrent Access to Shared Objects"... it implements a lock-free fifo queue, but requires to write assembler (i haven't been able to implement it for ppc, since i'm not access one). it might not be the first choice for single thread fifos, though...
i'm using the lock-free fifo for placing callbacks in the scheduler for thread synchronisation, which is probably more powerful for thread synchronisation than the current sys_lock(), since the synchronisation won't run in the helper thread, but in the main pd thread...
cheers ... tim
Ok. Thanks. But now I get:
e:\pd_test\pd\src\s_audio.c(368) : error C2065: 'scheduler' : undeclared identifier
(doesn't mather if I build pd with or without threaded soundfiler).
cheers, Bart
Thomas Grill :
e:\pd_test\pd\src\s_audio.c(368) : error C2065: 'scheduler' : undeclared identifier
Hi Bart, should be fixed in cvs now.
Ah yes. Now it's working :-) BTW did anyone from pd dev team considered adding "-relief groove" parameter to every entry/button/text widget defined in pd.tk ? I tried that with devel_0_37, and IMHO it looks a bit nicer than standard pd look (at least on windows - dunno about other platforms). Here's an example:
http://www.ckmedia.pl/~fev/standard.jpg - normal pd.tk http://www.ckmedia.pl/~fev/relief_groove.jpg - "patched" pd.tk
What do You think?
cheers, Bart