Csound Csound-dev Csound-tekno Search About

websocket error

Date2016-12-13 12:43
FromRichard
Subjectwebsocket error
I am trying the websocket example 
http://www.csounds.com/manual/html/websocket.html,

but I get an error:

error: syntax error, unexpected T_IDENT  (token "websocket") from file 
websocket.csd (1)
  line 16:
 >>>    kinput websocket <<<
Unexpected untyped word kinput when expecting a variable

csound -z shows no websocket opcode, but this is version 6.07. How do I 
get the opcode?


Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 12:46
FromVictor Lazzarini
SubjectRe: websocket error
This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
It probably has some dependencies. Check your cmake options.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 13 Dec 2016, at 12:43, Richard  wrote:
> 
> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
> 
> but I get an error:
> 
> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
> line 16:
> >>>    kinput websocket <<<
> Unexpected untyped word kinput when expecting a variable
> 
> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
> 
> 
> Richard
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 16:37
FromEd Costello
SubjectRe: websocket error
The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
Ed

> On 13 Dec 2016, at 12:46, Victor Lazzarini  wrote:
> 
> This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
> It probably has some dependencies. Check your cmake options.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 13 Dec 2016, at 12:43, Richard  wrote:
>> 
>> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
>> 
>> but I get an error:
>> 
>> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
>> line 16:
>>>>>   kinput websocket <<<
>> Unexpected untyped word kinput when expecting a variable
>> 
>> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
>> 
>> 
>> Richard
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>      https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 16:37
FromRichard
SubjectRe: websocket error
Can I then only compile the websocket plugin and add that to csound? I 
have found Ed Costello's source, but it contains an Xcode project. I do 
not have Xcode anymore on my Mac (too much space).

Where can I find a cmake style source for this?

Richard


On 13/12/16 13:46, Victor Lazzarini wrote:
> This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
> It probably has some dependencies. Check your cmake options.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 13 Dec 2016, at 12:43, Richard  wrote:
>>
>> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
>>
>> but I get an error:
>>
>> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
>> line 16:
>>>>>     kinput websocket <<<
>> Unexpected untyped word kinput when expecting a variable
>>
>> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
>>
>>
>> Richard
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 16:42
FromRichard
SubjectRe: websocket error
I think I downloaded the OS X csound package, did not compile it. I see 
that there is a new version 6.08 available for OS X, so will give that a 
try first...

Richard


On 13/12/16 17:37, Ed Costello wrote:
> The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
> Ed
>
>> On 13 Dec 2016, at 12:46, Victor Lazzarini  wrote:
>>
>> This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
>> It probably has some dependencies. Check your cmake options.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>> On 13 Dec 2016, at 12:43, Richard  wrote:
>>>
>>> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
>>>
>>> but I get an error:
>>>
>>> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
>>> line 16:
>>>>>>    kinput websocket <<<
>>> Unexpected untyped word kinput when expecting a variable
>>>
>>> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
>>>
>>>
>>> Richard
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 16:43
FromVictor Lazzarini
SubjectRe: websocket error
merged.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 13 Dec 2016, at 16:37, Ed Costello  wrote:
> 
> The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
> Ed
> 
>> On 13 Dec 2016, at 12:46, Victor Lazzarini  wrote:
>> 
>> This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
>> It probably has some dependencies. Check your cmake options.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952 
>> 
>>> On 13 Dec 2016, at 12:43, Richard  wrote:
>>> 
>>> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
>>> 
>>> but I get an error:
>>> 
>>> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
>>> line 16:
>>>>>>  kinput websocket <<<
>>> Unexpected untyped word kinput when expecting a variable
>>> 
>>> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
>>> 
>>> 
>>> Richard
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>     https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 16:47
FromVictor Lazzarini
SubjectRe: websocket error
Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 13 Dec 2016, at 16:42, Richard  wrote:
> 
> I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...
> 
> Richard
> 
> 
> On 13/12/16 17:37, Ed Costello wrote:
>> The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
>> Ed
>> 
>>> On 13 Dec 2016, at 12:46, Victor Lazzarini  wrote:
>>> 
>>> This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
>>> It probably has some dependencies. Check your cmake options.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>> 
>>>> On 13 Dec 2016, at 12:43, Richard  wrote:
>>>> 
>>>> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
>>>> 
>>>> but I get an error:
>>>> 
>>>> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
>>>> line 16:
>>>>>>>   kinput websocket <<<
>>>> Unexpected untyped word kinput when expecting a variable
>>>> 
>>>> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
>>>> 
>>>> 
>>>> Richard
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 16:49
FromVictor Lazzarini
SubjectRe: websocket error
what is the dependency for these opcodes? I will try to get it in the next release (I had not realised they needed anything extra to be installed).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 13 Dec 2016, at 16:37, Ed Costello  wrote:
> 
> The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
> Ed
> 
>> On 13 Dec 2016, at 12:46, Victor Lazzarini  wrote:
>> 
>> This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
>> It probably has some dependencies. Check your cmake options.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952 
>> 
>>> On 13 Dec 2016, at 12:43, Richard  wrote:
>>> 
>>> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
>>> 
>>> but I get an error:
>>> 
>>> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
>>> line 16:
>>>>>>  kinput websocket <<<
>>> Unexpected untyped word kinput when expecting a variable
>>> 
>>> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
>>> 
>>> 
>>> Richard
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>     https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 16:50
FromRichard
SubjectRe: websocket error
I see, it is not present in 6.08.0...

Richard
On 13/12/16 17:47, Victor Lazzarini wrote:
> Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 13 Dec 2016, at 16:42, Richard  wrote:
>>
>> I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...
>>
>> Richard
>>
>>
>> On 13/12/16 17:37, Ed Costello wrote:
>>> The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
>>> Ed
>>>
>>>> On 13 Dec 2016, at 12:46, Victor Lazzarini  wrote:
>>>>
>>>> This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
>>>> It probably has some dependencies. Check your cmake options.
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>> On 13 Dec 2016, at 12:43, Richard  wrote:
>>>>>
>>>>> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
>>>>>
>>>>> but I get an error:
>>>>>
>>>>> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
>>>>> line 16:
>>>>>>>>    kinput websocket <<<
>>>>> Unexpected untyped word kinput when expecting a variable
>>>>>
>>>>> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
>>>>>
>>>>>
>>>>> Richard
>>>>>
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>          https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 16:55
FromEd Costello
SubjectRe: websocket error
They need libwebsockets installed, there may also be an issue on OSX regarding ssh headers, if that's the case then openssl needs to be installed (again as there is a system version without headers) as well using homebrew or whatever, libwebsockets is available through homebrew too.
Ed

On 13 December 2016 at 16:50, Richard <zappfinger@gmail.com> wrote:
I see, it is not present in 6.08.0...

Richard

On 13/12/16 17:47, Victor Lazzarini wrote:
Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 16:42, Richard <zappfinger@GMAIL.COM> wrote:

I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...

Richard


On 13/12/16 17:37, Ed Costello wrote:
The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
Ed

On 13 Dec 2016, at 12:46, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:

This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
It probably has some dependencies. Check your cmake options.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 12:43, Richard <zappfinger@gmail.com> wrote:

I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,

but I get an error:

error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
line 16:
   kinput websocket <<<
Unexpected untyped word kinput when expecting a variable

csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?


Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-13 17:02
FromVictor Lazzarini
SubjectRe: websocket error
ok, I’ll give it a go.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 13 Dec 2016, at 16:55, Ed Costello  wrote:
> 
> They need libwebsockets installed, there may also be an issue on OSX regarding ssh headers, if that's the case then openssl needs to be installed (again as there is a system version without headers) as well using homebrew or whatever, libwebsockets is available through homebrew too.
> Ed
> 
> On 13 December 2016 at 16:50, Richard  wrote:
> I see, it is not present in 6.08.0...
> 
> Richard
> 
> On 13/12/16 17:47, Victor Lazzarini wrote:
> Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
> 
> On 13 Dec 2016, at 16:42, Richard  wrote:
> 
> I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...
> 
> Richard
> 
> 
> On 13/12/16 17:37, Ed Costello wrote:
> The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
> Ed
> 
> On 13 Dec 2016, at 12:46, Victor Lazzarini  wrote:
> 
> This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
> It probably has some dependencies. Check your cmake options.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
> 
> On 13 Dec 2016, at 12:43, Richard  wrote:
> 
> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
> 
> but I get an error:
> 
> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
> line 16:
>    kinput websocket <<<
> Unexpected untyped word kinput when expecting a variable
> 
> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
> 
> 
> Richard
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 17:02
FromRichard
SubjectRe: websocket error

Actually, I also need the opcode on my Raspberry Pi's. I use the COSMO release now, that does not seem to have it.
Is the OS X source compatible with the Pi?

Richard


On 13/12/16 17:55, Ed Costello wrote:
They need libwebsockets installed, there may also be an issue on OSX regarding ssh headers, if that's the case then openssl needs to be installed (again as there is a system version without headers) as well using homebrew or whatever, libwebsockets is available through homebrew too.
Ed

On 13 December 2016 at 16:50, Richard <zappfinger@gmail.com> wrote:
I see, it is not present in 6.08.0...

Richard

On 13/12/16 17:47, Victor Lazzarini wrote:
Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 16:42, Richard <zappfinger@GMAIL.COM> wrote:

I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...

Richard


On 13/12/16 17:37, Ed Costello wrote:
The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
Ed

On 13 Dec 2016, at 12:46, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:

This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
It probably has some dependencies. Check your cmake options.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 12:43, Richard <zappfinger@gmail.com> wrote:

I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,

but I get an error:

error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
line 16:
   kinput websocket <<<
Unexpected untyped word kinput when expecting a variable

csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?


Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2016-12-13 17:04
FromEd Costello
SubjectRe: websocket error
I actually updated it so I could use it on the raspberry pi! So I'd imagine so :)
Ed

On 13 December 2016 at 17:02, Richard <zappfinger@gmail.com> wrote:

Actually, I also need the opcode on my Raspberry Pi's. I use the COSMO release now, that does not seem to have it.
Is the OS X source compatible with the Pi?

Richard


On 13/12/16 17:55, Ed Costello wrote:
They need libwebsockets installed, there may also be an issue on OSX regarding ssh headers, if that's the case then openssl needs to be installed (again as there is a system version without headers) as well using homebrew or whatever, libwebsockets is available through homebrew too.
Ed

On 13 December 2016 at 16:50, Richard <zappfinger@gmail.com> wrote:
I see, it is not present in 6.08.0...

Richard

On 13/12/16 17:47, Victor Lazzarini wrote:
Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 16:42, Richard <zappfinger@GMAIL.COM> wrote:

I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...

Richard


On 13/12/16 17:37, Ed Costello wrote:
The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
Ed

On 13 Dec 2016, at 12:46, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:

This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
It probably has some dependencies. Check your cmake options.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 12:43, Richard <zappfinger@gmail.com> wrote:

I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,

but I get an error:

error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
line 16:
   kinput websocket <<<
Unexpected untyped word kinput when expecting a variable

csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?


Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-13 17:08
FromRichard
SubjectRe: websocket error

Great! Do you have a link to the source? Or is it the one on Github?

Richard


On 13/12/16 18:04, Ed Costello wrote:
I actually updated it so I could use it on the raspberry pi! So I'd imagine so :)
Ed

On 13 December 2016 at 17:02, Richard <zappfinger@gmail.com> wrote:

Actually, I also need the opcode on my Raspberry Pi's. I use the COSMO release now, that does not seem to have it.
Is the OS X source compatible with the Pi?

Richard


On 13/12/16 17:55, Ed Costello wrote:
They need libwebsockets installed, there may also be an issue on OSX regarding ssh headers, if that's the case then openssl needs to be installed (again as there is a system version without headers) as well using homebrew or whatever, libwebsockets is available through homebrew too.
Ed

On 13 December 2016 at 16:50, Richard <zappfinger@gmail.com> wrote:
I see, it is not present in 6.08.0...

Richard

On 13/12/16 17:47, Victor Lazzarini wrote:
Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 16:42, Richard <zappfinger@GMAIL.COM> wrote:

I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...

Richard


On 13/12/16 17:37, Ed Costello wrote:
The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
Ed

On 13 Dec 2016, at 12:46, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:

This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
It probably has some dependencies. Check your cmake options.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 12:43, Richard <zappfinger@gmail.com> wrote:

I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,

but I get an error:

error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
line 16:
   kinput websocket <<<
Unexpected untyped word kinput when expecting a variable

csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?


Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2016-12-13 17:10
FromEd Costello
SubjectRe: websocket error
Victor merged it there, so should be on github, let me know if there’s any issues as I haven’t touched the raspberry pi in a little while, but I should be able to help you build it pretty quickly if there are.
Ed

On 13 Dec 2016, at 17:08, Richard <zappfinger@GMAIL.COM> wrote:

Great! Do you have a link to the source? Or is it the one on Github?

Richard


On 13/12/16 18:04, Ed Costello wrote:
I actually updated it so I could use it on the raspberry pi! So I'd imagine so :)
Ed

On 13 December 2016 at 17:02, Richard <zappfinger@gmail.com> wrote:

Actually, I also need the opcode on my Raspberry Pi's. I use the COSMO release now, that does not seem to have it.
Is the OS X source compatible with the Pi?

Richard


On 13/12/16 17:55, Ed Costello wrote:
They need libwebsockets installed, there may also be an issue on OSX regarding ssh headers, if that's the case then openssl needs to be installed (again as there is a system version without headers) as well using homebrew or whatever, libwebsockets is available through homebrew too.
Ed

On 13 December 2016 at 16:50, Richard <zappfinger@gmail.com> wrote:
I see, it is not present in 6.08.0...

Richard

On 13/12/16 17:47, Victor Lazzarini wrote:
Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 16:42, Richard <zappfinger@GMAIL.COM> wrote:

I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...

Richard


On 13/12/16 17:37, Ed Costello wrote:
The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
Ed

On 13 Dec 2016, at 12:46, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:

This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
It probably has some dependencies. Check your cmake options.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 12:43, Richard <zappfinger@gmail.com> wrote:

I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,

but I get an error:

error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
line 16:
   kinput websocket <<<
Unexpected untyped word kinput when expecting a variable

csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?


Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2016-12-13 17:36
FromVictor Lazzarini
SubjectRe: websocket error
got it built, but it actually needed me to go and build libssl first, and twice, for i386 and x86_64, then configure libwebsockets to build for both archs.
Btw, never seem an installer install so many files as the one from openssl. Scary.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 13 Dec 2016, at 16:55, Ed Costello  wrote:
> 
> They need libwebsockets installed, there may also be an issue on OSX regarding ssh headers, if that's the case then openssl needs to be installed (again as there is a system version without headers) as well using homebrew or whatever, libwebsockets is available through homebrew too.
> Ed
> 
> On 13 December 2016 at 16:50, Richard  wrote:
> I see, it is not present in 6.08.0...
> 
> Richard
> 
> On 13/12/16 17:47, Victor Lazzarini wrote:
> Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
> 
> On 13 Dec 2016, at 16:42, Richard  wrote:
> 
> I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...
> 
> Richard
> 
> 
> On 13/12/16 17:37, Ed Costello wrote:
> The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
> Ed
> 
> On 13 Dec 2016, at 12:46, Victor Lazzarini  wrote:
> 
> This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
> It probably has some dependencies. Check your cmake options.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
> 
> On 13 Dec 2016, at 12:43, Richard  wrote:
> 
> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
> 
> but I get an error:
> 
> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
> line 16:
>    kinput websocket <<<
> Unexpected untyped word kinput when expecting a variable
> 
> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
> 
> 
> Richard
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 18:14
FromRichard
SubjectRe: websocket error

I do not see any recent changes there, maybe Victor merged in the big Csound branch (wherever that is).
Would you also have Cmake files to build your opcode (next to the Xcode project)?

Richad


On 13/12/16 18:10, Ed Costello wrote:
Victor merged it there, so should be on github, let me know if there’s any issues as I haven’t touched the raspberry pi in a little while, but I should be able to help you build it pretty quickly if there are.
Ed

On 13 Dec 2016, at 17:08, Richard <zappfinger@GMAIL.COM> wrote:

Great! Do you have a link to the source? Or is it the one on Github?

Richard


On 13/12/16 18:04, Ed Costello wrote:
I actually updated it so I could use it on the raspberry pi! So I'd imagine so :)
Ed

On 13 December 2016 at 17:02, Richard <zappfinger@gmail.com> wrote:

Actually, I also need the opcode on my Raspberry Pi's. I use the COSMO release now, that does not seem to have it.
Is the OS X source compatible with the Pi?

Richard


On 13/12/16 17:55, Ed Costello wrote:
They need libwebsockets installed, there may also be an issue on OSX regarding ssh headers, if that's the case then openssl needs to be installed (again as there is a system version without headers) as well using homebrew or whatever, libwebsockets is available through homebrew too.
Ed

On 13 December 2016 at 16:50, Richard <zappfinger@gmail.com> wrote:
I see, it is not present in 6.08.0...

Richard

On 13/12/16 17:47, Victor Lazzarini wrote:
Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 16:42, Richard <zappfinger@GMAIL.COM> wrote:

I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...

Richard


On 13/12/16 17:37, Ed Costello wrote:
The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
Ed

On 13 Dec 2016, at 12:46, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:

This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
It probably has some dependencies. Check your cmake options.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 12:43, Richard <zappfinger@gmail.com> wrote:

I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,

but I get an error:

error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
line 16:
   kinput websocket <<<
Unexpected untyped word kinput when expecting a variable

csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?


Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2016-12-13 18:24
FromEd Costello
SubjectRe: websocket error
The files are merged into the develop branch I believe,
Ed

On 13 Dec 2016, at 18:14, Richard <zappfinger@GMAIL.COM> wrote:

I do not see any recent changes there, maybe Victor merged in the big Csound branch (wherever that is).
Would you also have Cmake files to build your opcode (next to the Xcode project)?

Richad


On 13/12/16 18:10, Ed Costello wrote:
Victor merged it there, so should be on github, let me know if there’s any issues as I haven’t touched the raspberry pi in a little while, but I should be able to help you build it pretty quickly if there are.
Ed

On 13 Dec 2016, at 17:08, Richard <zappfinger@GMAIL.COM> wrote:

Great! Do you have a link to the source? Or is it the one on Github?

Richard


On 13/12/16 18:04, Ed Costello wrote:
I actually updated it so I could use it on the raspberry pi! So I'd imagine so :)
Ed

On 13 December 2016 at 17:02, Richard <zappfinger@gmail.com> wrote:

Actually, I also need the opcode on my Raspberry Pi's. I use the COSMO release now, that does not seem to have it.
Is the OS X source compatible with the Pi?

Richard


On 13/12/16 17:55, Ed Costello wrote:
They need libwebsockets installed, there may also be an issue on OSX regarding ssh headers, if that's the case then openssl needs to be installed (again as there is a system version without headers) as well using homebrew or whatever, libwebsockets is available through homebrew too.
Ed

On 13 December 2016 at 16:50, Richard <zappfinger@gmail.com> wrote:
I see, it is not present in 6.08.0...

Richard

On 13/12/16 17:47, Victor Lazzarini wrote:
Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 16:42, Richard <zappfinger@GMAIL.COM> wrote:

I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...

Richard


On 13/12/16 17:37, Ed Costello wrote:
The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
Ed

On 13 Dec 2016, at 12:46, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:

This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
It probably has some dependencies. Check your cmake options.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 13 Dec 2016, at 12:43, Richard <zappfinger@gmail.com> wrote:

I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,

but I get an error:

error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
line 16:
   kinput websocket <<<
Unexpected untyped word kinput when expecting a variable

csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?


Richard

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2016-12-13 18:51
FromVictor Lazzarini
SubjectRe: websocket error
it builds fine here on OSX.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 13 Dec 2016, at 18:24, Ed Costello  wrote:
> 
> The files are merged into the develop branch I believe,
> Ed
> 
>> On 13 Dec 2016, at 18:14, Richard  wrote:
>> 
>> I do not see any recent changes there, maybe Victor merged in the big Csound branch (wherever that is).
>> Would you also have Cmake files to build your opcode (next to the Xcode project)?
>> 
>> Richad
>> 
>> On 13/12/16 18:10, Ed Costello wrote:
>>> Victor merged it there, so should be on github, let me know if there’s any issues as I haven’t touched the raspberry pi in a little while, but I should be able to help you build it pretty quickly if there are.
>>> Ed
>>> 
>>>> On 13 Dec 2016, at 17:08, Richard  wrote:
>>>> 
>>>> Great! Do you have a link to the source? Or is it the one on Github?
>>>> Richard
>>>> 
>>>> On 13/12/16 18:04, Ed Costello wrote:
>>>>> I actually updated it so I could use it on the raspberry pi! So I'd imagine so :)
>>>>> Ed
>>>>> 
>>>>> On 13 December 2016 at 17:02, Richard  wrote:
>>>>> Actually, I also need the opcode on my Raspberry Pi's. I use the COSMO release now, that does not seem to have it.
>>>>> Is the OS X source compatible with the Pi?
>>>>> 
>>>>> Richard
>>>>> 
>>>>> On 13/12/16 17:55, Ed Costello wrote:
>>>>>> They need libwebsockets installed, there may also be an issue on OSX regarding ssh headers, if that's the case then openssl needs to be installed (again as there is a system version without headers) as well using homebrew or whatever, libwebsockets is available through homebrew too.
>>>>>> Ed
>>>>>> 
>>>>>> On 13 December 2016 at 16:50, Richard  wrote:
>>>>>> I see, it is not present in 6.08.0...
>>>>>> 
>>>>>> Richard
>>>>>> 
>>>>>> On 13/12/16 17:47, Victor Lazzarini wrote:
>>>>>> Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>> 
>>>>>> On 13 Dec 2016, at 16:42, Richard  wrote:
>>>>>> 
>>>>>> I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...
>>>>>> 
>>>>>> Richard
>>>>>> 
>>>>>> 
>>>>>> On 13/12/16 17:37, Ed Costello wrote:
>>>>>> The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
>>>>>> Ed
>>>>>> 
>>>>>> On 13 Dec 2016, at 12:46, Victor Lazzarini  wrote:
>>>>>> 
>>>>>> This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
>>>>>> It probably has some dependencies. Check your cmake options.
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>> 
>>>>>> On 13 Dec 2016, at 12:43, Richard  wrote:
>>>>>> 
>>>>>> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
>>>>>> 
>>>>>> but I get an error:
>>>>>> 
>>>>>> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
>>>>>> line 16:
>>>>>>    kinput websocket <<<
>>>>>> Unexpected untyped word kinput when expecting a variable
>>>>>> 
>>>>>> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
>>>>>> 
>>>>>> 
>>>>>> Richard
>>>>>> 
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>       https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>         https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>          https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>        https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>> 
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>          https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>> 
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>        https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>> 
>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>> 
>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>> 
>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>> 
>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>> 
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>> 
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 18:56
FromRichard
SubjectRe: websocket error
Ok, could you explain the generic steps please? I'm rather new to Cmake 
and adding a plugin to csound...

Richard


On 13/12/16 19:51, Victor Lazzarini wrote:
> it builds fine here on OSX.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 13 Dec 2016, at 18:24, Ed Costello  wrote:
>>
>> The files are merged into the develop branch I believe,
>> Ed
>>
>>> On 13 Dec 2016, at 18:14, Richard  wrote:
>>>
>>> I do not see any recent changes there, maybe Victor merged in the big Csound branch (wherever that is).
>>> Would you also have Cmake files to build your opcode (next to the Xcode project)?
>>>
>>> Richad
>>>
>>> On 13/12/16 18:10, Ed Costello wrote:
>>>> Victor merged it there, so should be on github, let me know if there’s any issues as I haven’t touched the raspberry pi in a little while, but I should be able to help you build it pretty quickly if there are.
>>>> Ed
>>>>
>>>>> On 13 Dec 2016, at 17:08, Richard  wrote:
>>>>>
>>>>> Great! Do you have a link to the source? Or is it the one on Github?
>>>>> Richard
>>>>>
>>>>> On 13/12/16 18:04, Ed Costello wrote:
>>>>>> I actually updated it so I could use it on the raspberry pi! So I'd imagine so :)
>>>>>> Ed
>>>>>>
>>>>>> On 13 December 2016 at 17:02, Richard  wrote:
>>>>>> Actually, I also need the opcode on my Raspberry Pi's. I use the COSMO release now, that does not seem to have it.
>>>>>> Is the OS X source compatible with the Pi?
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>> On 13/12/16 17:55, Ed Costello wrote:
>>>>>>> They need libwebsockets installed, there may also be an issue on OSX regarding ssh headers, if that's the case then openssl needs to be installed (again as there is a system version without headers) as well using homebrew or whatever, libwebsockets is available through homebrew too.
>>>>>>> Ed
>>>>>>>
>>>>>>> On 13 December 2016 at 16:50, Richard  wrote:
>>>>>>> I see, it is not present in 6.08.0...
>>>>>>>
>>>>>>> Richard
>>>>>>>
>>>>>>> On 13/12/16 17:47, Victor Lazzarini wrote:
>>>>>>> Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>>
>>>>>>> On 13 Dec 2016, at 16:42, Richard  wrote:
>>>>>>>
>>>>>>> I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...
>>>>>>>
>>>>>>> Richard
>>>>>>>
>>>>>>>
>>>>>>> On 13/12/16 17:37, Ed Costello wrote:
>>>>>>> The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
>>>>>>> Ed
>>>>>>>
>>>>>>> On 13 Dec 2016, at 12:46, Victor Lazzarini  wrote:
>>>>>>>
>>>>>>> This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
>>>>>>> It probably has some dependencies. Check your cmake options.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>>
>>>>>>> On 13 Dec 2016, at 12:43, Richard  wrote:
>>>>>>>
>>>>>>> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
>>>>>>>
>>>>>>> but I get an error:
>>>>>>>
>>>>>>> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
>>>>>>> line 16:
>>>>>>>     kinput websocket <<<
>>>>>>> Unexpected untyped word kinput when expecting a variable
>>>>>>>
>>>>>>> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
>>>>>>>
>>>>>>>
>>>>>>> Richard
>>>>>>>
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>          https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>           https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>         https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>           https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>         https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>
>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>
>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-13 19:02
FromVictor Lazzarini
SubjectRe: websocket error
you need libwebsockets installed, you can get it from https://libwebsockets.org/, then
just turn the option on in CMAKE, from the build dir,
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
and run make. 

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 13 Dec 2016, at 18:56, Richard  wrote:
> 
> Ok, could you explain the generic steps please? I'm rather new to Cmake and adding a plugin to csound...
> 
> Richard
> 
> 
> On 13/12/16 19:51, Victor Lazzarini wrote:
>> it builds fine here on OSX.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 13 Dec 2016, at 18:24, Ed Costello  wrote:
>>> 
>>> The files are merged into the develop branch I believe,
>>> Ed
>>> 
>>>> On 13 Dec 2016, at 18:14, Richard  wrote:
>>>> 
>>>> I do not see any recent changes there, maybe Victor merged in the big Csound branch (wherever that is).
>>>> Would you also have Cmake files to build your opcode (next to the Xcode project)?
>>>> 
>>>> Richad
>>>> 
>>>> On 13/12/16 18:10, Ed Costello wrote:
>>>>> Victor merged it there, so should be on github, let me know if there’s any issues as I haven’t touched the raspberry pi in a little while, but I should be able to help you build it pretty quickly if there are.
>>>>> Ed
>>>>> 
>>>>>> On 13 Dec 2016, at 17:08, Richard  wrote:
>>>>>> 
>>>>>> Great! Do you have a link to the source? Or is it the one on Github?
>>>>>> Richard
>>>>>> 
>>>>>> On 13/12/16 18:04, Ed Costello wrote:
>>>>>>> I actually updated it so I could use it on the raspberry pi! So I'd imagine so :)
>>>>>>> Ed
>>>>>>> 
>>>>>>> On 13 December 2016 at 17:02, Richard  wrote:
>>>>>>> Actually, I also need the opcode on my Raspberry Pi's. I use the COSMO release now, that does not seem to have it.
>>>>>>> Is the OS X source compatible with the Pi?
>>>>>>> 
>>>>>>> Richard
>>>>>>> 
>>>>>>> On 13/12/16 17:55, Ed Costello wrote:
>>>>>>>> They need libwebsockets installed, there may also be an issue on OSX regarding ssh headers, if that's the case then openssl needs to be installed (again as there is a system version without headers) as well using homebrew or whatever, libwebsockets is available through homebrew too.
>>>>>>>> Ed
>>>>>>>> 
>>>>>>>> On 13 December 2016 at 16:50, Richard  wrote:
>>>>>>>> I see, it is not present in 6.08.0...
>>>>>>>> 
>>>>>>>> Richard
>>>>>>>> 
>>>>>>>> On 13/12/16 17:47, Victor Lazzarini wrote:
>>>>>>>> Actually I only realised now that I have not been building this on OSX, so you won’t find it in the binary release.
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>> 
>>>>>>>> On 13 Dec 2016, at 16:42, Richard  wrote:
>>>>>>>> 
>>>>>>>> I think I downloaded the OS X csound package, did not compile it. I see that there is a new version 6.08 available for OS X, so will give that a try first...
>>>>>>>> 
>>>>>>>> Richard
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On 13/12/16 17:37, Ed Costello wrote:
>>>>>>>> The web socket opcode was linking to an old version of the library, I have just updated it so it’ll work with version 2 of the library, maybe it wasn’t compiling on your system because it was looking for the web socket cancel service function, which doesn’t exist in version 2 of the library. I have an open pull request that has the updated version, I had updated it a while ago but just hadn’t uploaded my changes to github.
>>>>>>>> Ed
>>>>>>>> 
>>>>>>>> On 13 Dec 2016, at 12:46, Victor Lazzarini  wrote:
>>>>>>>> 
>>>>>>>> This means that the opcode is not in your system. If you build it yourself, you will need to add it to the build.
>>>>>>>> It probably has some dependencies. Check your cmake options.
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>> 
>>>>>>>> On 13 Dec 2016, at 12:43, Richard  wrote:
>>>>>>>> 
>>>>>>>> I am trying the websocket example http://www.csounds.com/manual/html/websocket.html,
>>>>>>>> 
>>>>>>>> but I get an error:
>>>>>>>> 
>>>>>>>> error: syntax error, unexpected T_IDENT  (token "websocket") from file websocket.csd (1)
>>>>>>>> line 16:
>>>>>>>>    kinput websocket <<<
>>>>>>>> Unexpected untyped word kinput when expecting a variable
>>>>>>>> 
>>>>>>>> csound -z shows no websocket opcode, but this is version 6.07. How do I get the opcode?
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Richard
>>>>>>>> 
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> 
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> 
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> 
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>> 
>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-14 13:51
FromRichard
SubjectRe: websocket error
I tried to do that but get an error:

RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
   Unknown CMake command "check_include_file".

I had cloned csound and copied the csound/websockets dir to another dir 
to compile.

Richard


On 13/12/16 20:02, Victor Lazzarini wrote:
> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-14 14:13
FromVictor Lazzarini
SubjectRe: websocket error
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 14 Dec 2016, at 13:51, Richard  wrote:
> 
> I tried to do that but get an error:
> 
> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
> CMake Error at CMakeLists.txt:17 (check_include_file):
>  Unknown CMake command "check_include_file".
> 
> I had cloned csound and copied the csound/websockets dir to another dir to compile.
> 
> Richard
> 
> 
> On 13/12/16 20:02, Victor Lazzarini wrote:
>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-14 14:42
FromRichard
SubjectRe: websocket error
I installed from their site, a GUI app, my version is very recent:

RMA:build richard$ cmake --version
cmake version 3.7.1


On 14/12/16 15:13, Victor Lazzarini wrote:
> Maybe you need to update your cmake version (I am running 3.0.1 here).
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 14 Dec 2016, at 13:51, Richard  wrote:
>>
>> I tried to do that but get an error:
>>
>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>   Unknown CMake command "check_include_file".
>>
>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>
>> Richard
>>
>>
>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-14 14:53
FromVictor Lazzarini
SubjectRe: websocket error
Maybe it disappeared from cmake in later
versions?


https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:

I installed from their site, a GUI app, my version is very recent:

RMA:build richard$ cmake --version
cmake version 3.7.1


On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:

I tried to do that but get an error:

RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".

I had cloned csound and copied the csound/websockets dir to another dir to compile.

Richard


On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-14 14:55
FromRichard
SubjectRe: websocket error

Then we're in trouble ;-).
I'll do some more research..


On 14/12/16 15:53, Victor Lazzarini wrote:
Maybe it disappeared from cmake in later
versions?


https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:

I installed from their site, a GUI app, my version is very recent:

RMA:build richard$ cmake --version
cmake version 3.7.1


On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:

I tried to do that but get an error:

RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".

I had cloned csound and copied the csound/websockets dir to another dir to compile.

Richard


On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2016-12-14 17:19
FromEd Costello
SubjectRe: websocket error
Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed

On 14 Dec 2016 14:55, "Richard" <zappfinger@gmail.com> wrote:

Then we're in trouble ;-).
I'll do some more research..


On 14/12/16 15:53, Victor Lazzarini wrote:
Maybe it disappeared from cmake in later
versions?


https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:

I installed from their site, a GUI app, my version is very recent:

RMA:build richard$ cmake --version
cmake version 3.7.1


On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:

I tried to do that but get an error:

RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".

I had cloned csound and copied the csound/websockets dir to another dir to compile.

Richard


On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-14 21:54
FromRichard
SubjectRe: websocket error

That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):
  Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version.
How did you get version 3?

Richard


On 14/12/16 18:19, Ed Costello wrote:
Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed

On 14 Dec 2016 14:55, "Richard" <zappfinger@gmail.com> wrote:

Then we're in trouble ;-).
I'll do some more research..


On 14/12/16 15:53, Victor Lazzarini wrote:
Maybe it disappeared from cmake in later
versions?


https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:

I installed from their site, a GUI app, my version is very recent:

RMA:build richard$ cmake --version
cmake version 3.7.1


On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:

I tried to do that but get an error:

RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".

I had cloned csound and copied the csound/websockets dir to another dir to compile.

Richard


On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2016-12-14 21:58
FromEd Costello
SubjectRe: websocket error

On 14 December 2016 at 21:54, Richard <zappfinger@gmail.com> wrote:

That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):
  Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version.
How did you get version 3?

Richard


On 14/12/16 18:19, Ed Costello wrote:
Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed

On 14 Dec 2016 14:55, "Richard" <zappfinger@gmail.com> wrote:

Then we're in trouble ;-).
I'll do some more research..


On 14/12/16 15:53, Victor Lazzarini wrote:
Maybe it disappeared from cmake in later
versions?


https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:

I installed from their site, a GUI app, my version is very recent:

RMA:build richard$ cmake --version
cmake version 3.7.1


On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:

I tried to do that but get an error:

RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".

I had cloned csound and copied the csound/websockets dir to another dir to compile.

Richard


On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-14 22:00
FromEd Costello
SubjectRe: websocket error
Apparently this works:

sudo apt-get install build-essential
wget http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install

On 14 December 2016 at 21:58, Ed Costello <phasereset@gmail.com> wrote:

On 14 December 2016 at 21:54, Richard <zappfinger@gmail.com> wrote:

That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):
  Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version.
How did you get version 3?

Richard


On 14/12/16 18:19, Ed Costello wrote:
Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed

On 14 Dec 2016 14:55, "Richard" <zappfinger@gmail.com> wrote:

Then we're in trouble ;-).
I'll do some more research..


On 14/12/16 15:53, Victor Lazzarini wrote:
Maybe it disappeared from cmake in later
versions?


https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:

I installed from their site, a GUI app, my version is very recent:

RMA:build richard$ cmake --version
cmake version 3.7.1


On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:

I tried to do that but get an error:

RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".

I had cloned csound and copied the csound/websockets dir to another dir to compile.

Richard


On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-14 23:36
FromRichard
SubjectRe: websocket error

No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...


On 14/12/16 23:00, Ed Costello wrote:
Apparently this works:

sudo apt-get install build-esse
 ntial
wget http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install

On 14 December 2016 at 21:58, Ed Costello <phasereset@gmail.com> wrote:

On 14 December 2016 at 21:54, Richard <zappfinger@gmail.com> wrote:

That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):
  Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version.
How did you get version 3?

Richard


On 14/12/16 18:19, Ed Costello wrote:
Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed

On 14 Dec 2016 14:55, "Richard" <zappfinger@gmail.com> wrote:

Then we're in trouble ;-).
I'll do some more research..


On 14/12/16 15:53, Victor Lazzarini wrote:
Maybe it disappeared from cmake in later
versions?


https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:

I installed from their site, a GUI app, my version is very recent:

RMA:build richard$ cmake --version
cmake version 3.7.1


On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:

I tried to do that but get an error:

RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".

I had cloned csound and copied the csound/websockets dir to another dir to compile.

Richard


On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2016-12-14 23:40
FromEd Costello
SubjectRe: websocket error
OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
Ed

On 14 December 2016 at 23:36, Richard <zappfinger@gmail.com> wrote:

No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...


On 14/12/16 23:00, Ed Costello wrote:
Apparently this works:

sudo apt-get install build-essential
wget http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install

On 14 December 2016 at 21:58, Ed Costello <phasereset@gmail.com> wrote:

On 14 December 2016 at 21:54, Richard <zappfinger@gmail.com> wrote:

That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):
  Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version.
How did you get version 3?

Richard


On 14/12/16 18:19, Ed Costello wrote:
Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed

On 14 Dec 2016 14:55, "Richard" <zappfinger@gmail.com> wrote:

Then we're in trouble ;-).
I'll do some more research..


On 14/12/16 15:53, Victor Lazzarini wrote:
Maybe it disappeared from cmake in later
versions?


https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:

I installed from their site, a GUI app, my version is very recent:

RMA:build richard$ cmake --version
cmake version 3.7.1


On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:

I tried to do that but get an error:

RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".

I had cloned csound and copied the csound/websockets dir to another dir to compile.

Richard


On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-17 15:17
FromRichard
SubjectRe: websocket error

It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..

Richard


On 15/12/16 00:40, Ed Costello wrote:
OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
Ed

On 14 December 2016 at 23:36, Richard <zappfinger@gmail.com> wrote:

No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...


On 14/12/16 23:00, Ed Costello wrote:
Apparently this works:

sudo apt-get inst
 all build-essential
wget http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install
On 14 December 2016 at 21:58, Ed Costello <phasereset@gmail.com> wrote:
On 14 December 2016 at 21:54, Richard <zappfinger@gmail.com> wrote:

That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?

Richard

On 14/12/16 18:19, Ed Costello wrote:
Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed
On 14 Dec 2016 14:55, "Richard" <zappfinger@gmail.com> wrote:

Then we're in trouble ;-). I'll do some more research..

On 14/12/16 15:53, Victor Lazzarini wrote:
Maybe it disappeared from cmake in later
versions?
https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:
I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952
On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:
I tried to do that but get an error:
RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".
I had cloned csound and copied the csound/websockets dir to another dir to compile.
Richard
On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-17 15:36
FromVictor Lazzarini
SubjectRe: websocket error
But that function is builtin, not added to CMakeLists.txt.

If there were such a problem with the script, the code would not be built anywhere else,
and it is being built on osx and linux.

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

On 17 Dec 2016, at 15:18, Richard <zappfinger@GMAIL.COM> wrote:

It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..

Richard


On 15/12/16 00:40, Ed Costello wrote:
OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
Ed

On 14 December 2016 at 23:36, Richard <zappfinger@gmail.com> wrote:

No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...


On 14/12/16 23:00, Ed Costello wrote:
Apparently this works:

sudo apt-get install build-essential
wget http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install
On 14 December 2016 at 21:58, Ed Costello <phasereset@gmail.com> wrote:
On 14 December 2016 at 21:54, Richard <zappfinger@gmail.com> wrote:

That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?

Richard

On 14/12/16 18:19, Ed Costello wrote:
Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed
On 14 Dec 2016 14:55, "Richard" <zappfinger@gmail.com> wrote:

Then we're in trouble ;-). I'll do some more research..

On 14/12/16 15:53, Victor Lazzarini wrote:
Maybe it disappeared from cmake in later
versions?
https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:
I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952
On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:
I tried to do that but get an error:
RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".
I had cloned csound and copied the csound/websockets dir to another dir to compile.
Richard
On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-17 15:40
FromRichard
SubjectRe: websocket error

I had to add the line:

include(CheckIncludeFile)

for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...

Richard


On 17/12/16 16:36, Victor Lazzarini wrote:
But that function is builtin, not added to CMakeLists.txt.

If there were such a problem with the script, the code would not be built anywhere else,
and it is being built on osx and linux.

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

On 17 Dec 2016, at 15:18, Richard <zappfinger@GMAIL.COM> wrote:

It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..

Richard


On 15/12/16 00:40, Ed Costello wrote:
OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
Ed

On 14 December 2016 at 23:36, Richard <zappfinger@gmail.com> wrote:

No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...


On 14/12/16 23:00, Ed Costello wrote:
Apparently this works:

sudo apt-ge
 t install build-essential
wget http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install
On 14 December 2016 at 21:58, Ed Costello <phasereset@gmail.com> wrote:
On 14 December 2016 at 21:54, Richard <zappfinger@gmail.com> wrote:

That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?

Richard

On 14/12/16 18:19, Ed Costello wrote:
Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed
On 14 Dec 2016 14:55, "Richard" <zappfinger@gmail.com> wrote:

Then we're in trouble ;-). I'll do some more research..

On 14/12/16 15:53, Victor Lazzarini wrote:
Maybe it disappeared from cmake in later
versions?
https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:
I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952
On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:
I tried to do that but get an error:
RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".
I had cloned csound and copied the csound/websockets dir to another dir to compile.
Richard
On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-17 18:25
FromRichard
SubjectRe: websocket error

Maybe I was not clear:
I am not building csound as a whole, only the websockets plugin.

The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:

set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
include(TestBigEndian)
include(CheckFunctionExists)
include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
include(CheckIncludeFileCXX)
include(CheckLibraryExists)
include(CMakeParseArguments)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)

It also defines some functions, like 'check_deps':

# Checks if dependencies for an enabled target are fulfilled.
# If FAIL_MISSING is true and the dependencies are not fulfilled,
# it will abort the cmake run.
# If FAIL_MISSING is false, it will set the option to OFF.
# If the target is not enabled, it will do nothing.
# example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
function(check_deps option)
    if(${option})
         ....

The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...

Richard




On 17/12/16 16:40, Richard wrote:

I had to add the line:

include(CheckIncludeFile)

for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...

Richard


On 17/12/16 16:36, Victor Lazzarini wrote:
But that function is builtin, not added to CMakeLists.txt.

If there were such a problem with the script, the code would not be built anywhere else,
and it is being built on osx and linux.

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

On 17 Dec 2016, at 15:18, Richard <zappfinger@GMAIL.COM> wrote:

It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..

Richard


On 15/12/16 00:40, Ed Costello wrote:
OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
Ed

On 14 December 2016 at 23:36, Richard <zappfinger@gmail.com> wrote:

No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...


On 14/12/16 23:00, Ed Costello wrote:
Apparently this works:

sudo apt-
 get install build-essential
wget http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install
On 14 December 2016 at 21:58, Ed Costello <phasereset@gmail.com> wrote:
On 14 December 2016 at 21:54, Richard <zappfinger@gmail.com> wrote:

That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?

Richard

On 14/12/16 18:19, Ed Costello wrote:
Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed
On 14 Dec 2016 14:55, "Richard" <zappfinger@gmail.com> wrote:

Then we're in trouble ;-). I'll do some more research..

On 14/12/16 15:53, Victor Lazzarini wrote:
Maybe it disappeared from cmake in later
versions?
https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:
I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952
On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:
I tried to do that but get an error:
RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".
I had cloned csound and copied the csound/websockets dir to another dir to compile.
Richard
On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-17 20:46
FromVictor Lazzarini
SubjectRe: websocket error
Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
just build as normal, and the opcode will be built if all the dependencies are there etc.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 17 Dec 2016, at 18:25, Richard  wrote:
> 
> Maybe I was not clear:
> I am not building csound as a whole, only the websockets plugin.
> 
> The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:
> 
> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
> include(TestBigEndian)
> include(CheckFunctionExists)
> include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently 
> include(CheckIncludeFileCXX)
> include(CheckLibraryExists)
> include(CMakeParseArguments)
> include(CheckCCompilerFlag)
> include(CheckCXXCompilerFlag)
> 
> It also defines some functions, like 'check_deps':
> 
> # Checks if dependencies for an enabled target are fulfilled.
> # If FAIL_MISSING is true and the dependencies are not fulfilled,
> # it will abort the cmake run.
> # If FAIL_MISSING is false, it will set the option to OFF.
> # If the target is not enabled, it will do nothing.
> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
> function(check_deps option)
>     if(${option})
>          ....
> 
> The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
> So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...
> 
> Richard
> 
> 
> 
> On 17/12/16 16:40, Richard wrote:
>> I had to add the line:
>> 
>> include(CheckIncludeFile)
>> 
>> for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...
>> 
>> Richard
>> 
>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>> But that function is builtin, not added to CMakeLists.txt.
>>> 
>>> If there were such a problem with the script, the code would not be built anywhere else,
>>> and it is being built on osx and linux.
>>> 
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>> 
>>> On 17 Dec 2016, at 15:18, Richard  wrote:
>>> 
>>>> It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..
>>>> 
>>>> Richard
>>>> 
>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>> OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
>>>>> Ed
>>>>> 
>>>>> On 14 December 2016 at 23:36, Richard  wrote:
>>>>> No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...
>>>>> 
>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>> Apparently this works:
>>>>>> 
>>>>>> sudo apt-get install build-essential
>>>>>> wget 
>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>> 
>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>> cd cmake-3.2.3
>>>>>> ./configure
>>>>>> sudo make install
>>>>>> 
>>>>>> On 14 December 2016 at 21:58, Ed Costello  wrote:
>>>>>> Think I built it from source http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>> On 14 December 2016 at 21:54, Richard  wrote:
>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>>>>>> 
>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".
>>>>>> 
>>>>>> I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?
>>>>>> 
>>>>>> Richard
>>>>>> 
>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>> Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>> Ed
>>>>>>> On 14 Dec 2016 14:55, "Richard"  wrote:
>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>> 
>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>> versions?
>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>> Maynooth University
>>>>>>>> Ireland
>>>>>>>> On 14 Dec 2016, at 14:43, Richard  wrote:
>>>>>>>>> I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>> Maybe you need to update your cmake version (I am running 3.0.1 here).
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard  wrote:
>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>  Unknown CMake command "check_include_file".
>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>>>>>>>>>> Richard
>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-17 21:32
FromRichard
SubjectRe: websocket error

Ok, maybe what I am doing wrong is:

I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin

Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.

You said:

just turn the option on in CMAKE, from the build dir,
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1

But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
The latter does not work for me..  
In other words, what do I need to do to only compile the websockets plugin, not full csound?

Richard


On 17/12/16 21:46, Victor Lazzarini wrote:
Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
just build as normal, and the opcode will be built if all the dependencies are there etc.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

On 17 Dec 2016, at 18:25, Richard <zappfinger@gmail.com> wrote:

Maybe I was not clear:
I am not building csound as a whole, only the websockets plugin.

The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:

set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
include(TestBigEndian)
include(CheckFunctionExists)
include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently 
include(CheckIncludeFileCXX)
include(CheckLibraryExists)
include(CMakeParseArguments)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)

It also defines some functions, like 'check_deps':

# Checks if dependencies for an enabled target are fulfilled.
# If FAIL_MISSING is true and the dependencies are not fulfilled,
# it will abort the cmake run.
# If FAIL_MISSING is false, it will set the option to OFF.
# If the target is not enabled, it will do nothing.
# example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
function(check_deps option)
    if(${option})
         ....

The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...

Richard



On 17/12/16 16:40, Richard wrote:
I had to add the line:

include(CheckIncludeFile)

for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...

Richard

On 17/12/16 16:36, Victor Lazzarini wrote:
But that function is builtin, not added to CMakeLists.txt.

If there were such a problem with the script, the code would not be built anywhere else,
and it is being built on osx and linux.

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

On 17 Dec 2016, at 15:18, Richard <zappfinger@GMAIL.COM> wrote:

It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..

Richard

On 15/12/16 00:40, Ed Costello wrote:
OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
Ed

On 14 December 2016 at 23:36, Richard <zappfinger@gmail.com> wrote:
No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...

On 14/12/16 23:00, Ed Costello wrote:
Apparently this works:

sudo apt-get install build-essential
wget 
http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz

tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install

On 14 December 2016 at 21:58, Ed Costello <phasereset@gmail.com> wrote:
Think I built it from source http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
On 14 December 2016 at 21:54, Richard <zappfinger@gmail.com> wrote:
That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?

Richard

On 14/12/16 18:19, Ed Costello wrote:
Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed
On 14 Dec 2016 14:55, "Richard" <zappfinger@gmail.com> wrote:
Then we're in trouble ;-). I'll do some more research..

On 14/12/16 15:53, Victor Lazzarini wrote:
Maybe it disappeared from cmake in later
versions?
https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
On 14 Dec 2016, at 14:43, Richard <zappfinger@GMAIL.COM> wrote:
I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952
On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com> wrote:
I tried to do that but get an error:
RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".
I had cloned csound and copied the csound/websockets dir to another dir to compile.
Richard
On 13/12/16 20:02, Victor Lazzarini wrote:
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


Date2016-12-17 21:36
FromVictor Lazzarini
SubjectRe: websocket error
No, you should run the command from the Csound build directory, as usual, adding the option, which will include
the opcode in your build. Don’t modify any of the CMakeFiles.txt.

If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 17 Dec 2016, at 21:32, Richard  wrote:
> 
> Ok, maybe what I am doing wrong is:
> 
> I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin
> 
> Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.
> 
> You said:
> 
> just turn the option on in CMAKE, from the build dir,
> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
> 
> 
> But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
> The latter does not work for me..  
> 
> In other words, what do I need to do to only compile the websockets plugin, not full csound?
> 
> Richard
> 
> 
> On 17/12/16 21:46, Victor Lazzarini wrote:
>> Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
>> just build as normal, and the opcode will be built if all the dependencies are there etc.
>> 
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952 
>> 
>> 
>>> On 17 Dec 2016, at 18:25, Richard 
>>>  wrote:
>>> 
>>> Maybe I was not clear:
>>> I am not building csound as a whole, only the websockets plugin.
>>> 
>>> The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:
>>> 
>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>> include(TestBigEndian)
>>> include(CheckFunctionExists)
>>> include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently 
>>> include(CheckIncludeFileCXX)
>>> include(CheckLibraryExists)
>>> include(CMakeParseArguments)
>>> include(CheckCCompilerFlag)
>>> include(CheckCXXCompilerFlag)
>>> 
>>> It also defines some functions, like 'check_deps':
>>> 
>>> # Checks if dependencies for an enabled target are fulfilled.
>>> # If FAIL_MISSING is true and the dependencies are not fulfilled,
>>> # it will abort the cmake run.
>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>> # If the target is not enabled, it will do nothing.
>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
>>> function(check_deps option)
>>>     if(${option})
>>>          ....
>>> 
>>> The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
>>> So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...
>>> 
>>> Richard
>>> 
>>> 
>>> 
>>> On 17/12/16 16:40, Richard wrote:
>>> 
>>>> I had to add the line:
>>>> 
>>>> include(CheckIncludeFile)
>>>> 
>>>> for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...
>>>> 
>>>> Richard
>>>> 
>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>> 
>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>> 
>>>>> If there were such a problem with the script, the code would not be built anywhere else,
>>>>> and it is being built on osx and linux.
>>>>> 
>>>>> Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>> Maynooth University
>>>>> Ireland
>>>>> 
>>>>> On 17 Dec 2016, at 15:18, Richard 
>>>>> 
>>>>>  wrote:
>>>>> 
>>>>> 
>>>>>> It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..
>>>>>> 
>>>>>> Richard
>>>>>> 
>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>> 
>>>>>>> OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
>>>>>>> Ed
>>>>>>> 
>>>>>>> On 14 December 2016 at 23:36, Richard 
>>>>>>> 
>>>>>>>  wrote:
>>>>>>> No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...
>>>>>>> 
>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>> 
>>>>>>>> Apparently this works:
>>>>>>>> 
>>>>>>>> sudo apt-get install build-essential
>>>>>>>> wget 
>>>>>>>> 
>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>> 
>>>>>>>> 
>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>> cd cmake-3.2.3
>>>>>>>> ./configure
>>>>>>>> sudo make install
>>>>>>>> 
>>>>>>>> On 14 December 2016 at 21:58, Ed Costello 
>>>>>>>> 
>>>>>>>>  wrote:
>>>>>>>> Think I built it from source 
>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>> 
>>>>>>>> On 14 December 2016 at 21:54, Richard 
>>>>>>>> 
>>>>>>>>  wrote:
>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>>>>>>>> 
>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".
>>>>>>>> 
>>>>>>>> I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?
>>>>>>>> 
>>>>>>>> Richard
>>>>>>>> 
>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>> 
>>>>>>>>> Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>>>> Ed
>>>>>>>>> On 14 Dec 2016 14:55, "Richard" 
>>>>>>>>> 
>>>>>>>>>  wrote:
>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>> 
>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>> 
>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>> versions?
>>>>>>>>>> 
>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>  Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>> Maynooth University
>>>>>>>>>> Ireland
>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard 
>>>>>>>>>> 
>>>>>>>>>>  wrote:
>>>>>>>>>> 
>>>>>>>>>>> I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> Maybe you need to update your cmake version (I am running 3.0.1 here).
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>> 
>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard 
>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>  Unknown CMake command "check_include_file".
>>>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>> 
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>       
>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> 
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> 
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> 
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>         
>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>> 
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> 
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>> 
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>> 
>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list 
>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>> 
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list 
>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>> 
>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list 
>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>> 
>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>  Discussions of bugs and features can be posted here
>>>>>> 
>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>  Discussions of bugs and features can be posted here
>>>>> 
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>  Discussions of bugs and features can be posted here
>>> 
>> Csound mailing list
>> 
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> 
>> Send bugs reports to
>>         
>> https://github.com/csound/csound/issues
>> 
>> Discussions of bugs and features can be posted here
>> 
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-17 21:44
FromMichael Gogins
SubjectRe: websocket error
Websockets currently fail to build on Windows with msys64:

[ 82%] Building C object
Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj
cd /D/msys64/home/restore/csound/mingw64/csound-mingw64/Opcodes/websockets
&& /D/msys64/mingw64/bin/gcc.exe  -DCS_VSTHOST -DHAVE_STRTOK_R
-DHAVE__SPRINTF_L -DHAVE__STRTOD_L -DUSE_LRINT
-DVST_FORCE_DEPRECATED=0 -DWIN32 -D_CSOUND_RELEASE_
-DwebsocketIO_EXPORTS -I"/C/Program
Files/Mega-Nerd/libsndfile/include/sndfile.h"
-I/D/msys64/home/restore/csound/./H
-I/D/msys64/home/restore/csound/./include
-I/D/msys64/home/restore/csound/./Engine
-I/D/msys64/home/restore/csound/.
-I/D/msys64/home/restore/csound/mingw64/csound-mingw64
-I/D/msys64/home/restore/csound/mingw64/csound-mingw64/include
-I/D/msys64/mingw64/include -I/D/msys64/mingw64/include/python2.7
-I/D/msys64/home/restore/csound/include
-I/D/msys64/mingw64/include/luajit-2.0
-I/D/msys64/home/restore/csound/interfaces
-I/D/msys64/mingw64/include/vstsdk2.4
-I/D/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x
-I/D/msys64/mingw64/include/vstsdk2.4/pluginterfaces/source/vst2.x
-mfpmath=sse -msse2 -fomit-frame-pointer -mstackrealign -static-libgcc
-static -fvisibility=hidden -O2 -g -DNDEBUG   -Wno-format -o
CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj   -c
/D/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c
cc1.exe: warning: C:/Program
Files/Mega-Nerd/libsndfile/include/sndfile.h: not a directory
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:27:2:
warning: #import is a deprecated GCC extension [-Wdeprecated]
 #import 
  ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:28:2:
