Hello,
I've been using pd in windows for a while, and have never had a working
binary of OSC. I used to have one that printed an error message in the
console whenever I ran pd (maybe it worked for other people), but that's not
terribly useful. I have tried building it from the visual studio workspace
of the version on CVS, without any luck (it is not my own copy of vstudio,
and I'm not particularly experienced in using it). It was a few weeks ago I
was trying this, and I could have been more systematic about it (so I don't
remember clearly), but this is roughly what I tried. I modified the project
preprocessor to include the pd/src directory for m_pd.h. The names of
source files in the project didn't even always correspond to the actual file
names, so I removed 'routeOSC.c' from the project and added 'OSCroute.c' -
there may have been other changes that I don't remember. For good measure,
I also added the 'libOSC' project to the 'OSC' workspace, and made the OSC
project dependant on it. I still get compile errors, though - can anyone
direct me any further? Of course, a working binary would be fine. I must
admit that I've tried vaguely to compile a few of the pd externals for
myself with no luck - this one I'm actually lacking a working copy of,
though. I'm sure there are all kinds of straightfoward things I'm missing
(and no doubt at least one stupid thing I am doing).
Thanks,
Peter
p.s. here is the output I get in visual studio, fwiw.
--------------------Configuration: OSC - Win32 Debug--------------------
Compiling...
dumpOSC.c
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(80) : warning
C4273: 'sys_addpollfn' : inconsistent dll linkage. dllexport assumed.
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(137) : error
C2632: 'long' followed by 'long' is illegal
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(323) : error
C2054: expected '(' to follow 'OSC_API'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(327) : error
C2085: 'dumpOSC_setup' : not in formal parameter list
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(327) : error
C2143: syntax error : missing ';' before '{'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(488) : warning
C4013: 'printf' undefined; assuming extern returning int
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(511) : error
C2065: 'int32_t' : undeclared identifier
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(511) : error
C2059: syntax error : ')'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(512) : error
C2059: syntax error : ')'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(517) : error
C2059: syntax error : ')'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(520) : error
C2061: syntax error : identifier 'ReadTime'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(520) : error
C2059: syntax error : ';'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(520) : error
C2059: syntax error : 'type'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(561) : error
C2059: syntax error : ')'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(562) : error
C2059: syntax error : ')'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(565) : error
C2061: syntax error : identifier 'dumpOSC_SendReply'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(565) : error
C2059: syntax error : ';'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(565) : error
C2059: syntax error : 'type'
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(721) : warning
C4013: 'fflush' undefined; assuming extern returning int
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(721) : error
C2065: 'stdout' : undeclared identifier
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(923) : warning
C4013: 'fprintf' undefined; assuming extern returning int
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(923) : error
C2065: 'stderr' : undeclared identifier
c:\documents and settings\peter\workspace\oscx\src\dumposc.c(994) : warning
C4013: 'vfprintf' undefined; assuming extern returning int
htmsocket.c
c:\documents and settings\peter\workspace\oscx\src\htmsocket.c(120) : error
C2143: syntax error : missing ';' before 'type'
c:\documents and settings\peter\workspace\oscx\src\htmsocket.c(199) :
warning C4013: 'fprintf' undefined; assuming extern returning int
c:\documents and settings\peter\workspace\oscx\src\htmsocket.c(199) : error
C2065: 'stderr' : undeclared identifier
c:\documents and settings\peter\workspace\oscx\src\htmsocket.c(229) : error
C2065: 'oval' : undeclared identifier
c:\documents and settings\peter\workspace\oscx\src\htmsocket.c(229) :
warning C4133: 'function' : incompatible types - from 'int *' to 'const char
*'
c:\documents and settings\peter\workspace\oscx\src\htmsocket.c(284) :
warning C4013: 'printf' undefined; assuming extern returning int
OSC-pattern-match.c
OSC-system-dependent.c
c:\documents and
settings\peter\workspace\oscx\src\osc-system-dependent.c(62) : warning
C4013: 'exit' undefined; assuming extern returning int
OSC.c
c:\documents and settings\peter\workspace\oscx\src\osc.c(61) : warning
C4013: 'sendOSC_setup' undefined; assuming extern returning int
c:\documents and settings\peter\workspace\oscx\src\osc.c(62) : warning
C4013: 'dumpOSC_setup' undefined; assuming extern returning int
c:\documents and settings\peter\workspace\oscx\src\osc.c(63) : warning
C4013: 'OSCroute_setup' undefined; assuming extern returning int
OSCroute.c
c:\documents and settings\peter\workspace\oscx\src\oscroute.c(113) : error
C2054: expected '(' to follow 'OSC_API'
c:\documents and settings\peter\workspace\oscx\src\oscroute.c(113) : error
C2085: 'OSCroute_setup' : not in formal parameter list
c:\documents and settings\peter\workspace\oscx\src\oscroute.c(113) : error
C2143: syntax error : missing ';' before '{'
c:\documents and settings\peter\workspace\oscx\src\oscroute.c(243) : warning
C4013: 'sprintf' undefined; assuming extern returning int
sendOSC.c
c:\documents and settings\peter\workspace\oscx\src\sendosc.c(354) : error
C2054: expected '(' to follow 'OSC_API'
c:\documents and settings\peter\workspace\oscx\src\sendosc.c(354) : error
C2085: 'sendOSC_setup' : not in formal parameter list
c:\documents and settings\peter\workspace\oscx\src\sendosc.c(354) : error
C2143: syntax error : missing ';' before '{'
c:\documents and settings\peter\workspace\oscx\src\sendosc.c(476) : warning
C4013: 'fgets' undefined; assuming extern returning int
c:\documents and settings\peter\workspace\oscx\src\sendosc.c(476) : error
C2065: 'stdin' : undeclared identifier
c:\documents and settings\peter\workspace\oscx\src\sendosc.c(476) : warning
C4047: '!=' : 'int ' differs in levels of indirection from 'void *'
c:\documents and settings\peter\workspace\oscx\src\sendosc.c(562) : warning
C4013: 'sscanf' undefined; assuming extern returning int
c:\documents and settings\peter\workspace\oscx\src\sendosc.c(839) : warning
C4013: 'vfprintf' undefined; assuming extern returning int
c:\documents and settings\peter\workspace\oscx\src\sendosc.c(839) : error
C2065: 'stderr' : undeclared identifier
Generating Code...
Error executing cl.exe.
OSC.dll - 29 error(s), 17 warning(s)