Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Update for Emscripten

Date2014-11-18 16:01
FromSteven Yi
SubjectRe: [Cs-dev] Update for Emscripten
AttachmentsNone  None  
Hi Ed,

Could you send any changes you've made to CsoundObj.js and other files here?  I can probably help better if I can reproduce the issue locally.

steven

On Mon Nov 17 2014 at 6:27:19 PM Edward Costello <phasereset@gmail.com> wrote:
Ok, so that error actually isn’t an error, it’s just a warning that all the javascript hasn’t loaded yet.
So I can instantiate Csound now, I had to change some of the cwrap functions in the constructor as you used to be able to give the input/output arguments to the C function without square braces if there was only 1 argument, now you have to put them always in square braces, so that will have to change.
e.g from this: 

var _process = cwrap('CsoundObj_process', 'number', ['number', 'number', 'number', 'number']);

to this: 

var _process = cwrap('CsoundObj_process', ['number'], ['number', 'number', 'number', 'number']);

But now I am getting crashes when I try to compile an orchestra with this:

missing function: csp_orc_sa_instr_add_tree libcsound.js:1



On 16 Nov 2014, at 23:26, Edward Costello <phasereset@gmail.com> wrote:

Ok,

I did a fresh clone and it builds fine now. Unfortunately it won’t run, I’m getting this weird error:

run() called, but dependencies remain, so not running libcsound.js:1

I need to investigate further, I’ll have a look tomorrow and if I don’t come up with anything I’ll ask on the mailing list.
Ed

On 16 Nov 2014, at 19:59, Michael Gogins <michael.gogins@gmail.com> wrote:

Are you building in the develop branch? The CMake files there look, at a hasty glance, OK for this. I removed the dependency on PTHREAD_LIBRARY for libcsnd6 on WIndows, and I don't see it for other platforms either, maybe you did not clean up everything first; you can always remove your entire source tree and clone it again.

Regards,
Mike


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

On Sun, Nov 16, 2014 at 12:51 PM, Edward Costello <EDWARD.COSTELLO@nuim.ie> wrote:
Tried compiling there with the latest and I get this:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PTHREAD_LIBRARY
    linked by target "libcsnd6" in directory /Volumes/Data/Dropbox/Programming/csound/interfaces

Any ideas?

> On 13 Nov 2014, at 11:59, Edward Costello <EDWARD.COSTELLO@nuim.ie> wrote:
>
> Hey,
>
> Yeah no problem I’ll look into it on the weekend, and let you know what I find out. That error is unfamiliar, but on first impressions it looks like the function that it’s trying to call has been optimised out by the emscripten compiler.
>
>> On 13 Nov 2014, at 01:56, Steven Yi <stevenyi@gmail.com> wrote:
>>
>> Hi All,
>>
>> I just spent a couple hours looking into getting Csound to build with Emscripten again.  I just completed changes and pushed to GIT.  I ended up using #ifndef __EMSCRIPTEN__ around any code that used pthreads.  I had to do a few other things as well.  As it is, I'm now able to compile Csound with Emscripten.  However, the example page is not working.  I get an exception in the console:
>>
>> TypeError: argTypes.every is not a function
>>
>> and then libcsound fails to load.
>>
>> Ed: Could you take a look into this?  I'm not sure if you've run into this before or not.  Perhaps it's something new having to do with using emsdk 1.25.0.
>>
>> Otherwise, I tested compiling the desktop build here on OSX and that worked alright.  If you are doing a build and have any issues after the changes I committed, please report them here.
>>
>> Thanks,
>> steven
>


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2014-11-18 19:15
FromEdward Costello
SubjectRe: [Cs-dev] Update for Emscripten
AttachmentsCsoundObj.js  None  None  
Find the CsoundObj.js attached, had a look at the source and csp_orc_sa_instr_add_tree is not implemented as asm.js it’s just left as a stub for some reason.