warning: #import is a deprecated GCC extension [-Wdeprecated]
 #import 
  ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:29:2:
warning: #import is a deprecated GCC extension [-Wdeprecated]
 #import 
  ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:30:2:
warning: #import is a deprecated GCC extension [-Wdeprecated]
 #import 
  ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c: In
function 'WebSocketOpcode_finish':
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:158:5:
warning: implicit declaration of function 'lws_cancel_service'
[-Wimplicit-function-declaration]
     lws_cancel_service(self->webSocket->context);
     ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:159:5:
warning: implicit declaration of function 'lws_context_destroy'
[-Wimplicit-function-declaration]
     lws_context_destroy(self->webSocket->context);
     ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c: In
function 'WebSocketOpcode_writeOnce':
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:326:5:
warning: implicit declaration of function 'lws_write'
[-Wimplicit-function-declaration]
     lws_write(websocket, messageBuffer, inputArgument->bytesCount,
LWS_WRITE_BINARY);
     ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c: In
function 'WebSocketOpcode_handleServerWritable':
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:365:44:
warning: implicit declaration of function 'lws_get_protocol'
[-Wimplicit-function-declaration]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:365:44:
warning: initialization makes pointer from integer without a cast
[-Wint-conversion]
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:367:17:
error: dereferencing pointer to incomplete type 'const struct
lws_protocols'
     if (protocol->id / OUTPUT_OFFSET == 1) { // If it's an output argument
                 ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:369:9:
warning: implicit declaration of function 'usleep'
[-Wimplicit-function-declaration]
         usleep(100);
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:398:9:
warning: implicit declaration of function 'lws_callback_on_writable'
[-Wimplicit-function-declaration]
         lws_callback_on_writable(websocket);
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c: In
function 'WebSocketOpcode_handleReceive':
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:404:44:
warning: initialization makes pointer from integer without a cast
[-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c: At
top level:
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:456:31:
warning: 'enum lws_callback_reasons' declared inside parameter list
                               void *user, void *inputData, size_t
inputDataSize)
                               ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:456:31:
warning: its scope is only this definition or declaration, which is
probably not what you want
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:455:57:
error: parameter 2 ('reason') has incomplete type
                               enum lws_callback_reasons reason,
                                                         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c: In
function 'Websocket_callback':
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:465:44:
warning: initialization makes pointer from integer without a cast
[-Wint-conversion]
     const struct lws_protocols *protocol = lws_get_protocol(websocket);
                                            ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:466:56:
error: invalid type argument of '->' (have 'int')
     WebSocketOpcode *self = lws_get_protocol(websocket)->user;
                                                        ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c: In
function 'WebSocketOpcode_processThread':
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:509:9:
warning: implicit declaration of function 'lws_service'
[-Wimplicit-function-declaration]
         lws_service(self->webSocket->context, 10);
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:510:9:
warning: implicit declaration of function
'lws_callback_on_writable_all_protocol'
[-Wimplicit-function-declaration]
         lws_callback_on_writable_all_protocol(self->webSocket->context,
&self->webSocket->protocols[0]);
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:510:9:
error: invalid use of undefined type 'struct lws_protocols'
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:510:100:
error: dereferencing pointer to incomplete type 'struct lws_protocols'
         lws_callback_on_writable_all_protocol(self->webSocket->context,
&self->webSocket->protocols[0]);

                             ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c: In
function 'WebSocketOpcode_initialiseWebSocket':
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:521:64:
error: invalid application of 'sizeof' to incomplete type 'struct
lws_protocols'
     self->webSocket->protocols = csound->Calloc(csound, sizeof(struct
lws_protocols) * (argumentsCount + 1)); //Last protocol is null
                                                                ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:526:9:
error: invalid use of undefined type 'struct lws_protocols'
         self->webSocket->protocols[argumentIndex].name =
self->inputArguments[i].name;
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:527:9:
error: invalid use of undefined type 'struct lws_protocols'
         self->webSocket->protocols[argumentIndex].callback =
Websocket_callback;
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:528:9:
error: invalid use of undefined type 'struct lws_protocols'
         self->webSocket->protocols[argumentIndex].id = INPUT_OFFSET + i;
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:529:9:
error: invalid use of undefined type 'struct lws_protocols'
         self->webSocket->protocols[argumentIndex].user = self;
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:530:9:
error: invalid use of undefined type 'struct lws_protocols'
         self->webSocket->protocols[argumentIndex].per_session_data_size
= sizeof(WebSocketOpcode *);
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:535:9:
error: invalid use of undefined type 'struct lws_protocols'
         self->webSocket->protocols[argumentIndex].name =
self->outputArguments[i].name;
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:536:9:
error: invalid use of undefined type 'struct lws_protocols'
         self->webSocket->protocols[argumentIndex].callback =
Websocket_callback;
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:537:9:
error: invalid use of undefined type 'struct lws_protocols'
         self->webSocket->protocols[argumentIndex].id = OUTPUT_OFFSET + i;
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:538:9:
error: invalid use of undefined type 'struct lws_protocols'
         self->webSocket->protocols[argumentIndex].user = self;
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:539:9:
error: invalid use of undefined type 'struct lws_protocols'
         self->webSocket->protocols[argumentIndex].per_session_data_size
= sizeof(WebSocketOpcode *);
         ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:544:37:
warning: assignment from incompatible pointer type
[-Wincompatible-pointer-types]
     self->webSocket->info.protocols = self->webSocket->protocols;
                                     ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:549:32:
warning: implicit declaration of function 'lws_create_context'
[-Wimplicit-function-declaration]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                                ^
D:/msys64/home/restore/csound/Opcodes/websockets/WebSocketOpcode.c:549:30:
warning: assignment makes pointer from integer without a cast
[-Wint-conversion]
     self->webSocket->context = lws_create_context(&self->webSocket->info);
                              ^
Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:65: recipe
for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj'
failed
make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.obj]
Error 1
make[2]: Leaving directory '/home/restore/csound/mingw64/csound-mingw64'
CMakeFiles/Makefile2:1444: recipe for target
'Opcodes/websockets/CMakeFiles/websocketIO.dir/all' failed
make[1]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/restore/csound/mingw64/csound-mingw64'
[ 83%] Built target csdebugger
make[2]: Leaving directory '/home/restore/csound/mingw64/csound-mingw64'
[ 84%] Built target libcsnd6
make[2]: Leaving directory '/home/restore/csound/mingw64/csound-mingw64'
[ 85%] Built target vst4cs
make[1]: Leaving directory '/home/restore/csound/mingw64/csound-mingw64'
Makefile:163: recipe for target 'all' failed
make: *** [all] Error 2
make: INTERNAL: Exiting with 4 jobserver tokens available; should be 6!
Failed to run make.

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Tue, Dec 13, 2016 at 7:43 AM, Richard  wrote:
> I am trying the websocket example
> http://www.csounds.com/manual/html/websocket.html,
>
> but I get an error:
>
> error: syntax error, unexpected T_IDENT  (token "websocket") from file
> websocket.csd (1)
>  line 16:
>>>>    kinput websocket <<<
> Unexpected untyped word kinput when expecting a variable
>
> csound -z shows no websocket opcode, but this is version 6.07. How do I get
> the opcode?
>
>
> Richard
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-17 21:50
FromMichael Gogins
SubjectRe: websocket error
My 2 cents:

Write a batch file to compile just the plugin. You can find out what
to put in it by examining the VERBOSE output of the Cmake command.
Just cut and paste from the CMake output.

Or,

Build the whole kit and caboodle. CMake should examine all the up to
date targets and decide not to build them after all. It should only
take a few minutes to do this.

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sat, Dec 17, 2016 at 4:32 PM, Richard  wrote:
> Ok, maybe what I am doing wrong is:
>
> I'm running the cmake .. command form the ../Opcodes/websockets/build
> directory, assuming that that will only build the websockets plugin
>
> Maybe I should run cmake from the cs6make dir? But I do not want to build
> csound, only the websockets plugin.
>
> You said:
>
> just turn the option on in CMAKE, from the build dir,
> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>
> But what build dir did you mean? The one above csound-develop or the one
> above Opcodes/websockets?
> The latter does not work for me..
>
> In other words, what do I need to do to only compile the websockets plugin,
> not full csound?
>
> Richard
>
>
>
> On 17/12/16 21:46, Victor Lazzarini wrote:
>
> Not sure I follow. If you add the websockets build option, the scripts
> should take care of it, you
> just build as normal, and the opcode will be built if all the dependencies
> are there etc.
>
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
> On 17 Dec 2016, at 18:25, Richard  wrote:
>
> Maybe I was not clear:
> I am not building csound as a whole, only the websockets plugin.
>
> The CMakeLists.txt file in the csound-develop folder contains everything,
> for example this section:
>
> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
> include(TestBigEndian)
> include(CheckFunctionExists)
> include(CheckIncludeFile)  <== 'check_include_file' is defined here
> apparently
> include(CheckIncludeFileCXX)
> include(CheckLibraryExists)
> include(CMakeParseArguments)
> include(CheckCCompilerFlag)
> include(CheckCXXCompilerFlag)
>
> It also defines some functions, like 'check_deps':
>
> # Checks if dependencies for an enabled target are fulfilled.
> # If FAIL_MISSING is true and the dependencies are not fulfilled,
> # it will abort the cmake run.
> # If FAIL_MISSING is false, it will set the option to OFF.
> # If the target is not enabled, it will do nothing.
> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
> function(check_deps option)
>     if(${option})
>          ....
>
> The CMakeLists.txt file in the Opcodes/websocket folder does not contain
> these lines. It is trying to use the functions 'check_include_file' and
> 'check_deps', but it cannot find them, since they are not included or
> defined.
> So to only build the websockets plugin I cannot use this CMakeLists.txt
> without modifications...
>
> Richard
>
>
>
> On 17/12/16 16:40, Richard wrote:
>
> I had to add the line:
>
> include(CheckIncludeFile)
>
> for this function 'check_include-file' to work. Then I found the next
> missing function 'check_deps', and so on...
>
> Richard
>
> On 17/12/16 16:36, Victor Lazzarini wrote:
>
> But that function is builtin, not added to CMakeLists.txt.
>
> If there were such a problem with the script, the code would not be built
> anywhere else,
> and it is being built on osx and linux.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 17 Dec 2016, at 15:18, Richard  wrote:
>
> It seems that my unknown command comes from the fact that many functions
> used by Cmake are either defined in an include file or at the start of the
> generic csound CMakeLists.txt. The CMakeLists.txt defined in the
> Opcodes/websockets dir can therefore not be used as such to build only the
> websockets opcode. I am adding gradually more lines to CMakeLists.txt in the
> websockets folder and things are improving. Still not there yet, but getting
> close..
>
> Richard
>
> On 15/12/16 00:40, Ed Costello wrote:
>
> OK, theres a bug in receiving data from Csound in the browser anyway, I'll
> have a look at that and the CMakelists file and see if I can sort it out.
> Ed
>
> On 14 December 2016 at 23:36, Richard  wrote:
> No luck. After following your steps I am now on version 3.2.3 on my RPi, but
> the error is still there...
>
> On 14/12/16 23:00, Ed Costello wrote:
>
> Apparently this works:
>
> sudo apt-get install build-essential
> wget
> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>
> tar xzf cmake-3.2.3.tar.gz
> cd cmake-3.2.3
> ./configure
> sudo make install
>
> On 14 December 2016 at 21:58, Ed Costello  wrote:
> Think I built it from source
> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
> On 14 December 2016 at 21:54, Richard  wrote:
> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>
> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake
> command "check_include_file".
>
> I tried to install cmake with apt-get, but it says cmake is already the
> latest version. How did you get version 3?
>
> Richard
>
> On 14/12/16 18:19, Ed Costello wrote:
>
> Maybe not, it may not be essential to have that in the cmake lists file.
> Although it looks like it is possible to use cmake 3 on the pi.
> Ed
> On 14 Dec 2016 14:55, "Richard"  wrote:
> Then we're in trouble ;-). I'll do some more research..
>
> On 14/12/16 15:53, Victor Lazzarini wrote:
>
> Maybe it disappeared from cmake in later
> versions?
> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html Victor
> Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> On 14 Dec 2016, at 14:43, Richard  wrote:
>
> I installed from their site, a GUI app, my version is very recent: RMA:build
> richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor
> Lazzarini wrote:
>
> Maybe you need to update your cmake version (I am running 3.0.1 here).
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
> On 14 Dec 2016, at 13:51, Richard  wrote:
> I tried to do that but get an error:
> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
> CMake Error at CMakeLists.txt:17 (check_include_file):
>  Unknown CMake command "check_include_file".
> I had cloned csound and copied the csound/websockets dir to another dir to
> compile.
> Richard
> On 13/12/16 20:02, Victor Lazzarini wrote:
>
> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-17 22:53
FromRichard
SubjectRe: websocket error
Ok, makes sense. But the next hurdle is: on my RPi I cannot compile 
csound because of an error with pffft/neon. I have no clue on how to 
disable this.

In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: 
#error You must enable NEON instructions (e.g. -mfloat-abi=softfp 
-mfpu=neon) to use arm_neon.h

I added these options in Cmake to no avail, so now I just want to 
disable neon or the compiling of pffft...

Richard


On 17/12/16 22:36, Victor Lazzarini wrote:
> No, you should run the command from the Csound build directory, as usual, adding the option, which will include
> the opcode in your build. Don’t modify any of the CMakeFiles.txt.
>
> If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.
>
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>
>> Ok, maybe what I am doing wrong is:
>>
>> I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin
>>
>> Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.
>>
>> You said:
>>
>> just turn the option on in CMAKE, from the build dir,
>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>
>>
>> But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
>> The latter does not work for me..
>>
>> In other words, what do I need to do to only compile the websockets plugin, not full csound?
>>
>> Richard
>>
>>
>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>> Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
>>> just build as normal, and the opcode will be built if all the dependencies are there etc.
>>>
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>
>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>   wrote:
>>>>
>>>> Maybe I was not clear:
>>>> I am not building csound as a whole, only the websockets plugin.
>>>>
>>>> The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:
>>>>
>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>> include(TestBigEndian)
>>>> include(CheckFunctionExists)
>>>> include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
>>>> include(CheckIncludeFileCXX)
>>>> include(CheckLibraryExists)
>>>> include(CMakeParseArguments)
>>>> include(CheckCCompilerFlag)
>>>> include(CheckCXXCompilerFlag)
>>>>
>>>> It also defines some functions, like 'check_deps':
>>>>
>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>> # If FAIL_MISSING is true and the dependencies are not fulfilled,
>>>> # it will abort the cmake run.
>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>> # If the target is not enabled, it will do nothing.
>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
>>>> function(check_deps option)
>>>>      if(${option})
>>>>           ....
>>>>
>>>> The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
>>>> So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...
>>>>
>>>> Richard
>>>>
>>>>
>>>>
>>>> On 17/12/16 16:40, Richard wrote:
>>>>
>>>>> I had to add the line:
>>>>>
>>>>> include(CheckIncludeFile)
>>>>>
>>>>> for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...
>>>>>
>>>>> Richard
>>>>>
>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>
>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>
>>>>>> If there were such a problem with the script, the code would not be built anywhere else,
>>>>>> and it is being built on osx and linux.
>>>>>>
>>>>>> Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>> Maynooth University
>>>>>> Ireland
>>>>>>
>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>> 
>>>>>>   wrote:
>>>>>>
>>>>>>
>>>>>>> It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..
>>>>>>>
>>>>>>> Richard
>>>>>>>
>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>
>>>>>>>> OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
>>>>>>>> Ed
>>>>>>>>
>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>> 
>>>>>>>>   wrote:
>>>>>>>> No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...
>>>>>>>>
>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>
>>>>>>>>> Apparently this works:
>>>>>>>>>
>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>> wget
>>>>>>>>>
>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>> cd cmake-3.2.3
>>>>>>>>> ./configure
>>>>>>>>> sudo make install
>>>>>>>>>
>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>> 
>>>>>>>>>   wrote:
>>>>>>>>> Think I built it from source
>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>
>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>> 
>>>>>>>>>   wrote:
>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>>>>>>>>>
>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".
>>>>>>>>>
>>>>>>>>> I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?
>>>>>>>>>
>>>>>>>>> Richard
>>>>>>>>>
>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>
>>>>>>>>>> Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>>>>> Ed
>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>> 
>>>>>>>>>>   wrote:
>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>
>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>
>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>> versions?
>>>>>>>>>>>
>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>   Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>> Maynooth University
>>>>>>>>>>> Ireland
>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>> 
>>>>>>>>>>>   wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Maybe you need to update your cmake version (I am running 3.0.1 here).
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard 
>>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>   Unknown CMake command "check_include_file".
>>>>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>        
>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>          
>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>
>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>
>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>
>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>   Discussions of bugs and features can be posted here
>>>>>>
>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>   Discussions of bugs and features can be posted here
>>>>
>>> Csound mailing list
>>>
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>
>>> Send bugs reports to
>>>          
>>> https://github.com/csound/csound/issues
>>>
>>> Discussions of bugs and features can be posted here
>>>
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-17 22:59
FromMichael Gogins
SubjectRe: websocket error
Try adding -mfloat-abi=softfp -mfpu=neon to your CMAKE_C_FLAGS.

FYI it is easier to use a script than a custom CMake file. Mine looks
like this, might give you some ideas:

cmake ../.. -G "MSYS Makefiles" \
-DBUILD_CSOUNDVST=1 \
-DBUILD_PD_CLASS=0 \
-DBUILD_STATIC_LIBRARY=1 \
-DBUILD_TESTS=0 \
-DBUILD_VST4CS_OPCODES=1 \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_VERBOSE_MAKEFILE=1 \
-DMUSICXML_LIBRARY:FILEPATH=/mingw64/bin/libmusicxml2.dll \
-DNEED_PORTTIME=0 \
-DPTHREAD_LIBRARY:FILEPATH=/mingw64/x86_64-w64-mingw32/lib/libpthread.a \
-DTCL_VERSION=8.5 \
-DUSE_CURL=0 \
-DUSE_GETTEXT=0 \
-DUSE_OPEN_MP=0 \
-D_WIN32=1 \
-DPYTHON_INCLUDE_DIRS:PATH="C:/Program Files/Anaconda2/include" \
-DPYTHON_LIBRARIES:FILEPATH="C:/Program Files/Anaconda2/libs/python27.a" \
-DSTK_LIBRARY:FILEPATH=/mingw64/lib/libstk.a \
-DLIBSNDFILE_LIBRARY:FILEPATH="C:\Program
Files\Mega-Nerd\libsndfile\bin\libsndfile-1.dll" \
-DSNDFILE_H_PATH:FILEPATH="C:\Program
Files\Mega-Nerd\libsndfile\include\sndfile.h" \
-DBUILD_WEBSOCKET_OPCODE=0

Of course many of these wouldn't be correct for you, but you could add
the neon flags like this:

cmake ../.. -G "MSYS Makefiles" \
-DCMAKE_C_FLAGS="-mfloat-abi=softfp -mfpu=neon" \
-DBUILD_CSOUNDVST=1 \
-DBUILD_PD_CLASS=0 \
-DBUILD_STATIC_LIBRARY=1 \
-DBUILD_TESTS=0 \
-DBUILD_VST4CS_OPCODES=1 \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_VERBOSE_MAKEFILE=1 \
-DMUSICXML_LIBRARY:FILEPATH=/mingw64/bin/libmusicxml2.dll \
-DNEED_PORTTIME=0 \
-DPTHREAD_LIBRARY:FILEPATH=/mingw64/x86_64-w64-mingw32/lib/libpthread.a \
-DTCL_VERSION=8.5 \
-DUSE_CURL=0 \
-DUSE_GETTEXT=0 \
-DUSE_OPEN_MP=0 \
-D_WIN32=1 \
-DPYTHON_INCLUDE_DIRS:PATH="C:/Program Files/Anaconda2/include" \
-DPYTHON_LIBRARIES:FILEPATH="C:/Program Files/Anaconda2/libs/python27.a" \
-DSTK_LIBRARY:FILEPATH=/mingw64/lib/libstk.a \
-DLIBSNDFILE_LIBRARY:FILEPATH="C:\Program
Files\Mega-Nerd\libsndfile\bin\libsndfile-1.dll" \
-DSNDFILE_H_PATH:FILEPATH="C:\Program
Files\Mega-Nerd\libsndfile\include\sndfile.h" \
-DBUILD_WEBSOCKET_OPCODE=0



-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sat, Dec 17, 2016 at 5:53 PM, Richard  wrote:
> Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound
> because of an error with pffft/neon. I have no clue on how to disable this.
>
> In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error
> You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to
> use arm_neon.h
>
> I added these options in Cmake to no avail, so now I just want to disable
> neon or the compiling of pffft...
>
> Richard
>
>
>
> On 17/12/16 22:36, Victor Lazzarini wrote:
>>
>> No, you should run the command from the Csound build directory, as usual,
>> adding the option, which will include
>> the opcode in your build. Don’t modify any of the CMakeFiles.txt.
>>
>> If Csound is already built, only the websocket opcodes will be added.
>> That’s how cmake & make work.
>>
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>>
>>> Ok, maybe what I am doing wrong is:
>>>
>>> I'm running the cmake .. command form the ../Opcodes/websockets/build
>>> directory, assuming that that will only build the websockets plugin
>>>
>>> Maybe I should run cmake from the cs6make dir? But I do not want to build
>>> csound, only the websockets plugin.
>>>
>>> You said:
>>>
>>> just turn the option on in CMAKE, from the build dir,
>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>
>>>
>>> But what build dir did you mean? The one above csound-develop or the one
>>> above Opcodes/websockets?
>>> The latter does not work for me..
>>>
>>> In other words, what do I need to do to only compile the websockets
>>> plugin, not full csound?
>>>
>>> Richard
>>>
>>>
>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>
>>>> Not sure I follow. If you add the websockets build option, the scripts
>>>> should take care of it, you
>>>> just build as normal, and the opcode will be built if all the
>>>> dependencies are there etc.
>>>>
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>
>>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>>   wrote:
>>>>>
>>>>> Maybe I was not clear:
>>>>> I am not building csound as a whole, only the websockets plugin.
>>>>>
>>>>> The CMakeLists.txt file in the csound-develop folder contains
>>>>> everything, for example this section:
>>>>>
>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>> include(TestBigEndian)
>>>>> include(CheckFunctionExists)
>>>>> include(CheckIncludeFile)  <== 'check_include_file' is defined here
>>>>> apparently
>>>>> include(CheckIncludeFileCXX)
>>>>> include(CheckLibraryExists)
>>>>> include(CMakeParseArguments)
>>>>> include(CheckCCompilerFlag)
>>>>> include(CheckCXXCompilerFlag)
>>>>>
>>>>> It also defines some functions, like 'check_deps':
>>>>>
>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>> # If FAIL_MISSING is true and the dependencies are not fulfilled,
>>>>> # it will abort the cmake run.
>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>> # If the target is not enabled, it will do nothing.
>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE
>>>>> BISON_EXECUTABLE)
>>>>> function(check_deps option)
>>>>>      if(${option})
>>>>>           ....
>>>>>
>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does not
>>>>> contain these lines. It is trying to use the functions 'check_include_file'
>>>>> and 'check_deps', but it cannot find them, since they are not included or
>>>>> defined.
>>>>> So to only build the websockets plugin I cannot use this CMakeLists.txt
>>>>> without modifications...
>>>>>
>>>>> Richard
>>>>>
>>>>>
>>>>>
>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>
>>>>>> I had to add the line:
>>>>>>
>>>>>> include(CheckIncludeFile)
>>>>>>
>>>>>> for this function 'check_include-file' to work. Then I found the next
>>>>>> missing function 'check_deps', and so on...
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>
>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>
>>>>>>> If there were such a problem with the script, the code would not be
>>>>>>> built anywhere else,
>>>>>>> and it is being built on osx and linux.
>>>>>>>
>>>>>>> Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>> Maynooth University
>>>>>>> Ireland
>>>>>>>
>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>> 
>>>>>>>   wrote:
>>>>>>>
>>>>>>>
>>>>>>>> It seems that my unknown command comes from the fact that many
>>>>>>>> functions used by Cmake are either defined in an include file or at the
>>>>>>>> start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in
>>>>>>>> the Opcodes/websockets dir can therefore not be used as such to build only
>>>>>>>> the websockets opcode. I am adding gradually more lines to CMakeLists.txt in
>>>>>>>> the websockets folder and things are improving. Still not there yet, but
>>>>>>>> getting close..
>>>>>>>>
>>>>>>>> Richard
>>>>>>>>
>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>
>>>>>>>>> OK, theres a bug in receiving data from Csound in the browser
>>>>>>>>> anyway, I'll have a look at that and the CMakelists file and see if I can
>>>>>>>>> sort it out.
>>>>>>>>> Ed
>>>>>>>>>
>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>> 
>>>>>>>>>   wrote:
>>>>>>>>> No luck. After following your steps I am now on version 3.2.3 on my
>>>>>>>>> RPi, but the error is still there...
>>>>>>>>>
>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>
>>>>>>>>>> Apparently this works:
>>>>>>>>>>
>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>> wget
>>>>>>>>>>
>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>> ./configure
>>>>>>>>>> sudo make install
>>>>>>>>>>
>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>> 
>>>>>>>>>>   wrote:
>>>>>>>>>> Think I built it from source
>>>>>>>>>>
>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>
>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>> 
>>>>>>>>>>   wrote:
>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same
>>>>>>>>>> error:
>>>>>>>>>>
>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown
>>>>>>>>>> CMake command "check_include_file".
>>>>>>>>>>
>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake is
>>>>>>>>>> already the latest version. How did you get version 3?
>>>>>>>>>>
>>>>>>>>>> Richard
>>>>>>>>>>
>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>
>>>>>>>>>>> Maybe not, it may not be essential to have that in the cmake
>>>>>>>>>>> lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>>>>>> Ed
>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>> 
>>>>>>>>>>>   wrote:
>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>
>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>> versions?
>>>>>>>>>>>>
>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>   Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>> Ireland
>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>> 
>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> I installed from their site, a GUI app, my version is very
>>>>>>>>>>>>> recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16
>>>>>>>>>>>>> 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am running
>>>>>>>>>>>>>> 3.0.1 here).
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard 
>>>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>   Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to
>>>>>>>>>>>>>>> another dir to compile.
>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>
>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>
>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>> https://github.com/csound/csound/issues
>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues
>>>>>   Discussions of bugs and features can be posted here
>>>>>
>>>> Csound mailing list
>>>>
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>
>>>> Send bugs reports to
>>>>          https://github.com/csound/csound/issues
>>>>
>>>> Discussions of bugs and features can be posted here
>>>>
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>          https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-17 23:36
FromVictor Lazzarini
SubjectRe: websocket error
Instructions are here

https://github.com/csound/csound/blob/develop/BUILD.md#raspian

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

On 17 Dec 2016, at 22:54, Richard <zappfinger@GMAIL.COM> wrote:

Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.

In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h

I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...

Richard


On 17/12/16 22:36, Victor Lazzarini wrote:
No, you should run the command from the Csound build directory, as usual, adding the option, which will include
the opcode in your build. Don’t modify any of the CMakeFiles.txt.

If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 17 Dec 2016, at 21:32, Richard <zappfinger@gmail.com> wrote:

Ok, maybe what I am doing wrong is:

I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin

Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.

You said:

just turn the option on in CMAKE, from the build dir,
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1


But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
The latter does not work for me..

In other words, what do I need to do to only compile the websockets plugin, not full csound?

Richard


On 17/12/16 21:46, Victor Lazzarini wrote:
Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
just build as normal, and the opcode will be built if all the dependencies are there etc.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952


On 17 Dec 2016, at 18:25, Richard <zappfinger@gmail.com>
 wrote:

Maybe I was not clear:
I am not building csound as a whole, only the websockets plugin.

The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:

set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
include(TestBigEndian)
include(CheckFunctionExists)
include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
include(CheckIncludeFileCXX)
include(CheckLibraryExists)
include(CMakeParseArguments)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)

It also defines some functions, like 'check_deps':

# Checks if dependencies for an enabled target are fulfilled.
# If FAIL_MISSING is true and the dependencies are not fulfilled,
# it will abort the cmake run.
# If FAIL_MISSING is false, it will set the option to OFF.
# If the target is not enabled, it will do nothing.
# example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
function(check_deps option)
    if(${option})
         ....

The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...

Richard



On 17/12/16 16:40, Richard wrote:

I had to add the line:

include(CheckIncludeFile)

for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...

Richard

On 17/12/16 16:36, Victor Lazzarini wrote:

But that function is builtin, not added to CMakeLists.txt.

If there were such a problem with the script, the code would not be built anywhere else,
and it is being built on osx and linux.

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

On 17 Dec 2016, at 15:18, Richard
<zappfinger@GMAIL.COM>
 wrote:


It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..

Richard

On 15/12/16 00:40, Ed Costello wrote:

OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
Ed

On 14 December 2016 at 23:36, Richard
<zappfinger@gmail.com>
 wrote:
No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...

On 14/12/16 23:00, Ed Costello wrote:

Apparently this works:

sudo apt-get install build-essential
wget

http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz


tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install

On 14 December 2016 at 21:58, Ed Costello
<phasereset@gmail.com>
 wrote:
Think I built it from source
http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html

On 14 December 2016 at 21:54, Richard
<zappfinger@gmail.com>
 wrote:
That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?

Richard

On 14/12/16 18:19, Ed Costello wrote:

Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed
On 14 Dec 2016 14:55, "Richard"
<zappfinger@gmail.com>
 wrote:
Then we're in trouble ;-). I'll do some more research..

On 14/12/16 15:53, Victor Lazzarini wrote:

Maybe it disappeared from cmake in later
versions?

https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
 Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
On 14 Dec 2016, at 14:43, Richard
<zappfinger@GMAIL.COM>
 wrote:

I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:

Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com>
 wrote:
I tried to do that but get an error:
RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".
I had cloned csound and copied the csound/websockets dir to another dir to compile.
Richard
On 13/12/16 20:02, Victor Lazzarini wrote:

cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
      https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
        https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
        https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-18 02:22
FromEd Costello
SubjectRe: websocket error
Seems Windows doesn’t know about #import, but also that seems to have been changed by jpffitch in the last commit to #include in develop, my bad.
Ed

On 17 Dec 2016, at 23:36, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:

Instructions are here

https://github.com/csound/csound/blob/develop/BUILD.md#raspian

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

On 17 Dec 2016, at 22:54, Richard <zappfinger@GMAIL.COM> wrote:

Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.

In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h

I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...

Richard


On 17/12/16 22:36, Victor Lazzarini wrote:
No, you should run the command from the Csound build directory, as usual, adding the option, which will include
the opcode in your build. Don’t modify any of the CMakeFiles.txt.

If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 17 Dec 2016, at 21:32, Richard <zappfinger@gmail.com> wrote:

Ok, maybe what I am doing wrong is:

I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin

Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.

You said:

just turn the option on in CMAKE, from the build dir,
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1


But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
The latter does not work for me..

In other words, what do I need to do to only compile the websockets plugin, not full csound?

Richard


On 17/12/16 21:46, Victor Lazzarini wrote:
Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
just build as normal, and the opcode will be built if all the dependencies are there etc.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952


On 17 Dec 2016, at 18:25, Richard <zappfinger@gmail.com>
 wrote:

Maybe I was not clear:
I am not building csound as a whole, only the websockets plugin.

The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:

set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
include(TestBigEndian)
include(CheckFunctionExists)
include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
include(CheckIncludeFileCXX)
include(CheckLibraryExists)
include(CMakeParseArguments)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)

It also defines some functions, like 'check_deps':

# Checks if dependencies for an enabled target are fulfilled.
# If FAIL_MISSING is true and the dependencies are not fulfilled,
# it will abort the cmake run.
# If FAIL_MISSING is false, it will set the option to OFF.
# If the target is not enabled, it will do nothing.
# example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
function(check_deps option)
    if(${option})
         ....

The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...

Richard



On 17/12/16 16:40, Richard wrote:

I had to add the line:

include(CheckIncludeFile)

for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...

Richard

On 17/12/16 16:36, Victor Lazzarini wrote:

But that function is builtin, not added to CMakeLists.txt.

If there were such a problem with the script, the code would not be built anywhere else,
and it is being built on osx and linux.

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

On 17 Dec 2016, at 15:18, Richard
<zappfinger@GMAIL.COM>
 wrote:


It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..

Richard

On 15/12/16 00:40, Ed Costello wrote:

OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
Ed

On 14 December 2016 at 23:36, Richard
<zappfinger@gmail.com>
 wrote:
No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...

On 14/12/16 23:00, Ed Costello wrote:

Apparently this works:

sudo apt-get install build-essential
wget

http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz


tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install

On 14 December 2016 at 21:58, Ed Costello
<phasereset@gmail.com>
 wrote:
Think I built it from source
http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html

On 14 December 2016 at 21:54, Richard
<zappfinger@gmail.com>
 wrote:
That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?

Richard

On 14/12/16 18:19, Ed Costello wrote:

Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed
On 14 Dec 2016 14:55, "Richard"
<zappfinger@gmail.com>
 wrote:
Then we're in trouble ;-). I'll do some more research..

On 14/12/16 15:53, Victor Lazzarini wrote:

Maybe it disappeared from cmake in later
versions?

https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
 Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
On 14 Dec 2016, at 14:43, Richard
<zappfinger@GMAIL.COM>
 wrote:

I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:

Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com>
 wrote:
I tried to do that but get an error:
RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".
I had cloned csound and copied the csound/websockets dir to another dir to compile.
Richard
On 13/12/16 20:02, Victor Lazzarini wrote:

cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
      https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
        https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
        https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2016-12-18 02:34
FromMichael Gogins
SubjectRe: websocket error
The #import directive is not currently standard c or c++ and I don't think we should be using it yet. It will be supported in the future to import modules. 

Regards, 
Mike

On Dec 17, 2016 9:22 PM, "Ed Costello" <phasereset@gmail.com> wrote:
Seems Windows doesn’t know about #import, but also that seems to have been changed by jpffitch in the last commit to #include in develop, my bad.
Ed

On 17 Dec 2016, at 23:36, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:

Instructions are here

https://github.com/csound/csound/blob/develop/BUILD.md#raspian

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

On 17 Dec 2016, at 22:54, Richard <zappfinger@GMAIL.COM> wrote:

Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.

In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h

I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...

Richard


On 17/12/16 22:36, Victor Lazzarini wrote:
No, you should run the command from the Csound build directory, as usual, adding the option, which will include
the opcode in your build. Don’t modify any of the CMakeFiles.txt.

If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 17 Dec 2016, at 21:32, Richard <zappfinger@gmail.com> wrote:

Ok, maybe what I am doing wrong is:

I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin

Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.

You said:

just turn the option on in CMAKE, from the build dir,
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1


But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
The latter does not work for me..

In other words, what do I need to do to only compile the websockets plugin, not full csound?

Richard


On 17/12/16 21:46, Victor Lazzarini wrote:
Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
just build as normal, and the opcode will be built if all the dependencies are there etc.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952


On 17 Dec 2016, at 18:25, Richard <zappfinger@gmail.com>
 wrote:

Maybe I was not clear:
I am not building csound as a whole, only the websockets plugin.

The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:

set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
include(TestBigEndian)
include(CheckFunctionExists)
include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
include(CheckIncludeFileCXX)
include(CheckLibraryExists)
include(CMakeParseArguments)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)

It also defines some functions, like 'check_deps':

# Checks if dependencies for an enabled target are fulfilled.
# If FAIL_MISSING is true and the dependencies are not fulfilled,
# it will abort the cmake run.
# If FAIL_MISSING is false, it will set the option to OFF.
# If the target is not enabled, it will do nothing.
# example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
function(check_deps option)
    if(${option})
         ....

The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...

Richard



On 17/12/16 16:40, Richard wrote:

I had to add the line:

include(CheckIncludeFile)

for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...

Richard

On 17/12/16 16:36, Victor Lazzarini wrote:

But that function is builtin, not added to CMakeLists.txt.

If there were such a problem with the script, the code would not be built anywhere else,
and it is being built on osx and linux.

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

On 17 Dec 2016, at 15:18, Richard
<zappfinger@GMAIL.COM>
 wrote:


It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..

Richard

On 15/12/16 00:40, Ed Costello wrote:

OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
Ed

On 14 December 2016 at 23:36, Richard
<zappfinger@gmail.com>
 wrote:
No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...

On 14/12/16 23:00, Ed Costello wrote:

Apparently this works:

sudo apt-get install build-essential
wget

http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz


tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install

On 14 December 2016 at 21:58, Ed Costello
<phasereset@gmail.com>
 wrote:
Think I built it from source
http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html

On 14 December 2016 at 21:54, Richard
<zappfinger@gmail.com>
 wrote:
That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?

Richard

On 14/12/16 18:19, Ed Costello wrote:

Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed
On 14 Dec 2016 14:55, "Richard"
<zappfinger@gmail.com>
 wrote:
Then we're in trouble ;-). I'll do some more research..

On 14/12/16 15:53, Victor Lazzarini wrote:

Maybe it disappeared from cmake in later
versions?

https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
 Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
On 14 Dec 2016, at 14:43, Richard
<zappfinger@GMAIL.COM>
 wrote:

I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:

Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com>
 wrote:
I tried to do that but get an error:
RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".
I had cloned csound and copied the csound/websockets dir to another dir to compile.
Richard
On 13/12/16 20:02, Victor Lazzarini wrote:

cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
      https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
        https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can
...
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-18 17:34
FromRichard
SubjectRe: websocket error

I am following these steps now, in this case to disable NEON support.

I have done step 1:

Try to add the correct flags for NEON compilation. This can be made by editing the top-level file Custom.cmake.ex, and saving it as Custom.cmake. ....

And then step 2:

If step 1 fails, there might be no NEON support for your arm chip, in which case, you need to change the line above to

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)

I get an error:

CMake Error: Error in cmake code at
/home/pi/cslatest/csound/Custom.cmake:34:
Parse error.  Function missing ending ")".  Instead found unterminated string with text ")

endif()

".
CMake Error at CMakeLists.txt:206 (include):
  include could not find load file:

    /home/pi/cslatest/csound/Custom.cmake


On 18/12/16 00:36, Victor Lazzarini wrote:
Instructions are here

https://github.com/csound/csound/blob/develop/BUILD.md#raspian

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

On 17 Dec 2016, at 22:54, Richard <zappfinger@GMAIL.COM> wrote:

Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.

In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h

I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...

Richard


On 17/12/16 22:36, Victor Lazzarini wrote:
No, you should run the command from the Csound build directory, as usual, adding the option, which will include
the opcode in your build. Don’t modify any of the CMakeFiles.txt.

If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 17 Dec 2016, at 21:32, Richard <zappfinger@gmail.com> wrote:

Ok, maybe what I am doing wrong is:

I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin

Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.

You said:

just turn the option on in CMAKE, from the build dir,
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1


But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
The latter does not work for me..

In other words, what do I need to do to only compile the websockets plugin, not full csound?

Richard


On 17/12/16 21:46, Victor Lazzarini wrote:
Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
just build as normal, and the opcode will be built if all the dependencies are there etc.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952


On 17 Dec 2016, at 18:25, Richard <zappfinger@gmail.com>
 wrote:

Maybe I was not clear:
I am not building csound as a whole, only the websockets plugin.

The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:

set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
include(TestBigEndian)
include(CheckFunctionExists)
include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
include(CheckIncludeFileCXX)
include(CheckLibraryExists)
include(CMakeParseArguments)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)

It also defines some functions, like 'check_deps':

# Checks if dependencies for an enabled target are fulfilled.
# If FAIL_MISSING is true and the dependencies are not fulfilled,
# it will abort the cmake run.
# If FAIL_MISSING is false, it will set the option to OFF.
# If the target is not enabled, it will do nothing.
# example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
function(check_deps option)
    if(${option})
         ....

The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...

Richard



On 17/12/16 16:40, Richard wrote:

I had to add the line:

include(CheckIncludeFile)

for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...

Richard

On 17/12/16 16:36, Victor Lazzarini wrote:

But that function is builtin, not added to CMakeLists.txt.

If there were such a problem with the script, the code would not be built anywhere else,
and it is being built on osx and linux.

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

On 17 Dec 2016, at 15:18, Richard
<zappfinger@GMAIL.COM>
 wrote:


It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..

Richard

On 15/12/16 00:40, Ed Costello wrote:

OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
Ed

On 14 December 2016 at 23:36, Richard
<zappfinger@gmail.com>
 wrote:
No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...

On 14/12/16 23:00, Ed Costello wrote:

Apparently this works:

sudo apt-get install build-essential
wget

http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz


tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install

On 14 December 2016 at 21:58, Ed Costello
<phasereset@gmail.com>
 wrote:
Think I built it from source
http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html

On 14 December 2016 at 21:54, Richard
<zappfinger@gmail.com>
 wrote:
That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?

Richard

On 14/12/16 18:19, Ed Costello wrote:

Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed
On 14 Dec 2016 14:55, "Richard"
<zappfinger@gmail.com>
 wrote:
Then we're in trouble ;-). I'll do some more research..

On 14/12/16 15:53, Victor Lazzarini wrote:

Maybe it disappeared from cmake in later
versions?

https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
 Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
On 14 Dec 2016, at 14:43, Richard
<zappfinger@GMAIL.COM>
 wrote:

I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:

Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com>
 wrote:
I tried to do that but get an error:
RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
 Unknown CMake command "check_include_file".
I had cloned csound and copied the csound/websockets dir to another dir to compile.
Richard
On 13/12/16 20:02, Victor Lazzarini wrote:

cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
      https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
        https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
 Discussions of bugs and features can be posted here

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
        https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2016-12-18 18:15
FromVictor Lazzarini
SubjectRe: websocket error
Check your Custom.cmake file for typos. There is a typing error somewhere on line 34 or before.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 18 Dec 2016, at 17:34, Richard  wrote:
> 
> I am following these steps now, in this case to disable NEON support.
> 
> I have done step 1:
> 
> Try to add the correct flags for NEON compilation. This can be made by editing the top-level file Custom.cmake.ex, and saving it as Custom.cmake. ....
> 
> And then step 2:
> 
> If step 1 fails, there might be no NEON support for your arm chip, in which case, you need to change the line above to
> 
> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
> 
> I get an error:
> 
> CMake Error: Error in cmake code at
> /home/pi/cslatest/csound/Custom.cmake:34:
> Parse error.  Function missing ending ")".  Instead found unterminated string with text ")
> 
> endif()
> 
> ".
> CMake Error at CMakeLists.txt:206 (include):
>   include could not find load file:
> 
>     /home/pi/cslatest/csound/Custom.cmake
> 
> On 18/12/16 00:36, Victor Lazzarini wrote:
>> Instructions are here
>> 
>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>> On 17 Dec 2016, at 22:54, Richard  wrote:
>> 
>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.
>>> 
>>> In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
>>> 
>>> I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...
>>> 
>>> Richard
>>> 
>>> 
>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>> No, you should run the command from the Csound build directory, as usual, adding the option, which will include
>>>> the opcode in your build. Don’t modify any of the CMakeFiles.txt.
>>>> 
>>>> If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.
>>>> 
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>> 
>>>>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>>>> 
>>>>> Ok, maybe what I am doing wrong is:
>>>>> 
>>>>> I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin
>>>>> 
>>>>> Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.
>>>>> 
>>>>> You said:
>>>>> 
>>>>> just turn the option on in CMAKE, from the build dir,
>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>> 
>>>>> 
>>>>> But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
>>>>> The latter does not work for me..
>>>>> 
>>>>> In other words, what do I need to do to only compile the websockets plugin, not full csound?
>>>>> 
>>>>> Richard
>>>>> 
>>>>> 
>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>> Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
>>>>>> just build as normal, and the opcode will be built if all the dependencies are there etc.
>>>>>> 
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>> 
>>>>>> 
>>>>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>>>>  wrote:
>>>>>>> 
>>>>>>> Maybe I was not clear:
>>>>>>> I am not building csound as a whole, only the websockets plugin.
>>>>>>> 
>>>>>>> The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:
>>>>>>> 
>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>> include(TestBigEndian)
>>>>>>> include(CheckFunctionExists)
>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
>>>>>>> include(CheckIncludeFileCXX)
>>>>>>> include(CheckLibraryExists)
>>>>>>> include(CMakeParseArguments)
>>>>>>> include(CheckCCompilerFlag)
>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>> 
>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>> 
>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>> # If FAIL_MISSING is true and the dependencies are not fulfilled,
>>>>>>> # it will abort the cmake run.
>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
>>>>>>> function(check_deps option)
>>>>>>>     if(${option})
>>>>>>>          ....
>>>>>>> 
>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
>>>>>>> So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...
>>>>>>> 
>>>>>>> Richard
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>> 
>>>>>>>> I had to add the line:
>>>>>>>> 
>>>>>>>> include(CheckIncludeFile)
>>>>>>>> 
>>>>>>>> for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...
>>>>>>>> 
>>>>>>>> Richard
>>>>>>>> 
>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>> 
>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>> 
>>>>>>>>> If there were such a problem with the script, the code would not be built anywhere else,
>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>> 
>>>>>>>>> Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>> Maynooth University
>>>>>>>>> Ireland
>>>>>>>>> 
>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>> 
>>>>>>>>>  wrote:
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>> It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..
>>>>>>>>>> 
>>>>>>>>>> Richard
>>>>>>>>>> 
>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>> 
>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
>>>>>>>>>>> Ed
>>>>>>>>>>> 
>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>> 
>>>>>>>>>>>  wrote:
>>>>>>>>>>> No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>> 
>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>> 
>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>> wget
>>>>>>>>>>>> 
>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>> ./configure
>>>>>>>>>>>> sudo make install
>>>>>>>>>>>> 
>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>> 
>>>>>>>>>>>>  wrote:
>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>> 
>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>> 
>>>>>>>>>>>>  wrote:
>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>>>>>>>>>>>> 
>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".
>>>>>>>>>>>> 
>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?
>>>>>>>>>>>> 
>>>>>>>>>>>> Richard
>>>>>>>>>>>> 
>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>>>>>>>> Ed
>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>> 
>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>  Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am running 3.0.1 here).
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard 
>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>  Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> 
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>> 
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>> 
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>> 
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>> 
>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>> 
>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>> 
>>>>>> Csound mailing list
>>>>>> 
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> 
>>>>>> Send bugs reports to
>>>>>>         https://github.com/csound/csound/issues
>>>>>> 
>>>>>> Discussions of bugs and features can be posted here
>>>>>> 
>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-18 18:29
FromRichard
SubjectRe: websocket error
That was my first idea too. I've stripped down the file to just a few 
active lines (most of it is comment):
I do not see anything strange in it

# CUSTOM PROPERTIES TO SET

# GLOBAL

#set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_VERBOSE_MAKEFILE ON)
set(BUILD_STATIC_LIBRARY ON)
set(USE_OPEN_MP OFF)
set(TCL_VERSION 8.5)
set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
##set(BUILD_CSOUND_AC OFF)
##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)

#### NOTE the processor type needs setting
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
## also to test multicore
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W 
-Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")



On 18/12/16 19:15, Victor Lazzarini wrote:
> Check your Custom.cmake file for typos. There is a typing error somewhere on line 34 or before.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 18 Dec 2016, at 17:34, Richard  wrote:
>>
>> I am following these steps now, in this case to disable NEON support.
>>
>> I have done step 1:
>>
>> Try to add the correct flags for NEON compilation. This can be made by editing the top-level file Custom.cmake.ex, and saving it as Custom.cmake. ....
>>
>> And then step 2:
>>
>> If step 1 fails, there might be no NEON support for your arm chip, in which case, you need to change the line above to
>>
>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>
>> I get an error:
>>
>> CMake Error: Error in cmake code at
>> /home/pi/cslatest/csound/Custom.cmake:34:
>> Parse error.  Function missing ending ")".  Instead found unterminated string with text ")
>>
>> endif()
>>
>> ".
>> CMake Error at CMakeLists.txt:206 (include):
>>    include could not find load file:
>>
>>      /home/pi/cslatest/csound/Custom.cmake
>>
>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>> Instructions are here
>>>
>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>>
>>> On 17 Dec 2016, at 22:54, Richard  wrote:
>>>
>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.
>>>>
>>>> In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
>>>>
>>>> I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...
>>>>
>>>> Richard
>>>>
>>>>
>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>> No, you should run the command from the Csound build directory, as usual, adding the option, which will include
>>>>> the opcode in your build. Don’t modify any of the CMakeFiles.txt.
>>>>>
>>>>> If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.
>>>>>
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>>>>>
>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>
>>>>>> I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin
>>>>>>
>>>>>> Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.
>>>>>>
>>>>>> You said:
>>>>>>
>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>
>>>>>>
>>>>>> But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
>>>>>> The latter does not work for me..
>>>>>>
>>>>>> In other words, what do I need to do to only compile the websockets plugin, not full csound?
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>>
>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>> Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
>>>>>>> just build as normal, and the opcode will be built if all the dependencies are there etc.
>>>>>>>
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>>
>>>>>>>
>>>>>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>>>>>   wrote:
>>>>>>>>
>>>>>>>> Maybe I was not clear:
>>>>>>>> I am not building csound as a whole, only the websockets plugin.
>>>>>>>>
>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:
>>>>>>>>
>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>> include(TestBigEndian)
>>>>>>>> include(CheckFunctionExists)
>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>> include(CheckLibraryExists)
>>>>>>>> include(CMakeParseArguments)
>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>
>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>
>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>> # If FAIL_MISSING is true and the dependencies are not fulfilled,
>>>>>>>> # it will abort the cmake run.
>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
>>>>>>>> function(check_deps option)
>>>>>>>>      if(${option})
>>>>>>>>           ....
>>>>>>>>
>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
>>>>>>>> So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...
>>>>>>>>
>>>>>>>> Richard
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>
>>>>>>>>> I had to add the line:
>>>>>>>>>
>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>
>>>>>>>>> for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...
>>>>>>>>>
>>>>>>>>> Richard
>>>>>>>>>
>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>
>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>
>>>>>>>>>> If there were such a problem with the script, the code would not be built anywhere else,
>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>
>>>>>>>>>> Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>> Maynooth University
>>>>>>>>>> Ireland
>>>>>>>>>>
>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>> 
>>>>>>>>>>   wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..
>>>>>>>>>>>
>>>>>>>>>>> Richard
>>>>>>>>>>>
>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>
>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
>>>>>>>>>>>> Ed
>>>>>>>>>>>>
>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>> 
>>>>>>>>>>>>   wrote:
>>>>>>>>>>>> No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>
>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>
>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>> wget
>>>>>>>>>>>>>
>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>> 
>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>> 
>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>>>>>>>>>>>>>
>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".
>>>>>>>>>>>>>
>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>   Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am running 3.0.1 here).
>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard 
>>>>>>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>   Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>
>>>>>>> Csound mailing list
>>>>>>>
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>
>>>>>>> Send bugs reports to
>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>
>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>          https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-18 18:37
FromVictor Lazzarini
SubjectRe: websocket error
please attach the file here so we can check it.

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

> On 18 Dec 2016, at 18:29, Richard  wrote:
> 
> That was my first idea too. I've stripped down the file to just a few active lines (most of it is comment):
> I do not see anything strange in it
> 
> # CUSTOM PROPERTIES TO SET
> 
> # GLOBAL
> 
> #set(CMAKE_BUILD_TYPE "Debug")
> set(CMAKE_VERBOSE_MAKEFILE ON)
> set(BUILD_STATIC_LIBRARY ON)
> set(USE_OPEN_MP OFF)
> set(TCL_VERSION 8.5)
> set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
> ##set(BUILD_CSOUND_AC OFF)
> ##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
> ##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)
> 
> #### NOTE the processor type needs setting
> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
> ## also to test multicore
> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")
> 
> 
> 
>> On 18/12/16 19:15, Victor Lazzarini wrote:
>> Check your Custom.cmake file for typos. There is a typing error somewhere on line 34 or before.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 18 Dec 2016, at 17:34, Richard  wrote:
>>> 
>>> I am following these steps now, in this case to disable NEON support.
>>> 
>>> I have done step 1:
>>> 
>>> Try to add the correct flags for NEON compilation. This can be made by editing the top-level file Custom.cmake.ex, and saving it as Custom.cmake. ....
>>> 
>>> And then step 2:
>>> 
>>> If step 1 fails, there might be no NEON support for your arm chip, in which case, you need to change the line above to
>>> 
>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>> 
>>> I get an error:
>>> 
>>> CMake Error: Error in cmake code at
>>> /home/pi/cslatest/csound/Custom.cmake:34:
>>> Parse error.  Function missing ending ")".  Instead found unterminated string with text ")
>>> 
>>> endif()
>>> 
>>> ".
>>> CMake Error at CMakeLists.txt:206 (include):
>>>   include could not find load file:
>>> 
>>>     /home/pi/cslatest/csound/Custom.cmake
>>> 
>>>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>>> Instructions are here
>>>> 
>>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>> 
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>> 
>>>>> On 17 Dec 2016, at 22:54, Richard  wrote:
>>>>> 
>>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.
>>>>> 
>>>>> In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
>>>>> 
>>>>> I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...
>>>>> 
>>>>> Richard
>>>>> 
>>>>> 
>>>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>>> No, you should run the command from the Csound build directory, as usual, adding the option, which will include
>>>>>> the opcode in your build. Don’t modify any of the CMakeFiles.txt.
>>>>>> 
>>>>>> If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.
>>>>>> 
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>> 
>>>>>>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>>>>>> 
>>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>> 
>>>>>>> I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin
>>>>>>> 
>>>>>>> Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.
>>>>>>> 
>>>>>>> You said:
>>>>>>> 
>>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>> 
>>>>>>> 
>>>>>>> But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
>>>>>>> The latter does not work for me..
>>>>>>> 
>>>>>>> In other words, what do I need to do to only compile the websockets plugin, not full csound?
>>>>>>> 
>>>>>>> Richard
>>>>>>> 
>>>>>>> 
>>>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>>> Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
>>>>>>>> just build as normal, and the opcode will be built if all the dependencies are there etc.
>>>>>>>> 
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>> 
>>>>>>>> 
>>>>>>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>>>>>>  wrote:
>>>>>>>>> 
>>>>>>>>> Maybe I was not clear:
>>>>>>>>> I am not building csound as a whole, only the websockets plugin.
>>>>>>>>> 
>>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:
>>>>>>>>> 
>>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>>> include(TestBigEndian)
>>>>>>>>> include(CheckFunctionExists)
>>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
>>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>>> include(CheckLibraryExists)
>>>>>>>>> include(CMakeParseArguments)
>>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>> 
>>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>> 
>>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>>> # If FAIL_MISSING is true and the dependencies are not fulfilled,
>>>>>>>>> # it will abort the cmake run.
>>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
>>>>>>>>> function(check_deps option)
>>>>>>>>>     if(${option})
>>>>>>>>>          ....
>>>>>>>>> 
>>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
>>>>>>>>> So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...
>>>>>>>>> 
>>>>>>>>> Richard
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>>> 
>>>>>>>>>> I had to add the line:
>>>>>>>>>> 
>>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>> 
>>>>>>>>>> for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...
>>>>>>>>>> 
>>>>>>>>>> Richard
>>>>>>>>>> 
>>>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>>> 
>>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>> 
>>>>>>>>>>> If there were such a problem with the script, the code would not be built anywhere else,
>>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>> 
>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>> Maynooth University
>>>>>>>>>>> Ireland
>>>>>>>>>>> 
>>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>>> 
>>>>>>>>>>>  wrote:
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>>> It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..
>>>>>>>>>>>> 
>>>>>>>>>>>> Richard
>>>>>>>>>>>> 
>>>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
>>>>>>>>>>>>> Ed
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>>> 
>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>> No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>>> wget
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>>  Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am running 3.0.1 here).
>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard 
>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>>  Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> 
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>> 
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>> 
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>> 
>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>> 
>>>>>>>> Csound mailing list
>>>>>>>> 
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> 
>>>>>>>> Send bugs reports to
>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>> 
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> 
>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>         https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-18 18:48
FromRichard
SubjectRe: websocket error
AttachmentsCustom.cmake  
Here it is attached.

