Csound Csound-dev Csound-tekno Search About

[Cs-dev] Windows build fails

Date2015-06-19 01:13
FromMichael Gogins
Subject[Cs-dev] Windows build fails
AttachmentsNone  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 Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

Date2015-06-19 01:24
FromEdward Costello
SubjectRe: [Cs-dev] Windows build fails
AttachmentsNone  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.

Ed

On 19 Jun 2015, at 01:13, Michael Gogins <michael.gogins@gmail.com> wrote:

[ 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 Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2015-06-19 01:49
FromMichael Gogins
SubjectRe: [Cs-dev] Windows build fails
AttachmentsNone  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 Gogins
Irreducible 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:
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.

Ed

On 19 Jun 2015, at 01:13, Michael Gogins <michael.gogins@gmail.com> wrote:

[ 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 Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel



Date2015-06-19 01:52
FromEdward Costello
SubjectRe: [Cs-dev] Windows build fails
AttachmentsNone  None  
It wasn’t really important that they’d be 32 or 16 bit explicitly. It should work fine.
Ed

On 19 Jun 2015, at 01:49, Michael Gogins <michael.gogins@gmail.com> wrote:

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 Gogins
Irreducible 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:
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.

Ed

On 19 Jun 2015, at 01:13, Michael Gogins <michael.gogins@gmail.com> wrote:

[ 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 Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com
------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel