Csound Csound-dev Csound-tekno Search About

[Csnd-dev] cannot built websockets

Date2016-12-14 17:49
Fromjpff
Subject[Csnd-dev] cannot built websockets
Typed to soo

Now have

/home/jpff/csound6/Opcodes/websockets/WebSocketOpcode.c:176:17: error: dereferen
cing pointer to incomplete type
     if (protocol->id < self->outputArgumentCount) {
                 ^
/home/jpff/csound6/Opcodes/websockets/WebSocketOpcode.c:182:30: error: dereferen
cing pointer to incomplete type
     int inputIndex = protocol->id - self->outputArgumentCount;

Date2016-12-14 20:54
FromEd Costello
SubjectRe: [Csnd-dev] cannot built websockets
I think the problem is that you are linking to a version of the library that is below v2.0, anything v2 or above has lws_protocol declared in libwebsockets.h, I think I'll need to change the Cmakelists.txt file in order to check for a minimum library version.
Ed

On 14 December 2016 at 17:49, jpff <jpff@codemist.co.uk> wrote:
Typed to soo

Now have

/home/jpff/csound6/Opcodes/websockets/WebSocketOpcode.c:176:17: error: dereferen
cing pointer to incomplete type
     if (protocol->id < self->outputArgumentCount) {
                 ^
/home/jpff/csound6/Opcodes/websockets/WebSocketOpcode.c:182:30: error: dereferen
cing pointer to incomplete type
     int inputIndex = protocol->id - self->outputArgumentCount;
                              ^


Date2016-12-14 21:00
Fromjpff
SubjectRe: [Csnd-dev] cannot built websockets
I ad just found a newer vesion 9git repoitory had moved) so now all I see 
is

SECTION 1:
new alloc for instr 1:
  i1     0.00000
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
...ad infinitum.............


How should I test?

On Wed, 14 Dec 2016, Ed Costello wrote:

> I think the problem is that you are linking to a version of the library that
> is below v2.0, anything v2 or above has lws_protocol declared in
> libwebsockets.h, I think I'll need to change the Cmakelists.txt file in order
> to check for a minimum library version.Ed
> 
> On 14 December 2016 at 17:49, jpff  wrote:
>       Typed to soo
>
>       Now have
>
>       /home/jpff/csound6/Opcodes/websockets/WebSocketOpcode.c:176:17:
>       error: dereferen
>       cing pointer to incomplete type
>            if (protocol->id < self->outputArgumentCount) {
>                        ^
>       /home/jpff/csound6/Opcodes/websockets/WebSocketOpcode.c:182:30:
>       error: dereferen
>       cing pointer to incomplete type
>            int inputIndex = protocol->id - self->outputArgumentCount;
>                                     ^
> 
> 
> 
>

Date2016-12-14 21:02
FromEd Costello
SubjectRe: [Csnd-dev] cannot built websockets
You need to be running a website that is listening for "klfo" on the web socket. This file is included in the manual entry, you can actually probably just go to this url then run the csd, http://www.csounds.com/manual/html/examples/websocket.html
Ed

On 14 December 2016 at 21:00, jpff <jpff@codemist.co.uk> wrote:
I ad just found a newer vesion 9git repoitory had moved) so now all I see is

SECTION 1:
new alloc for instr 1:
 i1     0.00000
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
...ad infinitum.............


How should I test?


On Wed, 14 Dec 2016, Ed Costello wrote:

I think the problem is that you are linking to a version of the library that
is below v2.0, anything v2 or above has lws_protocol declared in
libwebsockets.h, I think I'll need to change the Cmakelists.txt file in order
to check for a minimum library version.Ed

On 14 December 2016 at 17:49, jpff <jpff@codemist.co.uk> wrote:
      Typed to soo

      Now have

      /home/jpff/csound6/Opcodes/websockets/WebSocketOpcode.c:176:17:
      error: dereferen
      cing pointer to incomplete type
           if (protocol->id < self->outputArgumentCount) {
                       ^
      /home/jpff/csound6/Opcodes/websockets/WebSocketOpcode.c:182:30:
      error: dereferen
      cing pointer to incomplete type
           int inputIndex = protocol->id - self->outputArgumentCount;
                                    ^





Date2016-12-14 21:59
FromJohn ff
SubjectRe: [Csnd-dev] cannot built websockets
I was running that web page.  is this a browser specific thing?

Sent from TypeApp
On 14 Dec 2016, at 21:03, Ed Costello <phasereset@GMAIL.COM> wrote:
You need to be running a website that is listening for "klfo" on the web socket. This file is included in the manual entry, you can actually probably just go to this url then run the csd,  http://www.csounds.com/manual/html/examples/websocket.html
Ed

On 14 December 2016 at 21:00, jpff <jpff@codemist.co.uk> wrote:
I ad just found a newer vesion 9git repoitory had moved) so now all I see is

SECTION 1:
new alloc for instr 1:
 i1     0.00000
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
websocket: variable klfo data not sent, buffer overrrun
...ad infinitum.............


How should I test?


On Wed, 14 Dec 2016, Ed Costello wrote:

I think the problem is that you are linking to a version of the library that
is below v2.0, anything v2 or above has lws_protocol declared in
libwebsockets.h, I think I'll need to change the Cmakelists.txt file in order
to check for a minimum library version.Ed

On 14 December 2016 at 17:49, jpff < jpff@codemist.co.uk> wrote:
      Typed to soo

      Now have

      /home/jpff/csound6/Opcodes/web sockets/WebSocketOpcode.c:176: 17:
      error: dereferen
      cing pointer to incomplete type
           if (protocol->id < self->outputArgumentCount) {
                       ^
      /home/jpff/csound6/Opcodes/web sockets/WebSocketOpcode.c:182: 30:
      error: dereferen
      cing pointer to incomplete type
           int inputIndex = protocol->id - self->outputArgumentCount;
                                    ^





Date2016-12-14 22:18
FromVictor Lazzarini
SubjectRe: [Csnd-dev] cannot built websockets
Is that to do with the version of libwebsockets? Ed mentioned something
earlier on.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 14 Dec 2016, at 17:49, jpff  wrote:
> 
> Typed to soo
> 
> Now have
> 
> /home/jpff/csound6/Opcodes/websockets/WebSocketOpcode.c:176:17: error: dereferen
> cing pointer to incomplete type
>     if (protocol->id < self->outputArgumentCount) {
>                 ^
> /home/jpff/csound6/Opcodes/websockets/WebSocketOpcode.c:182:30: error: dereferen
> cing pointer to incomplete type
>     int inputIndex = protocol->id - self->outputArgumentCount;

Date2016-12-14 22:32
FromEd Costello
SubjectRe: [Csnd-dev] cannot built websockets
There seems to be an issue, data is being received fine from a website but not being sent, at least on my end, I'll have to have a look at this tomorrow.
Ed

On 14 December 2016 at 22:18, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Is that to do with the version of libwebsockets? Ed mentioned something
earlier on.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 14 Dec 2016, at 17:49, jpff <jpff@CODEMIST.CO.UK> wrote:
>
> Typed to soo
>
> Now have
>
> /home/jpff/csound6/Opcodes/websockets/WebSocketOpcode.c:176:17: error: dereferen
> cing pointer to incomplete type
>     if (protocol->id < self->outputArgumentCount) {
>                 ^
> /home/jpff/csound6/Opcodes/websockets/WebSocketOpcode.c:182:30: error: dereferen
> cing pointer to incomplete type
>     int inputIndex = protocol->id - self->outputArgumentCount;
>                              ^