Note: this is on a Raspberry Pi, so I am not compiling for Windows or OS X.

Richard


On 18/12/16 19:37, Victor Lazzarini wrote:
> please attach the file here so we can check it.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 18 Dec 2016, at 18:29, Richard  wrote:
>>
>> That was my first idea too. I've stripped down the file to just a few active lines (most of it is comment):
>> I do not see anything strange in it
>>
>> # CUSTOM PROPERTIES TO SET
>>
>> # GLOBAL
>>
>> #set(CMAKE_BUILD_TYPE "Debug")
>> set(CMAKE_VERBOSE_MAKEFILE ON)
>> set(BUILD_STATIC_LIBRARY ON)
>> set(USE_OPEN_MP OFF)
>> set(TCL_VERSION 8.5)
>> set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
>> ##set(BUILD_CSOUND_AC OFF)
>> ##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
>> ##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)
>>
>> #### NOTE the processor type needs setting
>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>> ## also to test multicore
>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")
>>
>>
>>
>>> On 18/12/16 19:15, Victor Lazzarini wrote:
>>> Check your Custom.cmake file for typos. There is a typing error somewhere on line 34 or before.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 18 Dec 2016, at 17:34, Richard  wrote:
>>>>
>>>> I am following these steps now, in this case to disable NEON support.
>>>>
>>>> I have done step 1:
>>>>
>>>> Try to add the correct flags for NEON compilation. This can be made by editing the top-level file Custom.cmake.ex, and saving it as Custom.cmake. ....
>>>>
>>>> And then step 2:
>>>>
>>>> If step 1 fails, there might be no NEON support for your arm chip, in which case, you need to change the line above to
>>>>
>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>
>>>> I get an error:
>>>>
>>>> CMake Error: Error in cmake code at
>>>> /home/pi/cslatest/csound/Custom.cmake:34:
>>>> Parse error.  Function missing ending ")".  Instead found unterminated string with text ")
>>>>
>>>> endif()
>>>>
>>>> ".
>>>> CMake Error at CMakeLists.txt:206 (include):
>>>>    include could not find load file:
>>>>
>>>>      /home/pi/cslatest/csound/Custom.cmake
>>>>
>>>>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>>>> Instructions are here
>>>>>
>>>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>>>
>>>>> Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>> Maynooth University
>>>>> Ireland
>>>>>
>>>>>> On 17 Dec 2016, at 22:54, Richard  wrote:
>>>>>>
>>>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.
>>>>>>
>>>>>> In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
>>>>>>
>>>>>> I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>>
>>>>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>>>> No, you should run the command from the Csound build directory, as usual, adding the option, which will include
>>>>>>> the opcode in your build. Don’t modify any of the CMakeFiles.txt.
>>>>>>>
>>>>>>> If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.
>>>>>>>
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>>
>>>>>>>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>>>>>>>
>>>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>>>
>>>>>>>> I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin
>>>>>>>>
>>>>>>>> Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.
>>>>>>>>
>>>>>>>> You said:
>>>>>>>>
>>>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>
>>>>>>>>
>>>>>>>> But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
>>>>>>>> The latter does not work for me..
>>>>>>>>
>>>>>>>> In other words, what do I need to do to only compile the websockets plugin, not full csound?
>>>>>>>>
>>>>>>>> Richard
>>>>>>>>
>>>>>>>>
>>>>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>>>> Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
>>>>>>>>> just build as normal, and the opcode will be built if all the dependencies are there etc.
>>>>>>>>>
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>>>>>>>   wrote:
>>>>>>>>>>
>>>>>>>>>> Maybe I was not clear:
>>>>>>>>>> I am not building csound as a whole, only the websockets plugin.
>>>>>>>>>>
>>>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:
>>>>>>>>>>
>>>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>>>> include(TestBigEndian)
>>>>>>>>>> include(CheckFunctionExists)
>>>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
>>>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>>>> include(CheckLibraryExists)
>>>>>>>>>> include(CMakeParseArguments)
>>>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>>>
>>>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>>>
>>>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>>>> # If FAIL_MISSING is true and the dependencies are not fulfilled,
>>>>>>>>>> # it will abort the cmake run.
>>>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
>>>>>>>>>> function(check_deps option)
>>>>>>>>>>      if(${option})
>>>>>>>>>>           ....
>>>>>>>>>>
>>>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
>>>>>>>>>> So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...
>>>>>>>>>>
>>>>>>>>>> Richard
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>>>>
>>>>>>>>>>> I had to add the line:
>>>>>>>>>>>
>>>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>>>
>>>>>>>>>>> for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...
>>>>>>>>>>>
>>>>>>>>>>> Richard
>>>>>>>>>>>
>>>>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>>>
>>>>>>>>>>>> If there were such a problem with the script, the code would not be built anywhere else,
>>>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>>>
>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>> Ireland
>>>>>>>>>>>>
>>>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>>>> 
>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..
>>>>>>>>>>>>>
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>>> No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>>>> wget
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>>>   Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am running 3.0.1 here).
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard 
>>>>>>>>>>>>>>>>>>>>   wrote:
>>>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>>>   Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>>
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>>>
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>   Discussions of bugs and features can be posted here
>>>>>>>>>>
>>>>>>>>> Csound mailing list
>>>>>>>>>
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>
>>>>>>>>> Send bugs reports to
>>>>>>>>>          https://github.com/csound/csound/issues
>>>>>>>>>
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>          https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>        https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>          https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-18 19:00
FromVictor Lazzarini
SubjectRe: websocket error
This text at the end of the file will definitely break it:
====
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
======
Are you attaching the correct file? 

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 18 Dec 2016, at 18:48, Richard  wrote:
> 
> Here it is attached.
> 
> Note: this is on a Raspberry Pi, so I am not compiling for Windows or OS X.
> 
> Richard
> 
> 
> On 18/12/16 19:37, Victor Lazzarini wrote:
>> please attach the file here so we can check it.
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>>> On 18 Dec 2016, at 18:29, Richard  wrote:
>>> 
>>> That was my first idea too. I've stripped down the file to just a few active lines (most of it is comment):
>>> I do not see anything strange in it
>>> 
>>> # CUSTOM PROPERTIES TO SET
>>> 
>>> # GLOBAL
>>> 
>>> #set(CMAKE_BUILD_TYPE "Debug")
>>> set(CMAKE_VERBOSE_MAKEFILE ON)
>>> set(BUILD_STATIC_LIBRARY ON)
>>> set(USE_OPEN_MP OFF)
>>> set(TCL_VERSION 8.5)
>>> set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
>>> ##set(BUILD_CSOUND_AC OFF)
>>> ##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
>>> ##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)
>>> 
>>> #### NOTE the processor type needs setting
>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>> ## also to test multicore
>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")
>>> 
>>> 
>>> 
>>>> On 18/12/16 19:15, Victor Lazzarini wrote:
>>>> Check your Custom.cmake file for typos. There is a typing error somewhere on line 34 or before.
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>> 
>>>>> On 18 Dec 2016, at 17:34, Richard  wrote:
>>>>> 
>>>>> I am following these steps now, in this case to disable NEON support.
>>>>> 
>>>>> I have done step 1:
>>>>> 
>>>>> Try to add the correct flags for NEON compilation. This can be made by editing the top-level file Custom.cmake.ex, and saving it as Custom.cmake. ....
>>>>> 
>>>>> And then step 2:
>>>>> 
>>>>> If step 1 fails, there might be no NEON support for your arm chip, in which case, you need to change the line above to
>>>>> 
>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>> 
>>>>> I get an error:
>>>>> 
>>>>> CMake Error: Error in cmake code at
>>>>> /home/pi/cslatest/csound/Custom.cmake:34:
>>>>> Parse error.  Function missing ending ")".  Instead found unterminated string with text ")
>>>>> 
>>>>> endif()
>>>>> 
>>>>> ".
>>>>> CMake Error at CMakeLists.txt:206 (include):
>>>>>   include could not find load file:
>>>>> 
>>>>>     /home/pi/cslatest/csound/Custom.cmake
>>>>> 
>>>>>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>>>>> Instructions are here
>>>>>> 
>>>>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>>>> 
>>>>>> Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>> Maynooth University
>>>>>> Ireland
>>>>>> 
>>>>>>> On 17 Dec 2016, at 22:54, Richard  wrote:
>>>>>>> 
>>>>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.
>>>>>>> 
>>>>>>> In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
>>>>>>> 
>>>>>>> I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...
>>>>>>> 
>>>>>>> Richard
>>>>>>> 
>>>>>>> 
>>>>>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>>>>> No, you should run the command from the Csound build directory, as usual, adding the option, which will include
>>>>>>>> the opcode in your build. Don’t modify any of the CMakeFiles.txt.
>>>>>>>> 
>>>>>>>> If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.
>>>>>>>> 
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>> 
>>>>>>>>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>>>>>>>> 
>>>>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>>>> 
>>>>>>>>> I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin
>>>>>>>>> 
>>>>>>>>> Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.
>>>>>>>>> 
>>>>>>>>> You said:
>>>>>>>>> 
>>>>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
>>>>>>>>> The latter does not work for me..
>>>>>>>>> 
>>>>>>>>> In other words, what do I need to do to only compile the websockets plugin, not full csound?
>>>>>>>>> 
>>>>>>>>> Richard
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>>>>> Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
>>>>>>>>>> just build as normal, and the opcode will be built if all the dependencies are there etc.
>>>>>>>>>> 
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>>>>>>>>  wrote:
>>>>>>>>>>> 
>>>>>>>>>>> Maybe I was not clear:
>>>>>>>>>>> I am not building csound as a whole, only the websockets plugin.
>>>>>>>>>>> 
>>>>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:
>>>>>>>>>>> 
>>>>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>>>>> include(TestBigEndian)
>>>>>>>>>>> include(CheckFunctionExists)
>>>>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
>>>>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>>>>> include(CheckLibraryExists)
>>>>>>>>>>> include(CMakeParseArguments)
>>>>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>>>> 
>>>>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>>>> 
>>>>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>>>>> # If FAIL_MISSING is true and the dependencies are not fulfilled,
>>>>>>>>>>> # it will abort the cmake run.
>>>>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
>>>>>>>>>>> function(check_deps option)
>>>>>>>>>>>     if(${option})
>>>>>>>>>>>          ....
>>>>>>>>>>> 
>>>>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
>>>>>>>>>>> So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...
>>>>>>>>>>> 
>>>>>>>>>>> Richard
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> I had to add the line:
>>>>>>>>>>>> 
>>>>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>>>> 
>>>>>>>>>>>> for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...
>>>>>>>>>>>> 
>>>>>>>>>>>> Richard
>>>>>>>>>>>> 
>>>>>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> If there were such a problem with the script, the code would not be built anywhere else,
>>>>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>>>>> 
>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>> No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>>>>> wget
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>>>>  Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am running 3.0.1 here).
>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard 
>>>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>>>>  Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> 
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>>>> 
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>  Discussions of bugs and features can be posted here
>>>>>>>>>>> 
>>>>>>>>>> Csound mailing list
>>>>>>>>>> 
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> 
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>> 
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> 
>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>       https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-18 19:05
FromVictor Lazzarini
SubjectRe: websocket error
also the double quotes at the end of this line (before the closing parenthesis) 
are of the wrong type. Did you copy and paste it from somewhere else? 
They’re not UTF-8 as far as I can see.

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)

All you need is this single line (and nothing else) in your Custom.cmake. Note
the correct double quotes.

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE")

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 18 Dec 2016, at 19:00, Victor Lazzarini  wrote:
> 
> This text at the end of the file will definitely break it:
> ====
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> ======
> Are you attaching the correct file? 
> 
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 18 Dec 2016, at 18:48, Richard  wrote:
>> 
>> Here it is attached.
>> 
>> Note: this is on a Raspberry Pi, so I am not compiling for Windows or OS X.
>> 
>> Richard
>> 
>> 
>> On 18/12/16 19:37, Victor Lazzarini wrote:
>>> please attach the file here so we can check it.
>>> 
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>> 
>>>> On 18 Dec 2016, at 18:29, Richard  wrote:
>>>> 
>>>> That was my first idea too. I've stripped down the file to just a few active lines (most of it is comment):
>>>> I do not see anything strange in it
>>>> 
>>>> # CUSTOM PROPERTIES TO SET
>>>> 
>>>> # GLOBAL
>>>> 
>>>> #set(CMAKE_BUILD_TYPE "Debug")
>>>> set(CMAKE_VERBOSE_MAKEFILE ON)
>>>> set(BUILD_STATIC_LIBRARY ON)
>>>> set(USE_OPEN_MP OFF)
>>>> set(TCL_VERSION 8.5)
>>>> set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
>>>> ##set(BUILD_CSOUND_AC OFF)
>>>> ##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
>>>> ##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)
>>>> 
>>>> #### NOTE the processor type needs setting
>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>> ## also to test multicore
>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")
>>>> 
>>>> 
>>>> 
>>>>> On 18/12/16 19:15, Victor Lazzarini wrote:
>>>>> Check your Custom.cmake file for typos. There is a typing error somewhere on line 34 or before.
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>> 
>>>>>> On 18 Dec 2016, at 17:34, Richard  wrote:
>>>>>> 
>>>>>> I am following these steps now, in this case to disable NEON support.
>>>>>> 
>>>>>> I have done step 1:
>>>>>> 
>>>>>> Try to add the correct flags for NEON compilation. This can be made by editing the top-level file Custom.cmake.ex, and saving it as Custom.cmake. ....
>>>>>> 
>>>>>> And then step 2:
>>>>>> 
>>>>>> If step 1 fails, there might be no NEON support for your arm chip, in which case, you need to change the line above to
>>>>>> 
>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>> 
>>>>>> I get an error:
>>>>>> 
>>>>>> CMake Error: Error in cmake code at
>>>>>> /home/pi/cslatest/csound/Custom.cmake:34:
>>>>>> Parse error.  Function missing ending ")".  Instead found unterminated string with text ")
>>>>>> 
>>>>>> endif()
>>>>>> 
>>>>>> ".
>>>>>> CMake Error at CMakeLists.txt:206 (include):
>>>>>>  include could not find load file:
>>>>>> 
>>>>>>    /home/pi/cslatest/csound/Custom.cmake
>>>>>> 
>>>>>>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>>>>>> Instructions are here
>>>>>>> 
>>>>>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>>>>> 
>>>>>>> Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>> Maynooth University
>>>>>>> Ireland
>>>>>>> 
>>>>>>>> On 17 Dec 2016, at 22:54, Richard  wrote:
>>>>>>>> 
>>>>>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.
>>>>>>>> 
>>>>>>>> In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>>>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
>>>>>>>> 
>>>>>>>> I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...
>>>>>>>> 
>>>>>>>> Richard
>>>>>>>> 
>>>>>>>> 
>>>>>>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>>>>>> No, you should run the command from the Csound build directory, as usual, adding the option, which will include
>>>>>>>>> the opcode in your build. Don’t modify any of the CMakeFiles.txt.
>>>>>>>>> 
>>>>>>>>> If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.
>>>>>>>>> 
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>> 
>>>>>>>>>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>>>>>>>>> 
>>>>>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>>>>> 
>>>>>>>>>> I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin
>>>>>>>>>> 
>>>>>>>>>> Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.
>>>>>>>>>> 
>>>>>>>>>> You said:
>>>>>>>>>> 
>>>>>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
>>>>>>>>>> The latter does not work for me..
>>>>>>>>>> 
>>>>>>>>>> In other words, what do I need to do to only compile the websockets plugin, not full csound?
>>>>>>>>>> 
>>>>>>>>>> Richard
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>>>>>> Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
>>>>>>>>>>> just build as normal, and the opcode will be built if all the dependencies are there etc.
>>>>>>>>>>> 
>>>>>>>>>>> ========================
>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>> Maynooth University,
>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>>>>>>>>> wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> Maybe I was not clear:
>>>>>>>>>>>> I am not building csound as a whole, only the websockets plugin.
>>>>>>>>>>>> 
>>>>>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:
>>>>>>>>>>>> 
>>>>>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>>>>>> include(TestBigEndian)
>>>>>>>>>>>> include(CheckFunctionExists)
>>>>>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
>>>>>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>>>>>> include(CheckLibraryExists)
>>>>>>>>>>>> include(CMakeParseArguments)
>>>>>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>>>>> 
>>>>>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>>>>> 
>>>>>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>>>>>> # If FAIL_MISSING is true and the dependencies are not fulfilled,
>>>>>>>>>>>> # it will abort the cmake run.
>>>>>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
>>>>>>>>>>>> function(check_deps option)
>>>>>>>>>>>>    if(${option})
>>>>>>>>>>>>         ....
>>>>>>>>>>>> 
>>>>>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
>>>>>>>>>>>> So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...
>>>>>>>>>>>> 
>>>>>>>>>>>> Richard
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> I had to add the line:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>>>>> 
>>>>>>>>>>>>> for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> If there were such a problem with the script, the code would not be built anywhere else,
>>>>>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>>>>>> wget
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am running 3.0.1 here).
>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard 
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> 
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> 
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> 
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> 
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>> 
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> 
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>      https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-18 19:09
FromRichard
SubjectRe: websocket error
I see that now, I copied it from this link:

https://github.com/csound/csound/blob/develop/BUILD.md#raspian

Richard


On 18/12/16 20:05, Victor Lazzarini wrote:
> also the double quotes at the end of this line (before the closing parenthesis)
> are of the wrong type. Did you copy and paste it from somewhere else?
> They’re not UTF-8 as far as I can see.
>
> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>
> All you need is this single line (and nothing else) in your Custom.cmake. Note
> the correct double quotes.
>
> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE")
>
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 18 Dec 2016, at 19:00, Victor Lazzarini  wrote:
>>
>> This text at the end of the file will definitely break it:
>> ====
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> ======
>> Are you attaching the correct file?
>>
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>> On 18 Dec 2016, at 18:48, Richard  wrote:
>>>
>>> Here it is attached.
>>>
>>> Note: this is on a Raspberry Pi, so I am not compiling for Windows or OS X.
>>>
>>> Richard
>>>
>>>
>>> On 18/12/16 19:37, Victor Lazzarini wrote:
>>>> please attach the file here so we can check it.
>>>>
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>>
>>>>> On 18 Dec 2016, at 18:29, Richard  wrote:
>>>>>
>>>>> That was my first idea too. I've stripped down the file to just a few active lines (most of it is comment):
>>>>> I do not see anything strange in it
>>>>>
>>>>> # CUSTOM PROPERTIES TO SET
>>>>>
>>>>> # GLOBAL
>>>>>
>>>>> #set(CMAKE_BUILD_TYPE "Debug")
>>>>> set(CMAKE_VERBOSE_MAKEFILE ON)
>>>>> set(BUILD_STATIC_LIBRARY ON)
>>>>> set(USE_OPEN_MP OFF)
>>>>> set(TCL_VERSION 8.5)
>>>>> set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
>>>>> ##set(BUILD_CSOUND_AC OFF)
>>>>> ##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
>>>>> ##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)
>>>>>
>>>>> #### NOTE the processor type needs setting
>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>> ## also to test multicore
>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")
>>>>>
>>>>>
>>>>>
>>>>>> On 18/12/16 19:15, Victor Lazzarini wrote:
>>>>>> Check your Custom.cmake file for typos. There is a typing error somewhere on line 34 or before.
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>>
>>>>>>> On 18 Dec 2016, at 17:34, Richard  wrote:
>>>>>>>
>>>>>>> I am following these steps now, in this case to disable NEON support.
>>>>>>>
>>>>>>> I have done step 1:
>>>>>>>
>>>>>>> Try to add the correct flags for NEON compilation. This can be made by editing the top-level file Custom.cmake.ex, and saving it as Custom.cmake. ....
>>>>>>>
>>>>>>> And then step 2:
>>>>>>>
>>>>>>> If step 1 fails, there might be no NEON support for your arm chip, in which case, you need to change the line above to
>>>>>>>
>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>>
>>>>>>> I get an error:
>>>>>>>
>>>>>>> CMake Error: Error in cmake code at
>>>>>>> /home/pi/cslatest/csound/Custom.cmake:34:
>>>>>>> Parse error.  Function missing ending ")".  Instead found unterminated string with text ")
>>>>>>>
>>>>>>> endif()
>>>>>>>
>>>>>>> ".
>>>>>>> CMake Error at CMakeLists.txt:206 (include):
>>>>>>>   include could not find load file:
>>>>>>>
>>>>>>>     /home/pi/cslatest/csound/Custom.cmake
>>>>>>>
>>>>>>>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>>>>>>> Instructions are here
>>>>>>>>
>>>>>>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>>>>>>
>>>>>>>> Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>> Maynooth University
>>>>>>>> Ireland
>>>>>>>>
>>>>>>>>> On 17 Dec 2016, at 22:54, Richard  wrote:
>>>>>>>>>
>>>>>>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.
>>>>>>>>>
>>>>>>>>> In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>>>>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
>>>>>>>>>
>>>>>>>>> I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...
>>>>>>>>>
>>>>>>>>> Richard
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>>>>>>> No, you should run the command from the Csound build directory, as usual, adding the option, which will include
>>>>>>>>>> the opcode in your build. Don’t modify any of the CMakeFiles.txt.
>>>>>>>>>>
>>>>>>>>>> If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.
>>>>>>>>>>
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>>>>>>>>>>
>>>>>>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>>>>>>
>>>>>>>>>>> I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin
>>>>>>>>>>>
>>>>>>>>>>> Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.
>>>>>>>>>>>
>>>>>>>>>>> You said:
>>>>>>>>>>>
>>>>>>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
>>>>>>>>>>> The latter does not work for me..
>>>>>>>>>>>
>>>>>>>>>>> In other words, what do I need to do to only compile the websockets plugin, not full csound?
>>>>>>>>>>>
>>>>>>>>>>> Richard
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>>>>>>> Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
>>>>>>>>>>>> just build as normal, and the opcode will be built if all the dependencies are there etc.
>>>>>>>>>>>>
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Maybe I was not clear:
>>>>>>>>>>>>> I am not building csound as a whole, only the websockets plugin.
>>>>>>>>>>>>>
>>>>>>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:
>>>>>>>>>>>>>
>>>>>>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>>>>>>> include(TestBigEndian)
>>>>>>>>>>>>> include(CheckFunctionExists)
>>>>>>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
>>>>>>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>>>>>>> include(CheckLibraryExists)
>>>>>>>>>>>>> include(CMakeParseArguments)
>>>>>>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>>>>>>
>>>>>>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>>>>>>
>>>>>>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>>>>>>> # If FAIL_MISSING is true and the dependencies are not fulfilled,
>>>>>>>>>>>>> # it will abort the cmake run.
>>>>>>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
>>>>>>>>>>>>> function(check_deps option)
>>>>>>>>>>>>>     if(${option})
>>>>>>>>>>>>>          ....
>>>>>>>>>>>>>
>>>>>>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
>>>>>>>>>>>>> So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...
>>>>>>>>>>>>>
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I had to add the line:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> If there were such a problem with the script, the code would not be built anywhere else,
>>>>>>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>> No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>>>>>>> wget
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am running 3.0.1 here).
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard 
>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>         https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-18 22:56
FromRichard
SubjectRe: websocket error
Correcting the quotes made things better, but:

/home/pi/cslatest/csound/Opcodes/websockets/WebSocketOpcode.c:541:5: 
error: ‘for’ loop initial declarations are only allowed in C99 mode
Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:57: recipe for 
target 
'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o' failed
make[2]: *** 
[Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o] Error 1

So I entered the option for c99 mode in Custom.cmake, but when I compile 
now, I do not see anything related to websockets being built...

Richard

On 18/12/16 20:05, Victor Lazzarini wrote:
> also the double quotes at the end of this line (before the closing parenthesis)
> are of the wrong type. Did you copy and paste it from somewhere else?
> They’re not UTF-8 as far as I can see.
>
> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>
> All you need is this single line (and nothing else) in your Custom.cmake. Note
> the correct double quotes.
>
> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE")
>
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 18 Dec 2016, at 19:00, Victor Lazzarini  wrote:
>>
>> This text at the end of the file will definitely break it:
>> ====
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> ======
>> Are you attaching the correct file?
>>
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>> On 18 Dec 2016, at 18:48, Richard  wrote:
>>>
>>> Here it is attached.
>>>
>>> Note: this is on a Raspberry Pi, so I am not compiling for Windows or OS X.
>>>
>>> Richard
>>>
>>>
>>> On 18/12/16 19:37, Victor Lazzarini wrote:
>>>> please attach the file here so we can check it.
>>>>
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>>
>>>>> On 18 Dec 2016, at 18:29, Richard  wrote:
>>>>>
>>>>> That was my first idea too. I've stripped down the file to just a few active lines (most of it is comment):
>>>>> I do not see anything strange in it
>>>>>
>>>>> # CUSTOM PROPERTIES TO SET
>>>>>
>>>>> # GLOBAL
>>>>>
>>>>> #set(CMAKE_BUILD_TYPE "Debug")
>>>>> set(CMAKE_VERBOSE_MAKEFILE ON)
>>>>> set(BUILD_STATIC_LIBRARY ON)
>>>>> set(USE_OPEN_MP OFF)
>>>>> set(TCL_VERSION 8.5)
>>>>> set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
>>>>> ##set(BUILD_CSOUND_AC OFF)
>>>>> ##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
>>>>> ##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)
>>>>>
>>>>> #### NOTE the processor type needs setting
>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>> ## also to test multicore
>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")
>>>>>
>>>>>
>>>>>
>>>>>> On 18/12/16 19:15, Victor Lazzarini wrote:
>>>>>> Check your Custom.cmake file for typos. There is a typing error somewhere on line 34 or before.
>>>>>> ========================
>>>>>> Prof. Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>> Maynooth University,
>>>>>> Maynooth, Co Kildare, Ireland
>>>>>> Tel: 00 353 7086936
>>>>>> Fax: 00 353 1 7086952
>>>>>>
>>>>>>> On 18 Dec 2016, at 17:34, Richard  wrote:
>>>>>>>
>>>>>>> I am following these steps now, in this case to disable NEON support.
>>>>>>>
>>>>>>> I have done step 1:
>>>>>>>
>>>>>>> Try to add the correct flags for NEON compilation. This can be made by editing the top-level file Custom.cmake.ex, and saving it as Custom.cmake. ....
>>>>>>>
>>>>>>> And then step 2:
>>>>>>>
>>>>>>> If step 1 fails, there might be no NEON support for your arm chip, in which case, you need to change the line above to
>>>>>>>
>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>>
>>>>>>> I get an error:
>>>>>>>
>>>>>>> CMake Error: Error in cmake code at
>>>>>>> /home/pi/cslatest/csound/Custom.cmake:34:
>>>>>>> Parse error.  Function missing ending ")".  Instead found unterminated string with text ")
>>>>>>>
>>>>>>> endif()
>>>>>>>
>>>>>>> ".
>>>>>>> CMake Error at CMakeLists.txt:206 (include):
>>>>>>>   include could not find load file:
>>>>>>>
>>>>>>>     /home/pi/cslatest/csound/Custom.cmake
>>>>>>>
>>>>>>>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>>>>>>> Instructions are here
>>>>>>>>
>>>>>>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>>>>>>
>>>>>>>> Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>> Maynooth University
>>>>>>>> Ireland
>>>>>>>>
>>>>>>>>> On 17 Dec 2016, at 22:54, Richard  wrote:
>>>>>>>>>
>>>>>>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.
>>>>>>>>>
>>>>>>>>> In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>>>>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
>>>>>>>>>
>>>>>>>>> I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...
>>>>>>>>>
>>>>>>>>> Richard
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>>>>>>> No, you should run the command from the Csound build directory, as usual, adding the option, which will include
>>>>>>>>>> the opcode in your build. Don’t modify any of the CMakeFiles.txt.
>>>>>>>>>>
>>>>>>>>>> If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.
>>>>>>>>>>
>>>>>>>>>> ========================
>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>> Maynooth University,
>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>
>>>>>>>>>>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>>>>>>>>>>
>>>>>>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>>>>>>
>>>>>>>>>>> I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin
>>>>>>>>>>>
>>>>>>>>>>> Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.
>>>>>>>>>>>
>>>>>>>>>>> You said:
>>>>>>>>>>>
>>>>>>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
>>>>>>>>>>> The latter does not work for me..
>>>>>>>>>>>
>>>>>>>>>>> In other words, what do I need to do to only compile the websockets plugin, not full csound?
>>>>>>>>>>>
>>>>>>>>>>> Richard
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>>>>>>> Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
>>>>>>>>>>>> just build as normal, and the opcode will be built if all the dependencies are there etc.
>>>>>>>>>>>>
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Maybe I was not clear:
>>>>>>>>>>>>> I am not building csound as a whole, only the websockets plugin.
>>>>>>>>>>>>>
>>>>>>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:
>>>>>>>>>>>>>
>>>>>>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>>>>>>> include(TestBigEndian)
>>>>>>>>>>>>> include(CheckFunctionExists)
>>>>>>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
>>>>>>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>>>>>>> include(CheckLibraryExists)
>>>>>>>>>>>>> include(CMakeParseArguments)
>>>>>>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>>>>>>
>>>>>>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>>>>>>
>>>>>>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>>>>>>> # If FAIL_MISSING is true and the dependencies are not fulfilled,
>>>>>>>>>>>>> # it will abort the cmake run.
>>>>>>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
>>>>>>>>>>>>> function(check_deps option)
>>>>>>>>>>>>>     if(${option})
>>>>>>>>>>>>>          ....
>>>>>>>>>>>>>
>>>>>>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
>>>>>>>>>>>>> So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...
>>>>>>>>>>>>>
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I had to add the line:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> If there were such a problem with the script, the code would not be built anywhere else,
>>>>>>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>> No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>>>>>>> wget
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am running 3.0.1 here).
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard 
>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>         https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-18 23:56
FromMichael Gogins
SubjectRe: websocket error
Just fix the for loops. I'll have a look soon. 

