[Cs-dev] Windows build fails
Date | 2015-06-19 01:13 |
From | Michael Gogins |
Subject | [Cs-dev] Windows build fails |
Attachments | None None |
[ 75%] Building C object Opcodes/framebuffer/CMakeFiles/framebuffer.dir/Framebuffer.c.obj In file included from c:/Users/mike/csound-csound6-git/Opcodes/framebuffer/Framebuffer.c:27:0: c:/Users/mike/csound-csound6-git/Opcodes/framebuffer/Framebuffer.h:56:9: error: unknown type name 'u_int32_t' u_int32_t elementCount; ^ c:/Users/mike/csound-csound6-git/Opcodes/framebuffer/Framebuffer.h:57:9: error: unknown type name 'u_int32_t' u_int32_t writeIndex; ^ c:/Users/mike/csound-csound6-git/Opcodes/framebuffer/Framebuffer.h:58:9: error: unknown type name 'u_int32_t' u_int32_t ksmps; ^ c:/Users/mike/csound-csound6-git/Opcodes/framebuffer/Framebuffer.c:58:86: error: unknown type name 'u_int32_t' void Framebuffer_writeBuffer(CSOUND *csound, Framebuffer *self, MYFLT *inputSamples, u_int32_t inputSamplesCount) ^ c:/Users/mike/csound-csound6-git/Opcodes/framebuffer/Framebuffer.c:76:86: error: unknown type name 'u_int32_t' void Framebuffer_readBuffer(CSOUND *csound, Framebuffer *self, MYFLT *outputSamples, u_int32_t outputSamplesCount) ^ Opcodes/framebuffer/CMakeFiles/framebuffer.dir/build.make:55: recipe for target `Opcodes/framebuffer/CMakeFiles/framebuffer.dir/Framebuffer.c.obj' failed make[2]: *** [Opcodes/framebuffer/CMakeFiles/framebuffer.dir/Framebuffer.c.obj] Error 1 CMakeFiles/Makefile2:1182: recipe for target `Opcodes/framebuffer/CMakeFiles/framebuffer.dir/all' failed make[1]: *** [Opcodes/framebuffer/CMakeFiles/framebuffer.dir/all] Error 2 Makefile:147: recipe for target `all' failed make: *** [all] Error 2 ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com |
Date | 2015-06-19 01:24 |
From | Edward Costello |
Subject | Re: [Cs-dev] Windows build fails |
Attachments | None None |
Yeah, thats an issue with the new opcodes I added, looks like u_int32_t doesn’t exist on windows, I just changed all the instances of that and u_int16_t to just plain int so it might compile now.
|
Date | 2015-06-19 01:49 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Windows build fails |
Attachments | None None |
It depends on whether these variables NEED to be a specific size (e.g. because you will pass a pointer to one to some function that expects that certain size and will under-write or over-write the memory if the pointer points to the wrong size). If they do NOT need to be a specific size, they should have been declared int in the first place. If they DO need to be a specific size, then Csound has a facility in sysdep.h for defining "Csound" names for these sizes. This facility is cross-platform. Include "sysdep.h" and use the Csound names for those variables, e.g. int32, uint16. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Jun 18, 2015 at 8:24 PM, Edward Costello <phasereset@gmail.com> wrote:
|
Date | 2015-06-19 01:52 |
From | Edward Costello |
Subject | Re: [Cs-dev] Windows build fails |
Attachments | None None |
It wasn’t really important that they’d be 32 or 16 bit explicitly. It should work fine. Ed
|