[Cs-dev] How to build for PNaCl?
Date | 2015-07-31 02:00 |
From | Michael Gogins |
Subject | [Cs-dev] How to build for PNaCl? |
Attachments | None None |
The Git repository contains a "nacl" directory. After installing the nacl SDK on Ubuntu I was easily able to build a Csound static library for nacl, but I couldn't see any way of building or packaging the actual Csound application for Chrome. Is there a separate project somewhere, or what? Regards, |
Date | 2015-07-31 10:29 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] How to build for PNaCl? |
In ./nacl/csound just run make and the pnacl module will be built (placed in ./nacl/csound/pnacl/Release). HTH ======================== Dr 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 31 Jul 2015, at 02:00, Michael Gogins |
Date | 2015-07-31 12:48 |
From | Michael Gogins |
Subject | Re: [Cs-dev] How to build for PNaCl? |
Attachments | None None |
Thanks. There was a missing include that I will fix and some assumptions about Inc and lib dirs that I will spell out. Best, On Jul 31, 2015 5:31 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
In ./nacl/csound just run make and the pnacl module will be built (placed in ./nacl/csound/pnacl/Release). |
Date | 2015-08-04 21:05 |
From | Michael Gogins |
Subject | Re: [Cs-dev] How to build for PNaCl? |
I get a missing libsndfile error. I have libsndfile installed on my computer, and I can build regular Csound on this (Ubuntu) computer) just fine. Do I need a PNaCl build of libsndfile? If not, how do I tell "make" how to find libsndfile? Thanks, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Jul 31, 2015 at 7:48 AM, Michael Gogins |
Date | 2015-08-05 00:00 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] How to build for PNaCl? |
You need a pnacl build of libsndfile. I put up a source package with pnacl makefile for you here: https://www.dropbox.com/s/jhpty4n415wd08z/libsndfile-nacl-1.0.25.zip?dl=0 ======================== Dr 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 4 Aug 2015, at 21:05, Michael Gogins |
Date | 2015-08-05 02:27 |
From | Michael Gogins |
Subject | Re: [Cs-dev] How to build for PNaCl? |
Thanks! But why is this not in the Csound repository, or at least the makefile and instructions for any patches etc.? Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Aug 4, 2015 at 7:00 PM, Victor Lazzarini |
Date | 2015-08-05 09:13 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] How to build for PNaCl? |
Never occurred to me. ======================== Dr 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 5 Aug 2015, at 02:27, Michael Gogins |
Date | 2015-08-05 15:50 |
From | Michael Gogins |
Subject | Re: [Cs-dev] How to build for PNaCl? |
Is there a license issue with libsndfile? The LGPLv2 license on the face of it requires only dynamic linking, but PNaCl binaries are statically linked to all their libraries. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Aug 5, 2015 at 4:13 AM, Victor Lazzarini |
Date | 2015-08-05 16:23 |
From | Felipe Sateler |
Subject | Re: [Cs-dev] How to build for PNaCl? |
I don't think LGPL requires dynamic linking. If statically linked it requires giving either access to either source or object files so it can be relinked with a different version. IANAL and all the usual disclaimers though. On 5 August 2015 at 11:50, Michael Gogins |
Date | 2015-08-05 16:32 |
From | Michael Gogins |
Subject | Re: [Cs-dev] How to build for PNaCl? |
OK, I think I understand that. The dynamic linking would be for closed licenses, static linking should be OK with open source. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Aug 5, 2015 at 11:23 AM, Felipe Sateler |
Date | 2015-08-05 16:43 |
From | Michael Gogins |
Subject | Re: [Cs-dev] How to build for PNaCl? |
Just to clarify this, I believe that it is OK to statically link the PNaCl build of libsndfile which is LGPLv2.1 (as is Csound) with csound.pexe as long as csound.pexe is also LGPLv2.1 (which it is). This requires us, however, to make our (slightly) modified libsndfile sources publicly available. Therefore I will include them, or at least the means to patch the libsndfile sources, in the Csound git repository under LGPLv2.1 This library is not changing very fast these days. This will have the benefit of making the PNaCl build of Csound much easier to build. Let me know if you have any objections or comments. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Aug 5, 2015 at 11:32 AM, Michael Gogins |
Date | 2015-08-05 16:59 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] How to build for PNaCl? |
If that is the case with PNaCl, then it should be the same with Android Csound, which uses our own build of libsndfile. ======================== Dr 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 5 Aug 2015, at 16:43, Michael Gogins |
Date | 2015-08-05 17:35 |
From | Michael Gogins |
Subject | Re: [Cs-dev] How to build for PNaCl? |
Attachments | None None |
But do we patch libsndfile sources for Android? Regards, On Aug 5, 2015 11:59 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
If that is the case with PNaCl, then it should be the same with Android Csound, which uses our own build of libsndfile. |
Date | 2015-08-05 19:38 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] How to build for PNaCl? |
Attachments | None None |
We do the same as in PNaCl: add a makefile. There are actual source patches in neither of them. In fact you will probably see an android makefile in the package I posted. I probably used the same files. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2015-08-05 20:00 |
From | Michael Gogins |
Subject | Re: [Cs-dev] How to build for PNaCl? |
Attachments | None None |
I did a diff and our sources have been altered slightly. Regards, On Aug 5, 2015 2:39 PM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2015-08-05 20:35 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] How to build for PNaCl? |
I don’t remember touching it. Where? ======================== Dr 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 5 Aug 2015, at 20:00, Michael Gogins |
Date | 2015-08-05 20:38 |
From | Michael Gogins |
Subject | Re: [Cs-dev] How to build for PNaCl? |
Attachments | None None |
I will send you the patch later. Regards, On Aug 5, 2015 3:35 PM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
I don’t remember touching it. Where? |
Date | 2015-08-05 23:08 |
From | Steven Yi |
Subject | Re: [Cs-dev] How to build for PNaCl? |
Attachments | None None |
I don't particularly care to have another project's sources in our source tree. Seems like we could use a .gitmodule to pull the source dependency in. On Wed, Aug 5, 2015, 2:39 PM Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2015-08-05 23:17 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] How to build for PNaCl? |
yes, I think it is better not to place libsndfile in the Csound sources ======================== Dr 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 5 Aug 2015, at 23:08, Steven Yi |
Date | 2015-08-06 00:54 |
From | Michael Gogins |
Subject | Re: [Cs-dev] How to build for PNaCl? |
What is a gitmodule? Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Aug 5, 2015 at 6:08 PM, Steven Yi |
Date | 2015-08-06 05:40 |
From | Steven Yi |
Subject | Re: [Cs-dev] How to build for PNaCl? |
Attachments | None None |
http://git-scm.com/docs/git-submodule On Wed, Aug 5, 2015, 6:55 PM Michael Gogins <michael.gogins@gmail.com> wrote: What is a gitmodule? |
Date | 2015-08-06 12:38 |
From | Michael Gogins |
Subject | Re: [Cs-dev] How to build for PNaCl? |
Attachments | None None |
That's very useful. Best, On Aug 6, 2015 12:41 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
|