Regards, 
Mike

On Dec 18, 2016 5:56 PM, "Richard" <zappfinger@gmail.com> wrote:
Correcting the quotes made things better, but:

/home/pi/cslatest/csound/Opcodes/websockets/WebSocketOpcode.c:541:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:57: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o' failed
make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o] Error 1

So I entered the option for c99 mode in Custom.cmake, but when I compile now, I do not see anything related to websockets being built...

Richard

On 18/12/16 20:05, Victor Lazzarini wrote:
also the double quotes at the end of this line (before the closing parenthesis)
are of the wrong type. Did you copy and paste it from somewhere else?
They’re not UTF-8 as far as I can see.

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)

All you need is this single line (and nothing else) in your Custom.cmake. Note
the correct double quotes.

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE")

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 18 Dec 2016, at 19:00, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:

This text at the end of the file will definitely break it:
====
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
======
Are you attaching the correct file?

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 18 Dec 2016, at 18:48, Richard <zappfinger@GMAIL.COM> wrote:

Here it is attached.

Note: this is on a Raspberry Pi, so I am not compiling for Windows or OS X.

Richard


On 18/12/16 19:37, Victor Lazzarini wrote:
please attach the file here so we can check it.

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

On 18 Dec 2016, at 18:29, Richard <zappfinger@GMAIL.COM> wrote:

That was my first idea too. I've stripped down the file to just a few active lines (most of it is comment):
I do not see anything strange in it

# CUSTOM PROPERTIES TO SET

# GLOBAL

#set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_VERBOSE_MAKEFILE ON)
set(BUILD_STATIC_LIBRARY ON)
set(USE_OPEN_MP OFF)
set(TCL_VERSION 8.5)
set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
##set(BUILD_CSOUND_AC OFF)
##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)

#### NOTE the processor type needs setting
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
## also to test multicore
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")



On 18/12/16 19:15, Victor Lazzarini wrote:
Check your Custom.cmake file for typos. There is a typing error somewhere on line 34 or before.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 18 Dec 2016, at 17:34, Richard <zappfinger@gmail.com> wrote:

I am following these steps now, in this case to disable NEON support.

I have done step 1:

Try to add the correct flags for NEON compilation. This can be made by editing the top-level file Custom.cmake.ex, and saving it as Custom.cmake. ....

And then step 2:

If step 1 fails, there might be no NEON support for your arm chip, in which case, you need to change the line above to

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)

I get an error:

CMake Error: Error in cmake code at
/home/pi/cslatest/csound/Custom.cmake:34:
Parse error.  Function missing ending ")".  Instead found unterminated string with text ")

endif()

".
CMake Error at CMakeLists.txt:206 (include):
  include could not find load file:

    /home/pi/cslatest/csound/Custom.cmake

On 18/12/16 00:36, Victor Lazzarini wrote:
Instructions are here

https://github.com/csound/csound/blob/develop/BUILD.md#raspian

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

On 17 Dec 2016, at 22:54, Richard <zappfinger@GMAIL.COM> wrote:

Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.

In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
/usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h

I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...

Richard


On 17/12/16 22:36, Victor Lazzarini wrote:
No, you should run the command from the Csound build directory, as usual, adding the option, which will include
the opcode in your build. Don’t modify any of the CMakeFiles.txt.

If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 17 Dec 2016, at 21:32, Richard <zappfinger@gmail.com> wrote:

Ok, maybe what I am doing wrong is:

I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin

Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.

You said:

just turn the option on in CMAKE, from the build dir,
cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1


But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
The latter does not work for me..

In other words, what do I need to do to only compile the websockets plugin, not full csound?

Richard


On 17/12/16 21:46, Victor Lazzarini wrote:
Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
just build as normal, and the opcode will be built if all the dependencies are there etc.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952


On 17 Dec 2016, at 18:25, Richard <zappfinger@gmail.com>
wrote:

Maybe I was not clear:
I am not building csound as a whole, only the websockets plugin.

The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:

set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
include(TestBigEndian)
include(CheckFunctionExists)
include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
include(CheckIncludeFileCXX)
include(CheckLibraryExists)
include(CMakeParseArguments)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)

It also defines some functions, like 'check_deps':

# Checks if dependencies for an enabled target are fulfilled.
# If FAIL_MISSING is true and the dependencies are not fulfilled,
# it will abort the cmake run.
# If FAIL_MISSING is false, it will set the option to OFF.
# If the target is not enabled, it will do nothing.
# example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
function(check_deps option)
    if(${option})
         ....

The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...

Richard



On 17/12/16 16:40, Richard wrote:

I had to add the line:

include(CheckIncludeFile)

for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...

Richard

On 17/12/16 16:36, Victor Lazzarini wrote:

But that function is builtin, not added to CMakeLists.txt.

If there were such a problem with the script, the code would not be built anywhere else,
and it is being built on osx and linux.

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

On 17 Dec 2016, at 15:18, Richard
<zappfinger@GMAIL.COM>
wrote:


It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..

Richard

On 15/12/16 00:40, Ed Costello wrote:

OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
Ed

On 14 December 2016 at 23:36, Richard
<zappfinger@gmail.com>
wrote:
No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...

On 14/12/16 23:00, Ed Costello wrote:

Apparently this works:

sudo apt-get install build-essential
wget

http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz


tar xzf cmake-3.2.3.tar.gz
cd cmake-3.2.3
./configure
sudo make install

On 14 December 2016 at 21:58, Ed Costello
<phasereset@gmail.com>
wrote:
Think I built it from source
http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html

On 14 December 2016 at 21:54, Richard
<zappfinger@gmail.com>
wrote:
That's weird, on my Pi I have cmake 2.8.9, but I got the same error:

CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".

I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?

Richard

On 14/12/16 18:19, Ed Costello wrote:

Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
Ed
On 14 Dec 2016 14:55, "Richard"
<zappfinger@gmail.com>
wrote:
Then we're in trouble ;-). I'll do some more research..

On 14/12/16 15:53, Victor Lazzarini wrote:

Maybe it disappeared from cmake in later
versions?

https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
On 14 Dec 2016, at 14:43, Richard
<zappfinger@GMAIL.COM>
wrote:

I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:

Maybe you need to update your cmake version (I am running 3.0.1 here).
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

On 14 Dec 2016, at 13:51, Richard <zappfinger@gmail.com>
wrote:
I tried to do that but get an error:
RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
CMake Error at CMakeLists.txt:17 (check_include_file):
Unknown CMake command "check_include_file".
I had cloned csound and copied the csound/websockets dir to another dir to compile.
Richard
On 13/12/16 20:02, Victor Lazzarini wrote:

cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
      https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
        https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list

Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

Send bugs reports to
        https://github.com/csound/csound/issues

Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
<Custom.cmake>
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-19 01:19
FromMichael Gogins
SubjectRe: websocket error
On mingw64 pacman installs:

mingw-w64-x86_64-libwebsockets 1.4-1

This evidently is not the version of libwebsockets you are using. What
version are you using? 2? That would need to be built for mingw, there
is no prebuilt package for that version.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Dec 18, 2016 at 6:56 PM, Michael Gogins
 wrote:
> Just fix the for loops. I'll have a look soon.
>
> Regards,
> Mike
>
> On Dec 18, 2016 5:56 PM, "Richard"  wrote:
>>
>> Correcting the quotes made things better, but:
>>
>> /home/pi/cslatest/csound/Opcodes/websockets/WebSocketOpcode.c:541:5:
>> error: ‘for’ loop initial declarations are only allowed in C99 mode
>> Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:57: recipe for
>> target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o'
>> failed
>> make[2]: ***
>> [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o] Error 1
>>
>> So I entered the option for c99 mode in Custom.cmake, but when I compile
>> now, I do not see anything related to websockets being built...
>>
>> Richard
>>
>> On 18/12/16 20:05, Victor Lazzarini wrote:
>>>
>>> also the double quotes at the end of this line (before the closing
>>> parenthesis)
>>> are of the wrong type. Did you copy and paste it from somewhere else?
>>> They’re not UTF-8 as far as I can see.
>>>
>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>
>>> All you need is this single line (and nothing else) in your Custom.cmake.
>>> Note
>>> the correct double quotes.
>>>
>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE")
>>>
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 18 Dec 2016, at 19:00, Victor Lazzarini 
>>>> wrote:
>>>>
>>>> This text at the end of the file will definitely break it:
>>>> ====
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>> ======
>>>> Are you attaching the correct file?
>>>>
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>> On 18 Dec 2016, at 18:48, Richard  wrote:
>>>>>
>>>>> Here it is attached.
>>>>>
>>>>> Note: this is on a Raspberry Pi, so I am not compiling for Windows or
>>>>> OS X.
>>>>>
>>>>> Richard
>>>>>
>>>>>
>>>>> On 18/12/16 19:37, Victor Lazzarini wrote:
>>>>>>
>>>>>> please attach the file here so we can check it.
>>>>>>
>>>>>> Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>> Maynooth University
>>>>>> Ireland
>>>>>>
>>>>>>> On 18 Dec 2016, at 18:29, Richard  wrote:
>>>>>>>
>>>>>>> That was my first idea too. I've stripped down the file to just a few
>>>>>>> active lines (most of it is comment):
>>>>>>> I do not see anything strange in it
>>>>>>>
>>>>>>> # CUSTOM PROPERTIES TO SET
>>>>>>>
>>>>>>> # GLOBAL
>>>>>>>
>>>>>>> #set(CMAKE_BUILD_TYPE "Debug")
>>>>>>> set(CMAKE_VERBOSE_MAKEFILE ON)
>>>>>>> set(BUILD_STATIC_LIBRARY ON)
>>>>>>> set(USE_OPEN_MP OFF)
>>>>>>> set(TCL_VERSION 8.5)
>>>>>>> set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
>>>>>>> ##set(BUILD_CSOUND_AC OFF)
>>>>>>> ##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
>>>>>>> ##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)
>>>>>>>
>>>>>>> #### NOTE the processor type needs setting
>>>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>> ## also to test multicore
>>>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W
>>>>>>> -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> On 18/12/16 19:15, Victor Lazzarini wrote:
>>>>>>>> Check your Custom.cmake file for typos. There is a typing error
>>>>>>>> somewhere on line 34 or before.
>>>>>>>> ========================
>>>>>>>> Prof. Victor Lazzarini
>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>> Maynooth University,
>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>> Tel: 00 353 7086936
>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>
>>>>>>>>> On 18 Dec 2016, at 17:34, Richard  wrote:
>>>>>>>>>
>>>>>>>>> I am following these steps now, in this case to disable NEON
>>>>>>>>> support.
>>>>>>>>>
>>>>>>>>> I have done step 1:
>>>>>>>>>
>>>>>>>>> Try to add the correct flags for NEON compilation. This can be made
>>>>>>>>> by editing the top-level file Custom.cmake.ex, and saving it as
>>>>>>>>> Custom.cmake. ....
>>>>>>>>>
>>>>>>>>> And then step 2:
>>>>>>>>>
>>>>>>>>> If step 1 fails, there might be no NEON support for your arm chip,
>>>>>>>>> in which case, you need to change the line above to
>>>>>>>>>
>>>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>>>>
>>>>>>>>> I get an error:
>>>>>>>>>
>>>>>>>>> CMake Error: Error in cmake code at
>>>>>>>>> /home/pi/cslatest/csound/Custom.cmake:34:
>>>>>>>>> Parse error.  Function missing ending ")".  Instead found
>>>>>>>>> unterminated string with text ")
>>>>>>>>>
>>>>>>>>> endif()
>>>>>>>>>
>>>>>>>>> ".
>>>>>>>>> CMake Error at CMakeLists.txt:206 (include):
>>>>>>>>>   include could not find load file:
>>>>>>>>>
>>>>>>>>>     /home/pi/cslatest/csound/Custom.cmake
>>>>>>>>>
>>>>>>>>>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>>>>>>>>> Instructions are here
>>>>>>>>>>
>>>>>>>>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>>>>>>>>
>>>>>>>>>> Victor Lazzarini
>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>> Maynooth University
>>>>>>>>>> Ireland
>>>>>>>>>>
>>>>>>>>>>> On 17 Dec 2016, at 22:54, Richard  wrote:
>>>>>>>>>>>
>>>>>>>>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot
>>>>>>>>>>> compile csound because of an error with pffft/neon. I have no clue on how to
>>>>>>>>>>> disable this.
>>>>>>>>>>>
>>>>>>>>>>> In file included from
>>>>>>>>>>> /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>>>>>>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2:
>>>>>>>>>>> error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp
>>>>>>>>>>> -mfpu=neon) to use arm_neon.h
>>>>>>>>>>>
>>>>>>>>>>> I added these options in Cmake to no avail, so now I just want to
>>>>>>>>>>> disable neon or the compiling of pffft...
>>>>>>>>>>>
>>>>>>>>>>> Richard
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>>>>>>>>> No, you should run the command from the Csound build directory,
>>>>>>>>>>>> as usual, adding the option, which will include
>>>>>>>>>>>> the opcode in your build. Don’t modify any of the
>>>>>>>>>>>> CMakeFiles.txt.
>>>>>>>>>>>>
>>>>>>>>>>>> If Csound is already built, only the websocket opcodes will be
>>>>>>>>>>>> added. That’s how cmake & make work.
>>>>>>>>>>>>
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>
>>>>>>>>>>>>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>>>>>>>>
>>>>>>>>>>>>> I'm running the cmake .. command form the
>>>>>>>>>>>>> ../Opcodes/websockets/build directory, assuming that that will only build
>>>>>>>>>>>>> the websockets plugin
>>>>>>>>>>>>>
>>>>>>>>>>>>> Maybe I should run cmake from the cs6make dir? But I do not
>>>>>>>>>>>>> want to build csound, only the websockets plugin.
>>>>>>>>>>>>>
>>>>>>>>>>>>> You said:
>>>>>>>>>>>>>
>>>>>>>>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> But what build dir did you mean? The one above csound-develop
>>>>>>>>>>>>> or the one above Opcodes/websockets?
>>>>>>>>>>>>> The latter does not work for me..
>>>>>>>>>>>>>
>>>>>>>>>>>>> In other words, what do I need to do to only compile the
>>>>>>>>>>>>> websockets plugin, not full csound?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>>>>>>>>> Not sure I follow. If you add the websockets build option, the
>>>>>>>>>>>>>> scripts should take care of it, you
>>>>>>>>>>>>>> just build as normal, and the opcode will be built if all the
>>>>>>>>>>>>>> dependencies are there etc.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Maybe I was not clear:
>>>>>>>>>>>>>>> I am not building csound as a whole, only the websockets
>>>>>>>>>>>>>>> plugin.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains
>>>>>>>>>>>>>>> everything, for example this section:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>>>>>>>>> include(TestBigEndian)
>>>>>>>>>>>>>>> include(CheckFunctionExists)
>>>>>>>>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is
>>>>>>>>>>>>>>> defined here apparently
>>>>>>>>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>>>>>>>>> include(CheckLibraryExists)
>>>>>>>>>>>>>>> include(CMakeParseArguments)
>>>>>>>>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>>>>>>>>> # If FAIL_MISSING is true and the dependencies are not
>>>>>>>>>>>>>>> fulfilled,
>>>>>>>>>>>>>>> # it will abort the cmake run.
>>>>>>>>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE
>>>>>>>>>>>>>>> BISON_EXECUTABLE)
>>>>>>>>>>>>>>> function(check_deps option)
>>>>>>>>>>>>>>>     if(${option})
>>>>>>>>>>>>>>>          ....
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does
>>>>>>>>>>>>>>> not contain these lines. It is trying to use the functions
>>>>>>>>>>>>>>> 'check_include_file' and 'check_deps', but it cannot find them, since they
>>>>>>>>>>>>>>> are not included or defined.
>>>>>>>>>>>>>>> So to only build the websockets plugin I cannot use this
>>>>>>>>>>>>>>> CMakeLists.txt without modifications...
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I had to add the line:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> for this function 'check_include-file' to work. Then I found
>>>>>>>>>>>>>>>> the next missing function 'check_deps', and so on...
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> If there were such a problem with the script, the code
>>>>>>>>>>>>>>>>> would not be built anywhere else,
>>>>>>>>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> It seems that my unknown command comes from the fact that
>>>>>>>>>>>>>>>>>> many functions used by Cmake are either defined in an include file or at the
>>>>>>>>>>>>>>>>>> start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in
>>>>>>>>>>>>>>>>>> the Opcodes/websockets dir can therefore not be used as such to build only
>>>>>>>>>>>>>>>>>> the websockets opcode. I am adding gradually more lines to CMakeLists.txt in
>>>>>>>>>>>>>>>>>> the websockets folder and things are improving. Still not there yet, but
>>>>>>>>>>>>>>>>>> getting close..
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the
>>>>>>>>>>>>>>>>>>> browser anyway, I'll have a look at that and the CMakelists file and see if
>>>>>>>>>>>>>>>>>>> I can sort it out.
>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> No luck. After following your steps I am now on version
>>>>>>>>>>>>>>>>>>> 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>>>>>>>>> wget
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the
>>>>>>>>>>>>>>>>>>>> same error:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake
>>>>>>>>>>>>>>>>>>>> is already the latest version. How did you get version 3?
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the
>>>>>>>>>>>>>>>>>>>>> cmake lists file. Although it looks like it is possible to use cmake 3 on
>>>>>>>>>>>>>>>>>>>>> the pi.
>>>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is
>>>>>>>>>>>>>>>>>>>>>>> very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On
>>>>>>>>>>>>>>>>>>>>>>> 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am
>>>>>>>>>>>>>>>>>>>>>>>> running 3.0.1 here).
>>>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..
>>>>>>>>>>>>>>>>>>>>>>>>> -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17
>>>>>>>>>>>>>>>>>>>>>>>>> (check_include_file):
>>>>>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>>>>>> I had cloned csound and copied the
>>>>>>>>>>>>>>>>>>>>>>>>> csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>
>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>>>>> be posted here
>>>>>>>>>>>>
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>       https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>> be posted here
>>>>>>>>>
>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>> be posted here
>>>>>>>>
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>         https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>       https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>         https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>
>>>>>
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>> 
>>>>
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>          https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-19 06:28
FromVictor Lazzarini
SubjectRe: websocket error
Check the output of Cmake, it will tell you whether the opcodes are being built or if not, the reason why.

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

> On 18 Dec 2016, at 22:56, Richard  wrote:
> 
> Correcting the quotes made things better, but:
> 
> /home/pi/cslatest/csound/Opcodes/websockets/WebSocketOpcode.c:541:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
> Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:57: recipe for target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o' failed
> make[2]: *** [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o] Error 1
> 
> So I entered the option for c99 mode in Custom.cmake, but when I compile now, I do not see anything related to websockets being built...
> 
> Richard
> 
>> On 18/12/16 20:05, Victor Lazzarini wrote:
>> also the double quotes at the end of this line (before the closing parenthesis)
>> are of the wrong type. Did you copy and paste it from somewhere else?
>> They’re not UTF-8 as far as I can see.
>> 
>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>> 
>> All you need is this single line (and nothing else) in your Custom.cmake. Note
>> the correct double quotes.
>> 
>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE")
>> 
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 18 Dec 2016, at 19:00, Victor Lazzarini  wrote:
>>> 
>>> This text at the end of the file will definitely break it:
>>> ====
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>> ======
>>> Are you attaching the correct file?
>>> 
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>> 
>>>> On 18 Dec 2016, at 18:48, Richard  wrote:
>>>> 
>>>> Here it is attached.
>>>> 
>>>> Note: this is on a Raspberry Pi, so I am not compiling for Windows or OS X.
>>>> 
>>>> Richard
>>>> 
>>>> 
>>>>> On 18/12/16 19:37, Victor Lazzarini wrote:
>>>>> please attach the file here so we can check it.
>>>>> 
>>>>> Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>> Maynooth University
>>>>> Ireland
>>>>> 
>>>>>> On 18 Dec 2016, at 18:29, Richard  wrote:
>>>>>> 
>>>>>> That was my first idea too. I've stripped down the file to just a few active lines (most of it is comment):
>>>>>> I do not see anything strange in it
>>>>>> 
>>>>>> # CUSTOM PROPERTIES TO SET
>>>>>> 
>>>>>> # GLOBAL
>>>>>> 
>>>>>> #set(CMAKE_BUILD_TYPE "Debug")
>>>>>> set(CMAKE_VERBOSE_MAKEFILE ON)
>>>>>> set(BUILD_STATIC_LIBRARY ON)
>>>>>> set(USE_OPEN_MP OFF)
>>>>>> set(TCL_VERSION 8.5)
>>>>>> set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
>>>>>> ##set(BUILD_CSOUND_AC OFF)
>>>>>> ##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
>>>>>> ##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)
>>>>>> 
>>>>>> #### NOTE the processor type needs setting
>>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>> ## also to test multicore
>>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>> On 18/12/16 19:15, Victor Lazzarini wrote:
>>>>>>> Check your Custom.cmake file for typos. There is a typing error somewhere on line 34 or before.
>>>>>>> ========================
>>>>>>> Prof. Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>> Maynooth University,
>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>> Tel: 00 353 7086936
>>>>>>> Fax: 00 353 1 7086952
>>>>>>> 
>>>>>>>> On 18 Dec 2016, at 17:34, Richard  wrote:
>>>>>>>> 
>>>>>>>> I am following these steps now, in this case to disable NEON support.
>>>>>>>> 
>>>>>>>> I have done step 1:
>>>>>>>> 
>>>>>>>> Try to add the correct flags for NEON compilation. This can be made by editing the top-level file Custom.cmake.ex, and saving it as Custom.cmake. ....
>>>>>>>> 
>>>>>>>> And then step 2:
>>>>>>>> 
>>>>>>>> If step 1 fails, there might be no NEON support for your arm chip, in which case, you need to change the line above to
>>>>>>>> 
>>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>>> 
>>>>>>>> I get an error:
>>>>>>>> 
>>>>>>>> CMake Error: Error in cmake code at
>>>>>>>> /home/pi/cslatest/csound/Custom.cmake:34:
>>>>>>>> Parse error.  Function missing ending ")".  Instead found unterminated string with text ")
>>>>>>>> 
>>>>>>>> endif()
>>>>>>>> 
>>>>>>>> ".
>>>>>>>> CMake Error at CMakeLists.txt:206 (include):
>>>>>>>>  include could not find load file:
>>>>>>>> 
>>>>>>>>    /home/pi/cslatest/csound/Custom.cmake
>>>>>>>> 
>>>>>>>>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>>>>>>>> Instructions are here
>>>>>>>>> 
>>>>>>>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>>>>>>> 
>>>>>>>>> Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>> Maynooth University
>>>>>>>>> Ireland
>>>>>>>>> 
>>>>>>>>>> On 17 Dec 2016, at 22:54, Richard  wrote:
>>>>>>>>>> 
>>>>>>>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot compile csound because of an error with pffft/neon. I have no clue on how to disable this.
>>>>>>>>>> 
>>>>>>>>>> In file included from /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>>>>>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
>>>>>>>>>> 
>>>>>>>>>> I added these options in Cmake to no avail, so now I just want to disable neon or the compiling of pffft...
>>>>>>>>>> 
>>>>>>>>>> Richard
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>>>>>>>> No, you should run the command from the Csound build directory, as usual, adding the option, which will include
>>>>>>>>>>> the opcode in your build. Don’t modify any of the CMakeFiles.txt.
>>>>>>>>>>> 
>>>>>>>>>>> If Csound is already built, only the websocket opcodes will be added. That’s how cmake & make work.
>>>>>>>>>>> 
>>>>>>>>>>> ========================
>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>> Maynooth University,
>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>> 
>>>>>>>>>>>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>>>>>>> 
>>>>>>>>>>>> I'm running the cmake .. command form the ../Opcodes/websockets/build directory, assuming that that will only build the websockets plugin
>>>>>>>>>>>> 
>>>>>>>>>>>> Maybe I should run cmake from the cs6make dir? But I do not want to build csound, only the websockets plugin.
>>>>>>>>>>>> 
>>>>>>>>>>>> You said:
>>>>>>>>>>>> 
>>>>>>>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> But what build dir did you mean? The one above csound-develop or the one above Opcodes/websockets?
>>>>>>>>>>>> The latter does not work for me..
>>>>>>>>>>>> 
>>>>>>>>>>>> In other words, what do I need to do to only compile the websockets plugin, not full csound?
>>>>>>>>>>>> 
>>>>>>>>>>>> Richard
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>>>>>>>> Not sure I follow. If you add the websockets build option, the scripts should take care of it, you
>>>>>>>>>>>>> just build as normal, and the opcode will be built if all the dependencies are there etc.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Maybe I was not clear:
>>>>>>>>>>>>>> I am not building csound as a whole, only the websockets plugin.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains everything, for example this section:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>>>>>>>> include(TestBigEndian)
>>>>>>>>>>>>>> include(CheckFunctionExists)
>>>>>>>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is defined here apparently
>>>>>>>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>>>>>>>> include(CheckLibraryExists)
>>>>>>>>>>>>>> include(CMakeParseArguments)
>>>>>>>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>>>>>>>> # If FAIL_MISSING is true and the dependencies are not fulfilled,
>>>>>>>>>>>>>> # it will abort the cmake run.
>>>>>>>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE BISON_EXECUTABLE)
>>>>>>>>>>>>>> function(check_deps option)
>>>>>>>>>>>>>>    if(${option})
>>>>>>>>>>>>>>         ....
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does not contain these lines. It is trying to use the functions 'check_include_file' and 'check_deps', but it cannot find them, since they are not included or defined.
>>>>>>>>>>>>>> So to only build the websockets plugin I cannot use this CMakeLists.txt without modifications...
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> I had to add the line:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> for this function 'check_include-file' to work. Then I found the next missing function 'check_deps', and so on...
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> If there were such a problem with the script, the code would not be built anywhere else,
>>>>>>>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> It seems that my unknown command comes from the fact that many functions used by Cmake are either defined in an include file or at the start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in the Opcodes/websockets dir can therefore not be used as such to build only the websockets opcode. I am adding gradually more lines to CMakeLists.txt in the websockets folder and things are improving. Still not there yet, but getting close..
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the browser anyway, I'll have a look at that and the CMakelists file and see if I can sort it out.
>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> No luck. After following your steps I am now on version 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>>>>>>>> wget
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the same error:
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):   Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake is already the latest version. How did you get version 3?
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the cmake lists file. Although it looks like it is possible to use cmake 3 on the pi.
>>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am running 3.0.1 here).
>>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard 
>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>>>>> I had cloned csound and copied the csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to       https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues
>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>> 
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>> 
>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>>>>>> Csound mailing list
>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> Csound mailing list
>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>> Send bugs reports to
>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-19 06:29
FromVictor Lazzarini
SubjectRe: websocket error
As far as I remember, Ed is using version 2 for these opcodes.

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

