websocket error
Date | 2016-12-13 12:43 |
From | Richard |
Subject | websocket 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 |
Date | 2016-12-13 12:46 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-13 16:37 |
From | Ed Costello |
Subject | Re: 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 |
Date | 2016-12-13 16:37 |
From | Richard |
Subject | Re: 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 |
Date | 2016-12-13 16:42 |
From | Richard |
Subject | Re: 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 |
Date | 2016-12-13 16:43 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-13 16:47 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-13 16:49 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-13 16:50 |
From | Richard |
Subject | Re: 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 |
Date | 2016-12-13 16:55 |
From | Ed Costello |
Subject | Re: 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... |
Date | 2016-12-13 17:02 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-13 17:02 |
From | Richard |
Subject | Re: 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. Richard On 13/12/16 17:55, Ed Costello wrote:
|
Date | 2016-12-13 17:04 |
From | Ed Costello |
Subject | Re: 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:
|
Date | 2016-12-13 17:08 |
From | Richard |
Subject | Re: 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:
|
Date | 2016-12-13 17:10 |
From | Ed Costello |
Subject | Re: 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
|
Date | 2016-12-13 17:36 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-13 18:14 |
From | Richard |
Subject | Re: websocket error |
I do not see any recent changes there, maybe Victor merged in the
big Csound branch (wherever that is). 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. |
Date | 2016-12-13 18:24 |
From | Ed Costello |
Subject | Re: websocket error |
The files are merged into the develop branch I believe, Ed
|
Date | 2016-12-13 18:51 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-13 18:56 |
From | Richard |
Subject | Re: 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 |
Date | 2016-12-13 19:02 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-14 13:51 |
From | Richard |
Subject | Re: 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 |
Date | 2016-12-14 14:13 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-14 14:42 |
From | Richard |
Subject | Re: 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 |
Date | 2016-12-14 14:53 |
From | Victor Lazzarini |
Subject | Re: 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
|
Date | 2016-12-14 14:55 |
From | Richard |
Subject | Re: websocket error |
Then we're in trouble ;-). On 14/12/16 15:53, Victor Lazzarini
wrote:
|
Date | 2016-12-14 17:19 |
From | Ed Costello |
Subject | Re: 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:
|
Date | 2016-12-14 21:54 |
From | Richard |
Subject | Re: 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): I tried to install cmake with apt-get, but it says cmake is
already the latest version. Richard On 14/12/16 18:19, Ed Costello wrote:
|
Date | 2016-12-14 21:58 |
From | Ed Costello |
Subject | Re: websocket error |
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:
|
Date | 2016-12-14 22:00 |
From | Ed Costello |
Subject | Re: websocket error |
Apparently this works:
On 14 December 2016 at 21:58, Ed Costello <phasereset@gmail.com> wrote:
|
Date | 2016-12-14 23:36 |
From | Richard |
Subject | Re: 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:
|
Date | 2016-12-14 23:40 |
From | Ed Costello |
Subject | Re: 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:
|
Date | 2016-12-17 15:17 |
From | Richard |
Subject | Re: 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:
|
Date | 2016-12-17 15:36 |
From | Victor Lazzarini |
Subject | Re: 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
|
Date | 2016-12-17 15:40 |
From | Richard |
Subject | Re: 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:
|
Date | 2016-12-17 18:25 |
From | Richard |
Subject | Re: websocket error |
Maybe I was not clear: The CMakeLists.txt file in the csound-develop folder contains everything, for example this section: set(CS_FRAMEWORK_DEST "~/Library/Frameworks") It also defines some functions, like 'check_deps': # Checks if dependencies for an enabled target are fulfilled. 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. Richard
On 17/12/16 16:40, Richard wrote:
|
Date | 2016-12-17 20:46 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-17 21:32 |
From | Richard |
Subject | Re: 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 7086952On 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 7086952On 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=1Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted hereCsound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted hereCsound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted hereCsound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted hereCsound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted hereCsound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted hereCsound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted hereCsound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted hereCsound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted hereCsound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted hereCsound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-12-17 21:36 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-17 21:44 |
From | Michael Gogins |
Subject | Re: 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 |
Date | 2016-12-17 21:50 |
From | Michael Gogins |
Subject | Re: 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 |
Date | 2016-12-17 22:53 |
From | Richard |
Subject | Re: 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 |
Date | 2016-12-17 22:59 |
From | Michael Gogins |
Subject | Re: 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 |
Date | 2016-12-17 23:36 |
From | Victor Lazzarini |
Subject | Re: 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
|
Date | 2016-12-18 02:22 |
From | Ed Costello |
Subject | Re: 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
|
Date | 2016-12-18 02:34 |
From | Michael Gogins |
Subject | Re: 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:
|
Date | 2016-12-18 17:34 |
From | Richard |
Subject | Re: 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 On 18/12/16 00:36, Victor Lazzarini
wrote:
|
Date | 2016-12-18 18:15 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-18 18:29 |
From | Richard |
Subject | Re: 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 |
Date | 2016-12-18 18:37 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-18 18:48 |
From | Richard |
Subject | Re: websocket error |
Attachments | Custom.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 |
Date | 2016-12-18 19:00 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-18 19:05 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-18 19:09 |
From | Richard |
Subject | Re: 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 |
Date | 2016-12-18 22:56 |
From | Richard |
Subject | Re: 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 |
Date | 2016-12-18 23:56 |
From | Michael Gogins |
Subject | Re: 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: |
Date | 2016-12-19 01:19 |
From | Michael Gogins |
Subject | Re: 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 |
Date | 2016-12-19 06:28 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-19 06:29 |
From | Victor Lazzarini |
Subject | Re: 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 |
Date | 2016-12-19 13:58 |
From | Ed Costello |
Subject | Re: 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. |
Date | 2016-12-19 14:59 |
From | Michael Gogins |
Subject | Re: websocket error |
The windows build is not straightforward. Regards, Mike On Dec 19, 2016 8:58 AM, "Ed Costello" <phasereset@gmail.com> wrote:
|
Date | 2016-12-19 15:18 |
From | Victor Lazzarini |
Subject | Re: websocket error |
Somehow, it doesn't surprise me.
Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
|