Re: Node.js to Csound
Date | 2015-09-09 16:22 |
From | Richard |
Subject | Re: Node.js to Csound |
Ok, thanks Michael, that looks very interesting. I will give this a try. What sliders/GUI did you use in the screen shot? Richard On 09/09/15 02:44, Michael Gogins wrote: Csound works just fine in NW.js (used to be called Node-webkit), which is based on node.js. csound.node is distributed in binary form with the Windows installer for Csound, and is easy to set up in NW.js. NW.js serves Web pages to the user from a local directory. If you need Csound to run on a Web server with node.js or io.js, you can probably adapt the build procedure that I created for csound.node to work for node.js. Screen shot of Csound editor and piece running in NW.js is attached. Don't re-invent the wheel unless that is the kind of thing that you like to do. Building csound.node on Linux is very easy. Instructions are in the files related to csound.node examples in the Csound git repository. ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com [michaelgogins.tumblr.com] Michael dot Gogins at gmail dot com ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-09 16:33 |
From | Michael Gogins |
Subject | Re: Node.js to Csound |
I used dat.gui, but you can use any JavaScript library or app framework. Later I will send you the csd for this screen shot. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Sep 9, 2015 at 11:22 AM, Richard < |
Date | 2015-09-09 17:37 |
From | Richard |
Subject | Re: Node.js to Csound |
That's great. I tried to find csound.node source and the build instructions in the repository, but could not find it yet. What folder is it in? Richard On 09/09/15 17:33, Michael Gogins wrote: > I used dat.gui, but you can use any JavaScript library or app > framework. Later I will send you the csd for this screen shot. > > Regards, > Mike > > ----------------------------------------------------- > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > > > On Wed, Sep 9, 2015 at 11:22 AM, Richard < |
Date | 2015-09-09 17:42 |
From | Michael Gogins |
Subject | Re: Node.js to Csound |
Here: https://github.com/csound/csound/tree/develop/frontends/nwjs Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Sep 9, 2015 at 12:37 PM, Richard |
Date | 2015-09-09 20:51 |
From | Richard |
Subject | Re: Node.js to Csound |
Attachments | None None |
I tried to follow your steps, but I got stuck. You write: From the io.js command prompt, execute npm install nw-gyp to install the build tool
for NW.js addonsBut what is the io.js command prompt? I can enter iojs but then I enter some REPL editor. When I try to execute the command npm install nw-gyp, I
get: From the io.js command prompt, execute nw-gyp configure
--version <version number of NW.js> to configure the build
tool for your version of NW.js. The version number is printed on
the default window of the NW.js nw program.How can I get the version number of the nw program when it yet has to be built? I must say I installed io.js from a pre-built OS X version, this is the link:https://iojs.org/en/ Richard On 09/09/15 18:42, Michael Gogins
wrote:
Here: https://github.com/csound/csound/tree/develop/frontends/nwjs Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Sep 9, 2015 at 12:37 PM, Richard <zappfinger@gmail.com> wrote:That's great. I tried to find csound.node source and the build instructions in the repository, but could not find it yet. What folder is it in? Richard On 09/09/15 17:33, Michael Gogins wrote:I used dat.gui, but you can use any JavaScript library or app framework. Later I will send you the csd for this screen shot. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Sep 9, 2015 at 11:22 AM, Richard <<zappfinger@gmail.com> wrote:Ok, thanks Michael, that looks very interesting. I will give this a try. What sliders/GUI did you use in the screen shot? Richard On 09/09/15 02:44, Michael Gogins wrote: Csound works just fine in NW.js (used to be called Node-webkit), which is based on node.js. csound.node is distributed in binary form with the Windows installer for Csound, and is easy to set up in NW.js. NW.js serves Web pages to the user from a local directory. If you need Csound to run on a Web server with node.js or io.js, you can probably adapt the build procedure that I created for csound.node to work for node.js. Screen shot of Csound editor and piece running in NW.js is attached. Don't re-invent the wheel unless that is the kind of thing that you like to do. Building csound.node on Linux is very easy. Instructions are in the files related to csound.node examples in the Csound git repository. ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com [michaelgogins.tumblr.com] Michael dot Gogins at gmail dot com ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-09 23:59 |
From | Michael Gogins |
Subject | Re: Node.js to Csound |
I thought you are on Linux or Windows. I have no idea what to do on OS X. In my Windows start menu, there is a folder Program/io.js/io.js command prompt. That is what I mean. It is a WIndows command shell set up to run io.js and npm. I assume it will work with a few tweaks. There must be some command shell that will run io.js and npm. If not you can create one by setting the path and some environment variables, I assume, according to the io.js and npm documentation. You are not building nw. It is the actual NW.js program that you should have installed. You are building csound.node, which will be loaded by NW.js. When you run nw, it will show a splash Web page that displays the version numbers. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Sep 9, 2015 at 3:51 PM, Richard |
Date | 2015-09-10 08:56 |
From | Richard |
Subject | Re: Node.js to Csound/csound.h not found |
I am a bit further now. Have installed both io and nw precompiled for OS X. But when I try to compile, I get: RMA:nwjs richard$ sudo nw-gyp build gyp info it worked if it ends with ok gyp info using nw-gyp@0.12.4 gyp info using node@3.3.0 | darwin | x64 (node) child_process: options.customFds option is deprecated. Use options.stdio instead. gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] CXX(target) Release/obj.target/csound/jscsound.o ../jscsound.cpp:42:10: fatal error: 'csound.h' file not found #include |
Date | 2015-09-10 09:07 |
From | Richard |
Subject | Re: Node.js to Csound |
Attachments | None None |
I did a bold thing: found csound.h in the include dir, copied it to
the nwjs folder. Now I got another error: gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] CXX(target) Release/obj.target/csound/jscsound.o ../jscsound.cpp:42:10: error: 'csound.h' file not found with <angled> include; use "quotes" instead #include <csound.h> ^~~~~~~~~~ "csound.h" In file included from ../jscsound.cpp:42: ../csound.h:210:12: fatal error: 'sysdep.h' file not found # include "sysdep.h" ^ 2 errors generated. It looks like the build settings cannot find the include files? Richard On 10/09/15 00:59, Michael Gogins
wrote:
I thought you are on Linux or Windows. I have no idea what to do on OS X. In my Windows start menu, there is a folder Program/io.js/io.js command prompt. That is what I mean. It is a WIndows command shell set up to run io.js and npm. I assume it will work with a few tweaks. There must be some command shell that will run io.js and npm. If not you can create one by setting the path and some environment variables, I assume, according to the io.js and npm documentation. You are not building nw. It is the actual NW.js program that you should have installed. You are building csound.node, which will be loaded by NW.js. When you run nw, it will show a splash Web page that displays the version numbers. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Sep 9, 2015 at 3:51 PM, Richard <zappfinger@gmail.com> wrote:I tried to follow your steps, but I got stuck. You write: >From the io.js command prompt, execute npm install nw-gyp to install the build tool for NW.js addons But what is the io.js command prompt? I can enter iojs but then I enter some REPL editor. When I try to execute the command npm install nw-gyp, I get: npm should be run outside of the node repl, in your normal shell. The same for the following lines: >From the io.js command prompt, execute nw-gyp configure --version <version number of NW.js> to configure the build tool for your version of NW.js. The version number is printed on the default window of the NW.js nw program. How can I get the version number of the nw program when it yet has to be built? I must say I installed io.js from a pre-built OS X version, this is the link:https://iojs.org/en/ Richard On 09/09/15 18:42, Michael Gogins wrote: Here: https://github.com/csound/csound/tree/develop/frontends/nwjs Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Sep 9, 2015 at 12:37 PM, Richard <zappfinger@gmail.com> wrote: That's great. I tried to find csound.node source and the build instructions in the repository, but could not find it yet. What folder is it in? Richard On 09/09/15 17:33, Michael Gogins wrote: I used dat.gui, but you can use any JavaScript library or app framework. Later I will send you the csd for this screen shot. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Sep 9, 2015 at 11:22 AM, Richard <<zappfinger@gmail.com> wrote: Ok, thanks Michael, that looks very interesting. I will give this a try. What sliders/GUI did you use in the screen shot? Richard On 09/09/15 02:44, Michael Gogins wrote: Csound works just fine in NW.js (used to be called Node-webkit), which is based on node.js. csound.node is distributed in binary form with the Windows installer for Csound, and is easy to set up in NW.js. NW.js serves Web pages to the user from a local directory. If you need Csound to run on a Web server with node.js or io.js, you can probably adapt the build procedure that I created for csound.node to work for node.js. Screen shot of Csound editor and piece running in NW.js is attached. Don't re-invent the wheel unless that is the kind of thing that you like to do. Building csound.node on Linux is very easy. Instructions are in the files related to csound.node examples in the Csound git repository. ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com [michaelgogins.tumblr.com] Michael dot Gogins at gmail dot com ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-10 12:51 |
From | Michael Gogins |
Subject | Re: Node.js to Csound |
Thanks for the information. The include and lib directories are specified in binding.gyp. You will need to add sections for OS X similar to the ones already in that file for "win" and "linux". When you have done this create a pull request or just email me your version of binding.gyp. The directories should refer to the INSTALLED Csound, not your local Csound repository. If that doesn't work on OS X, then fall back to specifying the local Csound repository. I believe the ID for OS X in binding.gyp files is 'mac'. I will modify README.md to reflect this. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Sep 10, 2015 at 4:07 AM, Richard |
Date | 2015-09-10 15:19 |
From | Richard |
Subject | Re: Node.js to Csound |
It's getting a bit messy... I did add a mac section to binding.gyp and also copied a lot of required include files to the nwjs directory, like cstdlib (changed the include |
Date | 2015-09-10 15:34 |
From | Michael Gogins |
Subject | Re: Node.js to Csound |
The business about configuring node-gyp is to select the right version of the v8 API. Did you do that step? (nw-gyp configure --version |
Date | 2015-09-10 21:16 |
From | Richard |
Subject | Re: Node.js to Csound |
Attachments | None None |
That does not work, when I do nw-gyp configure --version=0.12.3 I
get: RMA:nwjs richard$ sudo nw-gyp configure --version=0.12.3 gyp info it worked if it ends with ok gyp info using nw-gyp@0.12.4 gyp info using node@3.3.0 | darwin | x64 gyp http GET http://node-webkit.s3.amazonaws.com/v3.3.0/nw-headers-v3.3.0.tar.gz gyp http 404 http://node-webkit.s3.amazonaws.com/v3.3.0/nw-headers-v3.3.0.tar.gz gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: 404 status code downloading tarball gyp ERR! stack at Request.<anonymous> (/usr/local/lib/node_modules/nw-gyp/lib/install.js:234:14) gyp ERR! stack at emitOne (events.js:82:20) gyp ERR! stack at Request.emit (events.js:169:7) gyp ERR! stack at Request.onRequestResponse (/usr/local/lib/node_modules/nw-gyp/node_modules/request/request.js:1008:10) gyp ERR! stack at emitOne (events.js:77:13) gyp ERR! stack at ClientRequest.emit (events.js:169:7) gyp ERR! stack at HTTPParser.parserOnIncomingClient (_http_client.js:415:21) gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23) gyp ERR! stack at Socket.socketOnData (_http_client.js:305:20) gyp ERR! stack at emitOne (events.js:77:13) gyp ERR! System Darwin 14.3.0 gyp ERR! command "/usr/local/bin/iojs" "/usr/local/bin/nw-gyp" "configure" "--version=0.12.3" gyp ERR! cwd /Users/richard/Downloads/csound/frontends/nwjs gyp ERR! node -v v3.3.0 gyp ERR! nw-gyp -v v0.12.4 gyp ERR! not ok But the nw-gyp website does not even mention this command, it talks about nw-gyp configure target=<> But when I do that, this happens: RMA:nwjs richard$ sudo nw-gyp configure --target=0.12.3 gyp info it worked if it ends with ok gyp info using nw-gyp@0.12.4 gyp info using node@3.3.0 | darwin | x64 (node) child_process: options.customFds option is deprecated. Use options.stdio instead. gyp info spawn python gyp info spawn args [ '/usr/local/lib/node_modules/nw-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/Users/richard/Downloads/csound/frontends/nwjs/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/local/lib/node_modules/nw-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/richard/.nw-gyp/0.12.3/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/Users/richard/.nw-gyp/0.12.3', gyp info spawn args '-Dmodule_root_dir=/Users/richard/Downloads/csound/frontends/nwjs', gyp info spawn args '--depth=.', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info ok So this looks ok, but the the actual build goes wrong: RMA:nwjs richard$ sudo nw-gyp build gyp info it worked if it ends with ok gyp info using nw-gyp@0.12.4 gyp info using node@3.3.0 | darwin | x64 (node) child_process: options.customFds option is deprecated. Use options.stdio instead. gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] CXX(target) Release/obj.target/csound/jscsound.o In file included from ../jscsound.cpp:48: In file included from ../node.h:42: ../v8.h:362:3: error: unknown type name 'V8_WARN_UNUSED_RESULT' V8_WARN_UNUSED_RESULT V8_INLINE bool ToLocal(Local<S>* out) const { ^ ../v8.h:362:25: error: expected member name or ';' after declaration specifiers V8_WARN_UNUSED_RESULT V8_INLINE bool ToLocal(Local<S>* out) const { ~~~~~~~~~~~~~~~~~~~~~ ^ /Users/richard/.nw-gyp/0.12.3/deps/v8/include/v8config.h:301:20: note: expanded from macro 'V8_INLINE' # define V8_INLINE inline __attribute__((always_inline)) ^ In file included from ../jscsound.cpp:48: In file included from ../node.h:42: ../v8.h:420:31: error: expected parameter declarator V8_INLINE V8_DEPRECATE_SOON("use indexed version", ^ ../v8.h:420:31: error: expected ')' and a lot more... Richard On 10/09/15 16:34, Michael Gogins
wrote:
The business about configuring node-gyp is to select the right version of the v8 API. Did you do that step? (nw-gyp configure --version <version number of NW.js>). If you did, then for some reason the wrong version is being scanned anyway, might be an environment variable you should not have for this purpose. You should not copy include files except to figure out what's going on. Take them out again and configure the include paths instead. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Sep 10, 2015 at 10:19 AM, Richard <zappfinger@gmail.com> wrote:It's getting a bit messy... I did add a mac section to binding.gyp and also copied a lot of required include files to the nwjs directory, like cstdlib (changed the include <xx> to include "xx" for these files) But now compiling gives: ACTION Regenerating Makefile CXX(target) Release/obj.target/csound/jscsound.o In file included from ../jscsound.cpp:48: In file included from ../node.h:42: ../v8.h:362:3: error: unknown type name 'V8_WARN_UNUSED_RESULT' V8_WARN_UNUSED_RESULT V8_INLINE bool ToLocal(Local<S>* out) const { ^ ../v8.h:362:25: error: expected member name or ';' after declaration specifiers V8_WARN_UNUSED_RESULT V8_INLINE bool ToLocal(Local<S>* out) const { ~~~~~~~~~~~~~~~~~~~~~ ^ /Users/richard/.nw-gyp/0.12.3/deps/v8/include/v8config.h:301:20: note: expanded from macro 'V8_INLINE' # define V8_INLINE inline __attribute__((always_inline)) ^ In file included from ../jscsound.cpp:48: In file included from ../node.h:42: ../v8.h:420:31: error: expected parameter declarator V8_INLINE V8_DEPRECATE_SOON("use indexed version", This looks like syntax errors in v8.h... Richard On 10/09/15 13:51, Michael Gogins wrote:Thanks for the information. The include and lib directories are specified in binding.gyp. You will need to add sections for OS X similar to the ones already in that file for "win" and "linux". When you have done this create a pull request or just email me your version of binding.gyp. The directories should refer to the INSTALLED Csound, not your local Csound repository. If that doesn't work on OS X, then fall back to specifying the local Csound repository. I believe the ID for OS X in binding.gyp files is 'mac'. I will modify README.md to reflect this. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Sep 10, 2015 at 4:07 AM, Richard <zappfinger@gmail.com> wrote:I did a bold thing: found csound.h in the include dir, copied it to the nwjs folder. Now I got another error: gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] CXX(target) Release/obj.target/csound/jscsound.o ../jscsound.cpp:42:10: error: 'csound.h' file not found with <angled> include; use "quotes" instead #include <csound.h> ^~~~~~~~~~ "csound.h" In file included from ../jscsound.cpp:42: ../csound.h:210:12: fatal error: 'sysdep.h' file not found # include "sysdep.h" ^ 2 errors generated. It looks like the build settings cannot find the include files? Richard On 10/09/15 00:59, Michael Gogins wrote: I thought you are on Linux or Windows. I have no idea what to do on OS X. In my Windows start menu, there is a folder Program/io.js/io.js command prompt. That is what I mean. It is a WIndows command shell set up to run io.js and npm. I assume it will work with a few tweaks. There must be some command shell that will run io.js and npm. If not you can create one by setting the path and some environment variables, I assume, according to the io.js and npm documentation. You are not building nw. It is the actual NW.js program that you should have installed. You are building csound.node, which will be loaded by NW.js. When you run nw, it will show a splash Web page that displays the version numbers. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Sep 9, 2015 at 3:51 PM, Richard <zappfinger@gmail.com> wrote: I tried to follow your steps, but I got stuck. You write: >From the io.js command prompt, execute npm install nw-gyp to install the build tool for NW.js addons But what is the io.js command prompt? I can enter iojs but then I enter some REPL editor. When I try to execute the command npm install nw-gyp, I get: npm should be run outside of the node repl, in your normal shell. The same for the following lines: >From the io.js command prompt, execute nw-gyp configure --version <version number of NW.js> to configure the build tool for your version of NW.js. The version number is printed on the default window of the NW.js nw program. How can I get the version number of the nw program when it yet has to be built? I must say I installed io.js from a pre-built OS X version, this is the link:https://iojs.org/en/ Richard On 09/09/15 18:42, Michael Gogins wrote: Here: https://github.com/csound/csound/tree/develop/frontends/nwjs Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Sep 9, 2015 at 12:37 PM, Richard <zappfinger@gmail.com> wrote: That's great. I tried to find csound.node source and the build instructions in the repository, but could not find it yet. What folder is it in? Richard On 09/09/15 17:33, Michael Gogins wrote: I used dat.gui, but you can use any JavaScript library or app framework. Later I will send you the csd for this screen shot. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Sep 9, 2015 at 11:22 AM, Richard <<zappfinger@gmail.com> wrote: Ok, thanks Michael, that looks very interesting. I will give this a try. What sliders/GUI did you use in the screen shot? Richard On 09/09/15 02:44, Michael Gogins wrote: Csound works just fine in NW.js (used to be called Node-webkit), which is based on node.js. csound.node is distributed in binary form with the Windows installer for Csound, and is easy to set up in NW.js. NW.js serves Web pages to the user from a local directory. If you need Csound to run on a Web server with node.js or io.js, you can probably adapt the build procedure that I created for csound.node to work for node.js. Screen shot of Csound editor and piece running in NW.js is attached. Don't re-invent the wheel unless that is the kind of thing that you like to do. Building csound.node on Linux is very easy. Instructions are in the files related to csound.node examples in the Csound git repository. ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com [michaelgogins.tumblr.com] Michael dot Gogins at gmail dot com ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-09-10 22:08 |
From | Michael Gogins |
Subject | Re: Node.js to Csound |
Attachments | None None |
It looks like you still are scanning the wrong headers, but I'm not sure. Since I do not work on a Mac I have reached the end of my expertise. I suggest you ask the nw-gyp or NW.js lists or people. You could also try googling for this or similar errors. Regards, On Sep 10, 2015 4:17 PM, "Richard" <zappfinger@gmail.com> wrote:
|