> On 19 Dec 2016, at 01:20, Michael Gogins  wrote:
> 
> On mingw64 pacman installs:
> 
> mingw-w64-x86_64-libwebsockets 1.4-1
> 
> This evidently is not the version of libwebsockets you are using. What
> version are you using? 2? That would need to be built for mingw, there
> is no prebuilt package for that version.
> 
> Regards,
> Mike
> 
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 
> 
> On Sun, Dec 18, 2016 at 6:56 PM, Michael Gogins
>  wrote:
>> Just fix the for loops. I'll have a look soon.
>> 
>> Regards,
>> Mike
>> 
>>> On Dec 18, 2016 5:56 PM, "Richard"  wrote:
>>> 
>>> Correcting the quotes made things better, but:
>>> 
>>> /home/pi/cslatest/csound/Opcodes/websockets/WebSocketOpcode.c:541:5:
>>> error: ‘for’ loop initial declarations are only allowed in C99 mode
>>> Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:57: recipe for
>>> target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o'
>>> failed
>>> make[2]: ***
>>> [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o] Error 1
>>> 
>>> So I entered the option for c99 mode in Custom.cmake, but when I compile
>>> now, I do not see anything related to websockets being built...
>>> 
>>> Richard
>>> 
>>>> On 18/12/16 20:05, Victor Lazzarini wrote:
>>>> 
>>>> also the double quotes at the end of this line (before the closing
>>>> parenthesis)
>>>> are of the wrong type. Did you copy and paste it from somewhere else?
>>>> They’re not UTF-8 as far as I can see.
>>>> 
>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>> 
>>>> All you need is this single line (and nothing else) in your Custom.cmake.
>>>> Note
>>>> the correct double quotes.
>>>> 
>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE")
>>>> 
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>> 
>>>>> On 18 Dec 2016, at 19:00, Victor Lazzarini 
>>>>> wrote:
>>>>> 
>>>>> This text at the end of the file will definitely break it:
>>>>> ====
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>> ======
>>>>> Are you attaching the correct file?
>>>>> 
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>> 
>>>>>> On 18 Dec 2016, at 18:48, Richard  wrote:
>>>>>> 
>>>>>> Here it is attached.
>>>>>> 
>>>>>> Note: this is on a Raspberry Pi, so I am not compiling for Windows or
>>>>>> OS X.
>>>>>> 
>>>>>> Richard
>>>>>> 
>>>>>> 
>>>>>>> On 18/12/16 19:37, Victor Lazzarini wrote:
>>>>>>> 
>>>>>>> please attach the file here so we can check it.
>>>>>>> 
>>>>>>> Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>> Maynooth University
>>>>>>> Ireland
>>>>>>> 
>>>>>>>> On 18 Dec 2016, at 18:29, Richard  wrote:
>>>>>>>> 
>>>>>>>> That was my first idea too. I've stripped down the file to just a few
>>>>>>>> active lines (most of it is comment):
>>>>>>>> I do not see anything strange in it
>>>>>>>> 
>>>>>>>> # CUSTOM PROPERTIES TO SET
>>>>>>>> 
>>>>>>>> # GLOBAL
>>>>>>>> 
>>>>>>>> #set(CMAKE_BUILD_TYPE "Debug")
>>>>>>>> set(CMAKE_VERBOSE_MAKEFILE ON)
>>>>>>>> set(BUILD_STATIC_LIBRARY ON)
>>>>>>>> set(USE_OPEN_MP OFF)
>>>>>>>> set(TCL_VERSION 8.5)
>>>>>>>> set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
>>>>>>>> ##set(BUILD_CSOUND_AC OFF)
>>>>>>>> ##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
>>>>>>>> ##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)
>>>>>>>> 
>>>>>>>> #### NOTE the processor type needs setting
>>>>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
>>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>>> ## also to test multicore
>>>>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W
>>>>>>>> -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>>> On 18/12/16 19:15, Victor Lazzarini wrote:
>>>>>>>>> Check your Custom.cmake file for typos. There is a typing error
>>>>>>>>> somewhere on line 34 or before.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>> 
>>>>>>>>>> On 18 Dec 2016, at 17:34, Richard  wrote:
>>>>>>>>>> 
>>>>>>>>>> I am following these steps now, in this case to disable NEON
>>>>>>>>>> support.
>>>>>>>>>> 
>>>>>>>>>> I have done step 1:
>>>>>>>>>> 
>>>>>>>>>> Try to add the correct flags for NEON compilation. This can be made
>>>>>>>>>> by editing the top-level file Custom.cmake.ex, and saving it as
>>>>>>>>>> Custom.cmake. ....
>>>>>>>>>> 
>>>>>>>>>> And then step 2:
>>>>>>>>>> 
>>>>>>>>>> If step 1 fails, there might be no NEON support for your arm chip,
>>>>>>>>>> in which case, you need to change the line above to
>>>>>>>>>> 
>>>>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>>>>> 
>>>>>>>>>> I get an error:
>>>>>>>>>> 
>>>>>>>>>> CMake Error: Error in cmake code at
>>>>>>>>>> /home/pi/cslatest/csound/Custom.cmake:34:
>>>>>>>>>> Parse error.  Function missing ending ")".  Instead found
>>>>>>>>>> unterminated string with text ")
>>>>>>>>>> 
>>>>>>>>>> endif()
>>>>>>>>>> 
>>>>>>>>>> ".
>>>>>>>>>> CMake Error at CMakeLists.txt:206 (include):
>>>>>>>>>>  include could not find load file:
>>>>>>>>>> 
>>>>>>>>>>    /home/pi/cslatest/csound/Custom.cmake
>>>>>>>>>> 
>>>>>>>>>>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>>>>>>>>>> Instructions are here
>>>>>>>>>>> 
>>>>>>>>>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>>>>>>>>> 
>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>> Maynooth University
>>>>>>>>>>> Ireland
>>>>>>>>>>> 
>>>>>>>>>>>> On 17 Dec 2016, at 22:54, Richard  wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot
>>>>>>>>>>>> compile csound because of an error with pffft/neon. I have no clue on how to
>>>>>>>>>>>> disable this.
>>>>>>>>>>>> 
>>>>>>>>>>>> In file included from
>>>>>>>>>>>> /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>>>>>>>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2:
>>>>>>>>>>>> error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp
>>>>>>>>>>>> -mfpu=neon) to use arm_neon.h
>>>>>>>>>>>> 
>>>>>>>>>>>> I added these options in Cmake to no avail, so now I just want to
>>>>>>>>>>>> disable neon or the compiling of pffft...
>>>>>>>>>>>> 
>>>>>>>>>>>> Richard
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>>>>>>>>>> No, you should run the command from the Csound build directory,
>>>>>>>>>>>>> as usual, adding the option, which will include
>>>>>>>>>>>>> the opcode in your build. Don’t modify any of the
>>>>>>>>>>>>> CMakeFiles.txt.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> If Csound is already built, only the websocket opcodes will be
>>>>>>>>>>>>> added. That’s how cmake & make work.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 17 Dec 2016, at 21:32, Richard  wrote:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> I'm running the cmake .. command form the
>>>>>>>>>>>>>> ../Opcodes/websockets/build directory, assuming that that will only build
>>>>>>>>>>>>>> the websockets plugin
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Maybe I should run cmake from the cs6make dir? But I do not
>>>>>>>>>>>>>> want to build csound, only the websockets plugin.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> You said:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> But what build dir did you mean? The one above csound-develop
>>>>>>>>>>>>>> or the one above Opcodes/websockets?
>>>>>>>>>>>>>> The latter does not work for me..
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> In other words, what do I need to do to only compile the
>>>>>>>>>>>>>> websockets plugin, not full csound?
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>>>>>>>>>> Not sure I follow. If you add the websockets build option, the
>>>>>>>>>>>>>>> scripts should take care of it, you
>>>>>>>>>>>>>>> just build as normal, and the opcode will be built if all the
>>>>>>>>>>>>>>> dependencies are there etc.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 17 Dec 2016, at 18:25, Richard 
>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Maybe I was not clear:
>>>>>>>>>>>>>>>> I am not building csound as a whole, only the websockets
>>>>>>>>>>>>>>>> plugin.
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains
>>>>>>>>>>>>>>>> everything, for example this section:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>>>>>>>>>> include(TestBigEndian)
>>>>>>>>>>>>>>>> include(CheckFunctionExists)
>>>>>>>>>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is
>>>>>>>>>>>>>>>> defined here apparently
>>>>>>>>>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>>>>>>>>>> include(CheckLibraryExists)
>>>>>>>>>>>>>>>> include(CMakeParseArguments)
>>>>>>>>>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>>>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>>>>>>>>>> # If FAIL_MISSING is true and the dependencies are not
>>>>>>>>>>>>>>>> fulfilled,
>>>>>>>>>>>>>>>> # it will abort the cmake run.
>>>>>>>>>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>>>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>>>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE
>>>>>>>>>>>>>>>> BISON_EXECUTABLE)
>>>>>>>>>>>>>>>> function(check_deps option)
>>>>>>>>>>>>>>>>    if(${option})
>>>>>>>>>>>>>>>>         ....
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does
>>>>>>>>>>>>>>>> not contain these lines. It is trying to use the functions
>>>>>>>>>>>>>>>> 'check_include_file' and 'check_deps', but it cannot find them, since they
>>>>>>>>>>>>>>>> are not included or defined.
>>>>>>>>>>>>>>>> So to only build the websockets plugin I cannot use this
>>>>>>>>>>>>>>>> CMakeLists.txt without modifications...
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> I had to add the line:
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> for this function 'check_include-file' to work. Then I found
>>>>>>>>>>>>>>>>> the next missing function 'check_deps', and so on...
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> If there were such a problem with the script, the code
>>>>>>>>>>>>>>>>>> would not be built anywhere else,
>>>>>>>>>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> It seems that my unknown command comes from the fact that
>>>>>>>>>>>>>>>>>>> many functions used by Cmake are either defined in an include file or at the
>>>>>>>>>>>>>>>>>>> start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in
>>>>>>>>>>>>>>>>>>> the Opcodes/websockets dir can therefore not be used as such to build only
>>>>>>>>>>>>>>>>>>> the websockets opcode. I am adding gradually more lines to CMakeLists.txt in
>>>>>>>>>>>>>>>>>>> the websockets folder and things are improving. Still not there yet, but
>>>>>>>>>>>>>>>>>>> getting close..
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the
>>>>>>>>>>>>>>>>>>>> browser anyway, I'll have a look at that and the CMakelists file and see if
>>>>>>>>>>>>>>>>>>>> I can sort it out.
>>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> No luck. After following your steps I am now on version
>>>>>>>>>>>>>>>>>>>> 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>>>>>>>>>> wget
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the
>>>>>>>>>>>>>>>>>>>>> same error:
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake
>>>>>>>>>>>>>>>>>>>>> is already the latest version. How did you get version 3?
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the
>>>>>>>>>>>>>>>>>>>>>> cmake lists file. Although it looks like it is possible to use cmake 3 on
>>>>>>>>>>>>>>>>>>>>>> the pi.
>>>>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is
>>>>>>>>>>>>>>>>>>>>>>>> very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On
>>>>>>>>>>>>>>>>>>>>>>>> 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am
>>>>>>>>>>>>>>>>>>>>>>>>> running 3.0.1 here).
>>>>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard
>>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..
>>>>>>>>>>>>>>>>>>>>>>>>>> -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17
>>>>>>>>>>>>>>>>>>>>>>>>>> (check_include_file):
>>>>>>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>>>>>>> I had cloned csound and copied the
>>>>>>>>>>>>>>>>>>>>>>>>>> csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>>>>>> be posted here
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>> 
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> 
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>>> be posted here
>>>>>>>>>> 
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>> be posted here
>>>>>>>>> 
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> 
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> 
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>> 
>>>>>> 
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>> 
>>>>> 
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> 
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-12-19 13:58
FromEd Costello
SubjectRe: websocket error
Yeah I had to upgrade the library as version 2 had been out a while, so yeah 2 or above. It's only dependency is open SSL so it would compile pretty much anywhere. 
Ed

On 19 Dec 2016 06:29, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
As far as I remember, Ed is using version 2 for these opcodes.

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

> On 19 Dec 2016, at 01:20, Michael Gogins <michael.gogins@GMAIL.COM> wrote:
>
> On mingw64 pacman installs:
>
> mingw-w64-x86_64-libwebsockets 1.4-1
>
> This evidently is not the version of libwebsockets you are using. What
> version are you using? 2? That would need to be built for mingw, there
> is no prebuilt package for that version.
>
> Regards,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Sun, Dec 18, 2016 at 6:56 PM, Michael Gogins
> <michael.gogins@gmail.com> wrote:
>> Just fix the for loops. I'll have a look soon.
>>
>> Regards,
>> Mike
>>
>>> On Dec 18, 2016 5:56 PM, "Richard" <zappfinger@gmail.com> wrote:
>>>
>>> Correcting the quotes made things better, but:
>>>
>>> /home/pi/cslatest/csound/Opcodes/websockets/WebSocketOpcode.c:541:5:
>>> error: ‘for’ loop initial declarations are only allowed in C99 mode
>>> Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:57: recipe for
>>> target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o'
>>> failed
>>> make[2]: ***
>>> [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o] Error 1
>>>
>>> So I entered the option for c99 mode in Custom.cmake, but when I compile
>>> now, I do not see anything related to websockets being built...
>>>
>>> Richard
>>>
>>>> On 18/12/16 20:05, Victor Lazzarini wrote:
>>>>
>>>> also the double quotes at the end of this line (before the closing
>>>> parenthesis)
>>>> are of the wrong type. Did you copy and paste it from somewhere else?
>>>> They’re not UTF-8 as far as I can see.
>>>>
>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>
>>>> All you need is this single line (and nothing else) in your Custom.cmake.
>>>> Note
>>>> the correct double quotes.
>>>>
>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE")
>>>>
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>> On 18 Dec 2016, at 19:00, Victor Lazzarini <Victor.Lazzarini@NUIM.IE>
>>>>> wrote:
>>>>>
>>>>> This text at the end of the file will definitely break it:
>>>>> ====
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>> ======
>>>>> Are you attaching the correct file?
>>>>>
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 18 Dec 2016, at 18:48, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>
>>>>>> Here it is attached.
>>>>>>
>>>>>> Note: this is on a Raspberry Pi, so I am not compiling for Windows or
>>>>>> OS X.
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>>
>>>>>>> On 18/12/16 19:37, Victor Lazzarini wrote:
>>>>>>>
>>>>>>> please attach the file here so we can check it.
>>>>>>>
>>>>>>> Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>> Maynooth University
>>>>>>> Ireland
>>>>>>>
>>>>>>>> On 18 Dec 2016, at 18:29, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>
>>>>>>>> That was my first idea too. I've stripped down the file to just a few
>>>>>>>> active lines (most of it is comment):
>>>>>>>> I do not see anything strange in it
>>>>>>>>
>>>>>>>> # CUSTOM PROPERTIES TO SET
>>>>>>>>
>>>>>>>> # GLOBAL
>>>>>>>>
>>>>>>>> #set(CMAKE_BUILD_TYPE "Debug")
>>>>>>>> set(CMAKE_VERBOSE_MAKEFILE ON)
>>>>>>>> set(BUILD_STATIC_LIBRARY ON)
>>>>>>>> set(USE_OPEN_MP OFF)
>>>>>>>> set(TCL_VERSION 8.5)
>>>>>>>> set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
>>>>>>>> ##set(BUILD_CSOUND_AC OFF)
>>>>>>>> ##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
>>>>>>>> ##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)
>>>>>>>>
>>>>>>>> #### NOTE the processor type needs setting
>>>>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
>>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>>> ## also to test multicore
>>>>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W
>>>>>>>> -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> On 18/12/16 19:15, Victor Lazzarini wrote:
>>>>>>>>> Check your Custom.cmake file for typos. There is a typing error
>>>>>>>>> somewhere on line 34 or before.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>
>>>>>>>>>> On 18 Dec 2016, at 17:34, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>> I am following these steps now, in this case to disable NEON
>>>>>>>>>> support.
>>>>>>>>>>
>>>>>>>>>> I have done step 1:
>>>>>>>>>>
>>>>>>>>>> Try to add the correct flags for NEON compilation. This can be made
>>>>>>>>>> by editing the top-level file Custom.cmake.ex, and saving it as
>>>>>>>>>> Custom.cmake. ....
>>>>>>>>>>
>>>>>>>>>> And then step 2:
>>>>>>>>>>
>>>>>>>>>> If step 1 fails, there might be no NEON support for your arm chip,
>>>>>>>>>> in which case, you need to change the line above to
>>>>>>>>>>
>>>>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>>>>>
>>>>>>>>>> I get an error:
>>>>>>>>>>
>>>>>>>>>> CMake Error: Error in cmake code at
>>>>>>>>>> /home/pi/cslatest/csound/Custom.cmake:34:
>>>>>>>>>> Parse error.  Function missing ending ")".  Instead found
>>>>>>>>>> unterminated string with text ")
>>>>>>>>>>
>>>>>>>>>> endif()
>>>>>>>>>>
>>>>>>>>>> ".
>>>>>>>>>> CMake Error at CMakeLists.txt:206 (include):
>>>>>>>>>>  include could not find load file:
>>>>>>>>>>
>>>>>>>>>>    /home/pi/cslatest/csound/Custom.cmake
>>>>>>>>>>
>>>>>>>>>>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>>>>>>>>>> Instructions are here
>>>>>>>>>>>
>>>>>>>>>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>>>>>>>>>
>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>> Maynooth University
>>>>>>>>>>> Ireland
>>>>>>>>>>>
>>>>>>>>>>>> On 17 Dec 2016, at 22:54, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot
>>>>>>>>>>>> compile csound because of an error with pffft/neon. I have no clue on how to
>>>>>>>>>>>> disable this.
>>>>>>>>>>>>
>>>>>>>>>>>> In file included from
>>>>>>>>>>>> /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>>>>>>>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2:
>>>>>>>>>>>> error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp
>>>>>>>>>>>> -mfpu=neon) to use arm_neon.h
>>>>>>>>>>>>
>>>>>>>>>>>> I added these options in Cmake to no avail, so now I just want to
>>>>>>>>>>>> disable neon or the compiling of pffft...
>>>>>>>>>>>>
>>>>>>>>>>>> Richard
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>>>>>>>>>> No, you should run the command from the Csound build directory,
>>>>>>>>>>>>> as usual, adding the option, which will include
>>>>>>>>>>>>> the opcode in your build. Don’t modify any of the
>>>>>>>>>>>>> CMakeFiles.txt.
>>>>>>>>>>>>>
>>>>>>>>>>>>> If Csound is already built, only the websocket opcodes will be
>>>>>>>>>>>>> added. That’s how cmake & make work.
>>>>>>>>>>>>>
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 17 Dec 2016, at 21:32, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I'm running the cmake .. command form the
>>>>>>>>>>>>>> ../Opcodes/websockets/build directory, assuming that that will only build
>>>>>>>>>>>>>> the websockets plugin
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Maybe I should run cmake from the cs6make dir? But I do not
>>>>>>>>>>>>>> want to build csound, only the websockets plugin.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> You said:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> But what build dir did you mean? The one above csound-develop
>>>>>>>>>>>>>> or the one above Opcodes/websockets?
>>>>>>>>>>>>>> The latter does not work for me..
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> In other words, what do I need to do to only compile the
>>>>>>>>>>>>>> websockets plugin, not full csound?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>>>>>>>>>> Not sure I follow. If you add the websockets build option, the
>>>>>>>>>>>>>>> scripts should take care of it, you
>>>>>>>>>>>>>>> just build as normal, and the opcode will be built if all the
>>>>>>>>>>>>>>> dependencies are there etc.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 17 Dec 2016, at 18:25, Richard <zappfinger@gmail.com>
>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Maybe I was not clear:
>>>>>>>>>>>>>>>> I am not building csound as a whole, only the websockets
>>>>>>>>>>>>>>>> plugin.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains
>>>>>>>>>>>>>>>> everything, for example this section:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>>>>>>>>>> include(TestBigEndian)
>>>>>>>>>>>>>>>> include(CheckFunctionExists)
>>>>>>>>>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is
>>>>>>>>>>>>>>>> defined here apparently
>>>>>>>>>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>>>>>>>>>> include(CheckLibraryExists)
>>>>>>>>>>>>>>>> include(CMakeParseArguments)
>>>>>>>>>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>>>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>>>>>>>>>> # If FAIL_MISSING is true and the dependencies are not
>>>>>>>>>>>>>>>> fulfilled,
>>>>>>>>>>>>>>>> # it will abort the cmake run.
>>>>>>>>>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>>>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>>>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE
>>>>>>>>>>>>>>>> BISON_EXECUTABLE)
>>>>>>>>>>>>>>>> function(check_deps option)
>>>>>>>>>>>>>>>>    if(${option})
>>>>>>>>>>>>>>>>         ....
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does
>>>>>>>>>>>>>>>> not contain these lines. It is trying to use the functions
>>>>>>>>>>>>>>>> 'check_include_file' and 'check_deps', but it cannot find them, since they
>>>>>>>>>>>>>>>> are not included or defined.
>>>>>>>>>>>>>>>> So to only build the websockets plugin I cannot use this
>>>>>>>>>>>>>>>> CMakeLists.txt without modifications...
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I had to add the line:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> for this function 'check_include-file' to work. Then I found
>>>>>>>>>>>>>>>>> the next missing function 'check_deps', and so on...
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> If there were such a problem with the script, the code
>>>>>>>>>>>>>>>>>> would not be built anywhere else,
>>>>>>>>>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>>>>>>>>>> <zappfinger@GMAIL.COM>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> It seems that my unknown command comes from the fact that
>>>>>>>>>>>>>>>>>>> many functions used by Cmake are either defined in an include file or at the
>>>>>>>>>>>>>>>>>>> start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in
>>>>>>>>>>>>>>>>>>> the Opcodes/websockets dir can therefore not be used as such to build only
>>>>>>>>>>>>>>>>>>> the websockets opcode. I am adding gradually more lines to CMakeLists.txt in
>>>>>>>>>>>>>>>>>>> the websockets folder and things are improving. Still not there yet, but
>>>>>>>>>>>>>>>>>>> getting close..
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the
>>>>>>>>>>>>>>>>>>>> browser anyway, I'll have a look at that and the CMakelists file and see if
>>>>>>>>>>>>>>>>>>>> I can sort it out.
>>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>>>>>>>>>> <zappfinger@gmail.com>
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> No luck. After following your steps I am now on version
>>>>>>>>>>>>>>>>>>>> 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>>>>>>>>>> wget
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>>>>>>>>>> <phasereset@gmail.com>
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>>>>>>>>>> <zappfinger@gmail.com>
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the
>>>>>>>>>>>>>>>>>>>>> same error:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake
>>>>>>>>>>>>>>>>>>>>> is already the latest version. How did you get version 3?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the
>>>>>>>>>>>>>>>>>>>>>> cmake lists file. Although it looks like it is possible to use cmake 3 on
>>>>>>>>>>>>>>>>>>>>>> the pi.
>>>>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>>>>>>>>>> <zappfinger@gmail.com>
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>>>>>>>>>> <zappfinger@GMAIL.COM>
>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is
>>>>>>>>>>>>>>>>>>>>>>>> very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On
>>>>>>>>>>>>>>>>>>>>>>>> 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am
>>>>>>>>>>>>>>>>>>>>>>>>> running 3.0.1 here).
>>>>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard
>>>>>>>>>>>>>>>>>>>>>>>>>> <zappfinger@gmail.com>
>>>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..
>>>>>>>>>>>>>>>>>>>>>>>>>> -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17
>>>>>>>>>>>>>>>>>>>>>>>>>> (check_include_file):
>>>>>>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>>>>>>> I had cloned csound and copied the
>>>>>>>>>>>>>>>>>>>>>>>>>> csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>>>>>> be posted here
>>>>>>>>>>>>>
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>>> be posted here
>>>>>>>>>>
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>> be posted here
>>>>>>>>>
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>
>>>>>>
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>> <Custom.cmake>
>>>>>
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-19 14:59
FromMichael Gogins
SubjectRe: websocket error
The windows build is not straightforward. 

Regards, 
Mike

On Dec 19, 2016 8:58 AM, "Ed Costello" <phasereset@gmail.com> wrote:
Yeah I had to upgrade the library as version 2 had been out a while, so yeah 2 or above. It's only dependency is open SSL so it would compile pretty much anywhere. 
Ed

On 19 Dec 2016 06:29, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
As far as I remember, Ed is using version 2 for these opcodes.

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

> On 19 Dec 2016, at 01:20, Michael Gogins <michael.gogins@GMAIL.COM> wrote:
>
> On mingw64 pacman installs:
>
> mingw-w64-x86_64-libwebsockets 1.4-1
>
> This evidently is not the version of libwebsockets you are using. What
> version are you using? 2? That would need to be built for mingw, there
> is no prebuilt package for that version.
>
> Regards,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Sun, Dec 18, 2016 at 6:56 PM, Michael Gogins
> <michael.gogins@gmail.com> wrote:
>> Just fix the for loops. I'll have a look soon.
>>
>> Regards,
>> Mike
>>
>>> On Dec 18, 2016 5:56 PM, "Richard" <zappfinger@gmail.com> wrote:
>>>
>>> Correcting the quotes made things better, but:
>>>
>>> /home/pi/cslatest/csound/Opcodes/websockets/WebSocketOpcode.c:541:5:
>>> error: ‘for’ loop initial declarations are only allowed in C99 mode
>>> Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:57: recipe for
>>> target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o'
>>> failed
>>> make[2]: ***
>>> [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o] Error 1
>>>
>>> So I entered the option for c99 mode in Custom.cmake, but when I compile
>>> now, I do not see anything related to websockets being built...
>>>
>>> Richard
>>>
>>>> On 18/12/16 20:05, Victor Lazzarini wrote:
>>>>
>>>> also the double quotes at the end of this line (before the closing
>>>> parenthesis)
>>>> are of the wrong type. Did you copy and paste it from somewhere else?
>>>> They’re not UTF-8 as far as I can see.
>>>>
>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>
>>>> All you need is this single line (and nothing else) in your Custom.cmake.
>>>> Note
>>>> the correct double quotes.
>>>>
>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE")
>>>>
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>> On 18 Dec 2016, at 19:00, Victor Lazzarini <Victor.Lazzarini@NUIM.IE>
>>>>> wrote:
>>>>>
>>>>> This text at the end of the file will definitely break it:
>>>>> ====
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>> ======
>>>>> Are you attaching the correct file?
>>>>>
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 18 Dec 2016, at 18:48, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>
>>>>>> Here it is attached.
>>>>>>
>>>>>> Note: this is on a Raspberry Pi, so I am not compiling for Windows or
>>>>>> OS X.
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>>
>>>>>>> On 18/12/16 19:37, Victor Lazzarini wrote:
>>>>>>>
>>>>>>> please attach the file here so we can check it.
>>>>>>>
>>>>>>> Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>> Maynooth University
>>>>>>> Ireland
>>>>>>>
>>>>>>>> On 18 Dec 2016, at 18:29, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>
>>>>>>>> That was my first idea too. I've stripped down the file to just a few
>>>>>>>> active lines (most of it is comment):
>>>>>>>> I do not see anything strange in it
>>>>>>>>
>>>>>>>> # CUSTOM PROPERTIES TO SET
>>>>>>>>
>>>>>>>> # GLOBAL
>>>>>>>>
>>>>>>>> #set(CMAKE_BUILD_TYPE "Debug")
>>>>>>>> set(CMAKE_VERBOSE_MAKEFILE ON)
>>>>>>>> set(BUILD_STATIC_LIBRARY ON)
>>>>>>>> set(USE_OPEN_MP OFF)
>>>>>>>> set(TCL_VERSION 8.5)
>>>>>>>> set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
>>>>>>>> ##set(BUILD_CSOUND_AC OFF)
>>>>>>>> ##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
>>>>>>>> ##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)
>>>>>>>>
>>>>>>>> #### NOTE the processor type needs setting
>>>>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
>>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>>> ## also to test multicore
>>>>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W
>>>>>>>> -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> On 18/12/16 19:15, Victor Lazzarini wrote:
>>>>>>>>> Check your Custom.cmake file for typos. There is a typing error
>>>>>>>>> somewhere on line 34 or before.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>
>>>>>>>>>> On 18 Dec 2016, at 17:34, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>> I am following these steps now, in this case to disable NEON
>>>>>>>>>> support.
>>>>>>>>>>
>>>>>>>>>> I have done step 1:
>>>>>>>>>>
>>>>>>>>>> Try to add the correct flags for NEON compilation. This can be made
>>>>>>>>>> by editing the top-level file Custom.cmake.ex, and saving it as
>>>>>>>>>> Custom.cmake. ....
>>>>>>>>>>
>>>>>>>>>> And then step 2:
>>>>>>>>>>
>>>>>>>>>> If step 1 fails, there might be no NEON support for your arm chip,
>>>>>>>>>> in which case, you need to change the line above to
>>>>>>>>>>
>>>>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>>>>>
>>>>>>>>>> I get an error:
>>>>>>>>>>
>>>>>>>>>> CMake Error: Error in cmake code at
>>>>>>>>>> /home/pi/cslatest/csound/Custom.cmake:34:
>>>>>>>>>> Parse error.  Function missing ending ")".  Instead found
>>>>>>>>>> unterminated string with text ")
>>>>>>>>>>
>>>>>>>>>> endif()
>>>>>>>>>>
>>>>>>>>>> ".
>>>>>>>>>> CMake Error at CMakeLists.txt:206 (include):
>>>>>>>>>>  include could not find load file:
>>>>>>>>>>
>>>>>>>>>>    /home/pi/cslatest/csound/Custom.cmake
>>>>>>>>>>
>>>>>>>>>>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>>>>>>>>>> Instructions are here
>>>>>>>>>>>
>>>>>>>>>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>>>>>>>>>
>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>> Maynooth University
>>>>>>>>>>> Ireland
>>>>>>>>>>>
>>>>>>>>>>>> On 17 Dec 2016, at 22:54, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot
>>>>>>>>>>>> compile csound because of an error with pffft/neon. I have no clue on how to
>>>>>>>>>>>> disable this.
>>>>>>>>>>>>
>>>>>>>>>>>> In file included from
>>>>>>>>>>>> /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>>>>>>>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2:
>>>>>>>>>>>> error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp
>>>>>>>>>>>> -mfpu=neon) to use arm_neon.h
>>>>>>>>>>>>
>>>>>>>>>>>> I added these options in Cmake to no avail, so now I just want to
>>>>>>>>>>>> disable neon or the compiling of pffft...
>>>>>>>>>>>>
>>>>>>>>>>>> Richard
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>>>>>>>>>> No, you should run the command from the Csound build directory,
>>>>>>>>>>>>> as usual, adding the option, which will include
>>>>>>>>>>>>> the opcode in your build. Don’t modify any of the
>>>>>>>>>>>>> CMakeFiles.txt.
>>>>>>>>>>>>>
>>>>>>>>>>>>> If Csound is already built, only the websocket opcodes will be
>>>>>>>>>>>>> added. That’s how cmake & make work.
>>>>>>>>>>>>>
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 17 Dec 2016, at 21:32, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I'm running the cmake .. command form the
>>>>>>>>>>>>>> ../Opcodes/websockets/build directory, assuming that that will only build
>>>>>>>>>>>>>> the websockets plugin
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Maybe I should run cmake from the cs6make dir? But I do not
>>>>>>>>>>>>>> want to build csound, only the websockets plugin.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> You said:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> But what build dir did you mean? The one above csound-develop
>>>>>>>>>>>>>> or the one above Opcodes/websockets?
>>>>>>>>>>>>>> The latter does not work for me..
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> In other words, what do I need to do to only compile the
>>>>>>>>>>>>>> websockets plugin, not full csound?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>>>>>>>>>> Not sure I follow. If you add the websockets build option, the
>>>>>>>>>>>>>>> scripts should take care of it, you
>>>>>>>>>>>>>>> just build as normal, and the opcode will be built if all the
>>>>>>>>>>>>>>> dependencies are there etc.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 17 Dec 2016, at 18:25, Richard <zappfinger@gmail.com>
>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Maybe I was not clear:
>>>>>>>>>>>>>>>> I am not building csound as a whole, only the websockets
>>>>>>>>>>>>>>>> plugin.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains
>>>>>>>>>>>>>>>> everything, for example this section:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>>>>>>>>>> include(TestBigEndian)
>>>>>>>>>>>>>>>> include(CheckFunctionExists)
>>>>>>>>>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is
>>>>>>>>>>>>>>>> defined here apparently
>>>>>>>>>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>>>>>>>>>> include(CheckLibraryExists)
>>>>>>>>>>>>>>>> include(CMakeParseArguments)
>>>>>>>>>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>>>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>>>>>>>>>> # If FAIL_MISSING is true and the dependencies are not
>>>>>>>>>>>>>>>> fulfilled,
>>>>>>>>>>>>>>>> # it will abort the cmake run.
>>>>>>>>>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>>>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>>>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE
>>>>>>>>>>>>>>>> BISON_EXECUTABLE)
>>>>>>>>>>>>>>>> function(check_deps option)
>>>>>>>>>>>>>>>>    if(${option})
>>>>>>>>>>>>>>>>         ....
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does
>>>>>>>>>>>>>>>> not contain these lines. It is trying to use the functions
>>>>>>>>>>>>>>>> 'check_include_file' and 'check_deps', but it cannot find them, since they
>>>>>>>>>>>>>>>> are not included or defined.
>>>>>>>>>>>>>>>> So to only build the websockets plugin I cannot use this
>>>>>>>>>>>>>>>> CMakeLists.txt without modifications...
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I had to add the line:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> for this function 'check_include-file' to work. Then I found
>>>>>>>>>>>>>>>>> the next missing function 'check_deps', and so on...
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> If there were such a problem with the script, the code
>>>>>>>>>>>>>>>>>> would not be built anywhere else,
>>>>>>>>>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>>>>>>>>>> <zappfinger@GMAIL.COM>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> It seems that my unknown command comes from the fact that
>>>>>>>>>>>>>>>>>>> many functions used by Cmake are either defined in an include file or at the
>>>>>>>>>>>>>>>>>>> start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in
>>>>>>>>>>>>>>>>>>> the Opcodes/websockets dir can therefore not be used as such to build only
>>>>>>>>>>>>>>>>>>> the websockets opcode. I am adding gradually more lines to CMakeLists.txt in
>>>>>>>>>>>>>>>>>>> the websockets folder and things are improving. Still not there yet, but
>>>>>>>>>>>>>>>>>>> getting close..
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the
>>>>>>>>>>>>>>>>>>>> browser anyway, I'll have a look at that and the CMakelists file and see if
>>>>>>>>>>>>>>>>>>>> I can sort it out.
>>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>>>>>>>>>> <zappfinger@gmail.com>
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> No luck. After following your steps I am now on version
>>>>>>>>>>>>>>>>>>>> 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>>>>>>>>>> wget
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>>>>>>>>>> <phasereset@gmail.com>
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>>>>>>>>>> <zappfinger@gmail.com>
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the
>>>>>>>>>>>>>>>>>>>>> same error:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake
>>>>>>>>>>>>>>>>>>>>> is already the latest version. How did you get version 3?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the
>>>>>>>>>>>>>>>>>>>>>> cmake lists file. Although it looks like it is possible to use cmake 3 on
>>>>>>>>>>>>>>>>>>>>>> the pi.
>>>>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>>>>>>>>>> <zappfinger@gmail.com>
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>>>>>>>>>> <zappfinger@GMAIL.COM>
>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is
>>>>>>>>>>>>>>>>>>>>>>>> very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On
>>>>>>>>>>>>>>>>>>>>>>>> 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am
>>>>>>>>>>>>>>>>>>>>>>>>> running 3.0.1 here).
>>>>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard
>>>>>>>>>>>>>>>>>>>>>>>>>> <zappfinger@gmail.com>
>>>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..
>>>>>>>>>>>>>>>>>>>>>>>>>> -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17
>>>>>>>>>>>>>>>>>>>>>>>>>> (check_include_file):
>>>>>>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>>>>>>> I had cloned csound and copied the
>>>>>>>>>>>>>>>>>>>>>>>>>> csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>>>>>> be posted here
>>>>>>>>>>>>>
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>>> be posted here
>>>>>>>>>>
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>> be posted here
>>>>>>>>>
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>
>>>>>>
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>> <Custom.cmake>
>>>>>
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-12-19 15:18
FromVictor Lazzarini
SubjectRe: websocket error
Somehow, it doesn't surprise me.

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

On 19 Dec 2016, at 14:59, Michael Gogins <michael.gogins@GMAIL.COM> wrote:

The windows build is not straightforward. 

Regards, 
Mike

On Dec 19, 2016 8:58 AM, "Ed Costello" <phasereset@gmail.com> wrote:
Yeah I had to upgrade the library as version 2 had been out a while, so yeah 2 or above. It's only dependency is open SSL so it would compile pretty much anywhere. 
Ed

On 19 Dec 2016 06:29, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
As far as I remember, Ed is using version 2 for these opcodes.

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

> On 19 Dec 2016, at 01:20, Michael Gogins <michael.gogins@GMAIL.COM> wrote:
>
> On mingw64 pacman installs:
>
> mingw-w64-x86_64-libwebsockets 1.4-1
>
> This evidently is not the version of libwebsockets you are using. What
> version are you using? 2? That would need to be built for mingw, there
> is no prebuilt package for that version.
>
> Regards,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Sun, Dec 18, 2016 at 6:56 PM, Michael Gogins
> <michael.gogins@gmail.com> wrote:
>> Just fix the for loops. I'll have a look soon.
>>
>> Regards,
>> Mike
>>
>>> On Dec 18, 2016 5:56 PM, "Richard" <zappfinger@gmail.com> wrote:
>>>
>>> Correcting the quotes made things better, but:
>>>
>>> /home/pi/cslatest/csound/Opcodes/websockets/WebSocketOpcode.c:541:5:
>>> error: ‘for’ loop initial declarations are only allowed in C99 mode
>>> Opcodes/websockets/CMakeFiles/websocketIO.dir/build.make:57: recipe for
>>> target 'Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o'
>>> failed
>>> make[2]: ***
>>> [Opcodes/websockets/CMakeFiles/websocketIO.dir/WebSocketOpcode.c.o] Error 1
>>>
>>> So I entered the option for c99 mode in Custom.cmake, but when I compile
>>> now, I do not see anything related to websockets being built...
>>>
>>> Richard
>>>
>>>> On 18/12/16 20:05, Victor Lazzarini wrote:
>>>>
>>>> also the double quotes at the end of this line (before the closing
>>>> parenthesis)
>>>> are of the wrong type. Did you copy and paste it from somewhere else?
>>>> They’re not UTF-8 as far as I can see.
>>>>
>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>
>>>> All you need is this single line (and nothing else) in your Custom.cmake.
>>>> Note
>>>> the correct double quotes.
>>>>
>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE")
>>>>
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>> On 18 Dec 2016, at 19:00, Victor Lazzarini <Victor.Lazzarini@NUIM.IE>
>>>>> wrote:
>>>>>
>>>>> This text at the end of the file will definitely break it:
>>>>> ====
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>> ======
>>>>> Are you attaching the correct file?
>>>>>
>>>>> ========================
>>>>> Prof. Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>> Maynooth University,
>>>>> Maynooth, Co Kildare, Ireland
>>>>> Tel: 00 353 7086936
>>>>> Fax: 00 353 1 7086952
>>>>>
>>>>>> On 18 Dec 2016, at 18:48, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>
>>>>>> Here it is attached.
>>>>>>
>>>>>> Note: this is on a Raspberry Pi, so I am not compiling for Windows or
>>>>>> OS X.
>>>>>>
>>>>>> Richard
>>>>>>
>>>>>>
>>>>>>> On 18/12/16 19:37, Victor Lazzarini wrote:
>>>>>>>
>>>>>>> please attach the file here so we can check it.
>>>>>>>
>>>>>>> Victor Lazzarini
>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>> Maynooth University
>>>>>>> Ireland
>>>>>>>
>>>>>>>> On 18 Dec 2016, at 18:29, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>
>>>>>>>> That was my first idea too. I've stripped down the file to just a few
>>>>>>>> active lines (most of it is comment):
>>>>>>>> I do not see anything strange in it
>>>>>>>>
>>>>>>>> # CUSTOM PROPERTIES TO SET
>>>>>>>>
>>>>>>>> # GLOBAL
>>>>>>>>
>>>>>>>> #set(CMAKE_BUILD_TYPE "Debug")
>>>>>>>> set(CMAKE_VERBOSE_MAKEFILE ON)
>>>>>>>> set(BUILD_STATIC_LIBRARY ON)
>>>>>>>> set(USE_OPEN_MP OFF)
>>>>>>>> set(TCL_VERSION 8.5)
>>>>>>>> set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7")
>>>>>>>> ##set(BUILD_CSOUND_AC OFF)
>>>>>>>> ##set(BUILD_CSOUND_AC_PYTHON_INTERFACE OFF)
>>>>>>>> ##set(BUILD_CSOUND_AC_LUA_INTERFACE OFF)
>>>>>>>>
>>>>>>>> #### NOTE the processor type needs setting
>>>>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2")
>>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>>> ## also to test multicore
>>>>>>>> #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W
>>>>>>>> -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF")
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> On 18/12/16 19:15, Victor Lazzarini wrote:
>>>>>>>>> Check your Custom.cmake file for typos. There is a typing error
>>>>>>>>> somewhere on line 34 or before.
>>>>>>>>> ========================
>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>> Maynooth University,
>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>
>>>>>>>>>> On 18 Dec 2016, at 17:34, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>> I am following these steps now, in this case to disable NEON
>>>>>>>>>> support.
>>>>>>>>>>
>>>>>>>>>> I have done step 1:
>>>>>>>>>>
>>>>>>>>>> Try to add the correct flags for NEON compilation. This can be made
>>>>>>>>>> by editing the top-level file Custom.cmake.ex, and saving it as
>>>>>>>>>> Custom.cmake. ....
>>>>>>>>>>
>>>>>>>>>> And then step 2:
>>>>>>>>>>
>>>>>>>>>> If step 1 fails, there might be no NEON support for your arm chip,
>>>>>>>>>> in which case, you need to change the line above to
>>>>>>>>>>
>>>>>>>>>> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPFFFT_SIMD_DISABLE”)
>>>>>>>>>>
>>>>>>>>>> I get an error:
>>>>>>>>>>
>>>>>>>>>> CMake Error: Error in cmake code at
>>>>>>>>>> /home/pi/cslatest/csound/Custom.cmake:34:
>>>>>>>>>> Parse error.  Function missing ending ")".  Instead found
>>>>>>>>>> unterminated string with text ")
>>>>>>>>>>
>>>>>>>>>> endif()
>>>>>>>>>>
>>>>>>>>>> ".
>>>>>>>>>> CMake Error at CMakeLists.txt:206 (include):
>>>>>>>>>>  include could not find load file:
>>>>>>>>>>
>>>>>>>>>>    /home/pi/cslatest/csound/Custom.cmake
>>>>>>>>>>
>>>>>>>>>>> On 18/12/16 00:36, Victor Lazzarini wrote:
>>>>>>>>>>> Instructions are here
>>>>>>>>>>>
>>>>>>>>>>> https://github.com/csound/csound/blob/develop/BUILD.md#raspian
>>>>>>>>>>>
>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>> Maynooth University
>>>>>>>>>>> Ireland
>>>>>>>>>>>
>>>>>>>>>>>> On 17 Dec 2016, at 22:54, Richard <zappfinger@GMAIL.COM> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Ok, makes sense. But the next hurdle is: on my RPi I cannot
>>>>>>>>>>>> compile csound because of an error with pffft/neon. I have no clue on how to
>>>>>>>>>>>> disable this.
>>>>>>>>>>>>
>>>>>>>>>>>> In file included from
>>>>>>>>>>>> /home/pi/cslatest/csound/OOps/pffft.c:153:0:
>>>>>>>>>>>> /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/arm_neon.h:32:2:
>>>>>>>>>>>> error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp
>>>>>>>>>>>> -mfpu=neon) to use arm_neon.h
>>>>>>>>>>>>
>>>>>>>>>>>> I added these options in Cmake to no avail, so now I just want to
>>>>>>>>>>>> disable neon or the compiling of pffft...
>>>>>>>>>>>>
>>>>>>>>>>>> Richard
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> On 17/12/16 22:36, Victor Lazzarini wrote:
>>>>>>>>>>>>> No, you should run the command from the Csound build directory,
>>>>>>>>>>>>> as usual, adding the option, which will include
>>>>>>>>>>>>> the opcode in your build. Don’t modify any of the
>>>>>>>>>>>>> CMakeFiles.txt.
>>>>>>>>>>>>>
>>>>>>>>>>>>> If Csound is already built, only the websocket opcodes will be
>>>>>>>>>>>>> added. That’s how cmake & make work.
>>>>>>>>>>>>>
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 17 Dec 2016, at 21:32, Richard <zappfinger@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Ok, maybe what I am doing wrong is:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I'm running the cmake .. command form the
>>>>>>>>>>>>>> ../Opcodes/websockets/build directory, assuming that that will only build
>>>>>>>>>>>>>> the websockets plugin
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Maybe I should run cmake from the cs6make dir? But I do not
>>>>>>>>>>>>>> want to build csound, only the websockets plugin.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> You said:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> just turn the option on in CMAKE, from the build dir,
>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> But what build dir did you mean? The one above csound-develop
>>>>>>>>>>>>>> or the one above Opcodes/websockets?
>>>>>>>>>>>>>> The latter does not work for me..
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> In other words, what do I need to do to only compile the
>>>>>>>>>>>>>> websockets plugin, not full csound?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 17/12/16 21:46, Victor Lazzarini wrote:
>>>>>>>>>>>>>>> Not sure I follow. If you add the websockets build option, the
>>>>>>>>>>>>>>> scripts should take care of it, you
>>>>>>>>>>>>>>> just build as normal, and the opcode will be built if all the
>>>>>>>>>>>>>>> dependencies are there etc.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 17 Dec 2016, at 18:25, Richard <zappfinger@gmail.com>
>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Maybe I was not clear:
>>>>>>>>>>>>>>>> I am not building csound as a whole, only the websockets
>>>>>>>>>>>>>>>> plugin.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> The CMakeLists.txt file in the csound-develop folder contains
>>>>>>>>>>>>>>>> everything, for example this section:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> set(CS_FRAMEWORK_DEST "~/Library/Frameworks")
>>>>>>>>>>>>>>>> include(TestBigEndian)
>>>>>>>>>>>>>>>> include(CheckFunctionExists)
>>>>>>>>>>>>>>>> include(CheckIncludeFile)  <== 'check_include_file' is
>>>>>>>>>>>>>>>> defined here apparently
>>>>>>>>>>>>>>>> include(CheckIncludeFileCXX)
>>>>>>>>>>>>>>>> include(CheckLibraryExists)
>>>>>>>>>>>>>>>> include(CMakeParseArguments)
>>>>>>>>>>>>>>>> include(CheckCCompilerFlag)
>>>>>>>>>>>>>>>> include(CheckCXXCompilerFlag)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> It also defines some functions, like 'check_deps':
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> # Checks if dependencies for an enabled target are fulfilled.
>>>>>>>>>>>>>>>> # If FAIL_MISSING is true and the dependencies are not
>>>>>>>>>>>>>>>> fulfilled,
>>>>>>>>>>>>>>>> # it will abort the cmake run.
>>>>>>>>>>>>>>>> # If FAIL_MISSING is false, it will set the option to OFF.
>>>>>>>>>>>>>>>> # If the target is not enabled, it will do nothing.
>>>>>>>>>>>>>>>> # example: check_deps(BUILD_NEW_PARSER FLEX_EXECUTABLE
>>>>>>>>>>>>>>>> BISON_EXECUTABLE)
>>>>>>>>>>>>>>>> function(check_deps option)
>>>>>>>>>>>>>>>>    if(${option})
>>>>>>>>>>>>>>>>         ....
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> The CMakeLists.txt file in the Opcodes/websocket folder does
>>>>>>>>>>>>>>>> not contain these lines. It is trying to use the functions
>>>>>>>>>>>>>>>> 'check_include_file' and 'check_deps', but it cannot find them, since they
>>>>>>>>>>>>>>>> are not included or defined.
>>>>>>>>>>>>>>>> So to only build the websockets plugin I cannot use this
>>>>>>>>>>>>>>>> CMakeLists.txt without modifications...
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 17/12/16 16:40, Richard wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I had to add the line:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> include(CheckIncludeFile)
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> for this function 'check_include-file' to work. Then I found
>>>>>>>>>>>>>>>>> the next missing function 'check_deps', and so on...
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 17/12/16 16:36, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> But that function is builtin, not added to CMakeLists.txt.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> If there were such a problem with the script, the code
>>>>>>>>>>>>>>>>>> would not be built anywhere else,
>>>>>>>>>>>>>>>>>> and it is being built on osx and linux.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 17 Dec 2016, at 15:18, Richard
>>>>>>>>>>>>>>>>>> <zappfinger@GMAIL.COM>
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> It seems that my unknown command comes from the fact that
>>>>>>>>>>>>>>>>>>> many functions used by Cmake are either defined in an include file or at the
>>>>>>>>>>>>>>>>>>> start of the generic csound CMakeLists.txt. The CMakeLists.txt defined in
>>>>>>>>>>>>>>>>>>> the Opcodes/websockets dir can therefore not be used as such to build only
>>>>>>>>>>>>>>>>>>> the websockets opcode. I am adding gradually more lines to CMakeLists.txt in
>>>>>>>>>>>>>>>>>>> the websockets folder and things are improving. Still not there yet, but
>>>>>>>>>>>>>>>>>>> getting close..
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 15/12/16 00:40, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> OK, theres a bug in receiving data from Csound in the
>>>>>>>>>>>>>>>>>>>> browser anyway, I'll have a look at that and the CMakelists file and see if
>>>>>>>>>>>>>>>>>>>> I can sort it out.
>>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 23:36, Richard
>>>>>>>>>>>>>>>>>>>> <zappfinger@gmail.com>
>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>> No luck. After following your steps I am now on version
>>>>>>>>>>>>>>>>>>>> 3.2.3 on my RPi, but the error is still there...
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 14/12/16 23:00, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Apparently this works:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> sudo apt-get install build-essential
>>>>>>>>>>>>>>>>>>>>> wget
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> tar xzf cmake-3.2.3.tar.gz
>>>>>>>>>>>>>>>>>>>>> cd cmake-3.2.3
>>>>>>>>>>>>>>>>>>>>> ./configure
>>>>>>>>>>>>>>>>>>>>> sudo make install
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:58, Ed Costello
>>>>>>>>>>>>>>>>>>>>> <phasereset@gmail.com>
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> Think I built it from source
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> http://osdevlab.blogspot.ie/2015/12/how-to-install-latest-cmake-for.html
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 14 December 2016 at 21:54, Richard
>>>>>>>>>>>>>>>>>>>>> <zappfinger@gmail.com>
>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>> That's weird, on my Pi I have cmake 2.8.9, but I got the
>>>>>>>>>>>>>>>>>>>>> same error:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17 (check_include_file):
>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> I tried to install cmake with apt-get, but it says cmake
>>>>>>>>>>>>>>>>>>>>> is already the latest version. How did you get version 3?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On 14/12/16 18:19, Ed Costello wrote:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Maybe not, it may not be essential to have that in the
>>>>>>>>>>>>>>>>>>>>>> cmake lists file. Although it looks like it is possible to use cmake 3 on
>>>>>>>>>>>>>>>>>>>>>> the pi.
>>>>>>>>>>>>>>>>>>>>>> Ed
>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016 14:55, "Richard"
>>>>>>>>>>>>>>>>>>>>>> <zappfinger@gmail.com>
>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>> Then we're in trouble ;-). I'll do some more research..
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> On 14/12/16 15:53, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Maybe it disappeared from cmake in later
>>>>>>>>>>>>>>>>>>>>>>> versions?
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> https://cmake.org/cmake/help/v3.0/module/CheckIncludeFile.html
>>>>>>>>>>>>>>>>>>>>>>> Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>>>>>>>>>>>>>>>>>>> Maynooth University
>>>>>>>>>>>>>>>>>>>>>>> Ireland
>>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 14:43, Richard
>>>>>>>>>>>>>>>>>>>>>>> <zappfinger@GMAIL.COM>
>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> I installed from their site, a GUI app, my version is
>>>>>>>>>>>>>>>>>>>>>>>> very recent: RMA:build richard$ cmake --version cmake version 3.7.1 On
>>>>>>>>>>>>>>>>>>>>>>>> 14/12/16 15:13, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Maybe you need to update your cmake version (I am
>>>>>>>>>>>>>>>>>>>>>>>>> running 3.0.1 here).
>>>>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>>>> Prof. Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth University,
>>>>>>>>>>>>>>>>>>>>>>>>> Maynooth, Co Kildare, Ireland
>>>>>>>>>>>>>>>>>>>>>>>>> Tel: 00 353 7086936
>>>>>>>>>>>>>>>>>>>>>>>>> Fax: 00 353 1 7086952
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> On 14 Dec 2016, at 13:51, Richard
>>>>>>>>>>>>>>>>>>>>>>>>>> <zappfinger@gmail.com>
>>>>>>>>>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>>>>>>>>> I tried to do that but get an error:
>>>>>>>>>>>>>>>>>>>>>>>>>> RMA:build richard$ cmake  ..
>>>>>>>>>>>>>>>>>>>>>>>>>> -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>>> CMake Error at CMakeLists.txt:17
>>>>>>>>>>>>>>>>>>>>>>>>>> (check_include_file):
>>>>>>>>>>>>>>>>>>>>>>>>>> Unknown CMake command "check_include_file".
>>>>>>>>>>>>>>>>>>>>>>>>>> I had cloned csound and copied the
>>>>>>>>>>>>>>>>>>>>>>>>>> csound/websockets dir to another dir to compile.
>>>>>>>>>>>>>>>>>>>>>>>>>> Richard
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>> On 13/12/16 20:02, Victor Lazzarini wrote:
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>> cmake  ..  -DBUILD_WEBSOCKET_OPCODE=1
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>>>> https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>>>>>> be posted here
>>>>>>>>>>>>>
>>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>>
>>>>>>>>>>>> Csound mailing list
>>>>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>>>>> Send bugs reports to
>>>>>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>>
>>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>>> be posted here
>>>>>>>>>>
>>>>>>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>>>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>>>>>>> be posted here
>>>>>>>>>
>>>>>>>>> Csound mailing list
>>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>>> Send bugs reports to
>>>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>
>>>>>>>> Csound mailing list
>>>>>>>> Csound@listserv.heanet.ie
>>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>> Send bugs reports to
>>>>>>>>      https://github.com/csound/csound/issues
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>
>>>>>>> Csound mailing list
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>
>>>>>>
>>>>>> Csound mailing list
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>> Send bugs reports to
>>>>>>      https://github.com/csound/csound/issues
>>>>>> Discussions of bugs and features can be posted here
>>>>>> <Custom.cmake>
>>>>>
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here