Csound Csound-dev Csound-tekno Search About

[Cs-dev] Emscripten build

Date2014-09-28 15:08
FromEdward Costello
Subject[Cs-dev] Emscripten build
Hi,

Trying to build emscripten using the build.sh script. I fails in the configure stage with:

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

Emscripten doesn’t use p-threads but it used to configure correctly, anyone know what the problem might be?
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net

Date2014-09-28 15:28
FromSteven Yi
SubjectRe: [Cs-dev] Emscripten build
Looks like interfaces/CMakeLists.txt declares a link dependency on PTHREAD:

      set(libcsnd6_LIBS ${LIBSNDFILE_LIBRARY} ${PTHREAD_LIBRARY})

and looks like I did that change:

tree 44787958ca8a2b6bbefbe6b55d49ce693ab412ee
parent 213759690ee81cac30518985cbc1b7375e53a5a9
author Steven Yi  Sun Jun 22 12:43:12 2014 -0700
committer Steven Yi  Sun Jun 22 12:43:12 2014 -0700

fixes for compiling libcsnd6 with pthread (added include, library for linking)

Since we just need to build libcsound64, try adding
-DBUILD_CXX_INTERFACE=0 to the build.sh.

On Sun, Sep 28, 2014 at 7:08 AM, Edward Costello
 wrote:
> Hi,
>
> Trying to build emscripten using the build.sh script. I fails in the configure stage with:
>
> 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
>
> Emscripten doesn’t use p-threads but it used to configure correctly, anyone know what the problem might be?
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists

Date2014-09-28 16:05
FromEdward Costello
SubjectRe: [Cs-dev] Emscripten build
AttachmentsNone  None  
Ok so it configured fine with that option, but now when I make it I get this error:
/Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1298:9: error: implicit declaration of function
      'pthread_join' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        pthread_join(csound->file_io_thread, NULL);
        ^
/Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1351:7: error: implicit declaration of function
      'pthread_create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      pthread_create(&csound->file_io_thread,NULL, file_iothread, (void *) csound);


On 28 Sep 2014, at 16:28, Steven Yi <stevenyi@gmail.com> wrote:

-DBUILD_CXX_INTERFACE=0 to the build.sh.


Date2014-09-28 16:34
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Emscripten build
AttachmentsNone  

Date2014-10-04 16:24
FromEdward Costello
SubjectRe: [Cs-dev] Emscripten build
Can anyone point me in the direction of how I can fix this? I am looking to add MIDI functionality to the Emscripten build.

> On 28 Sep 2014, at 17:34, jpff@cs.bath.ac.uk wrote:
> 
> Used in
> void close_all_files(CSOUND *csound)
> 
> ....
>     if (csound->file_io_start) {
>         pthread_join(csound->file_io_thread, NULL);
> .....
> 
> Quoting Edward Costello :
> 
>> Ok so it configured fine with that option, but now when I make it I  
>> get this error:
>> /Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1298:9:  
>> error: implicit declaration of function
>>      'pthread_join' is invalid in C99  
>> [-Werror,-Wimplicit-function-declaration]
>>        pthread_join(csound->file_io_thread, NULL);
>>        ^
>> /Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1351:7:  
>> error: implicit declaration of function
>>      'pthread_create' is invalid in C99  
>> [-Werror,-Wimplicit-function-declaration]
>>      pthread_create(&csound->file_io_thread,NULL, file_iothread,  
>> (void *) csound);
>> 
>> 
>>> On 28 Sep 2014, at 16:28, Steven Yi  wrote:
>>> 
>>> -DBUILD_CXX_INTERFACE=0 to the build.sh.
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-10-04 17:33
FromVictor Lazzarini
SubjectRe: [Cs-dev] Emscripten build
Why don’t you just #ifdef it out? That code is for —realtime mode, which you can also disable in Emscripten
by #ifdefing it out (in argdecode.c), since it needs pthreads.

========================
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 Oct 2014, at 16:24, Edward Costello  wrote:

> Can anyone point me in the direction of how I can fix this? I am looking to add MIDI functionality to the Emscripten build.
> 
>> On 28 Sep 2014, at 17:34, jpff@cs.bath.ac.uk wrote:
>> 
>> Used in
>> void close_all_files(CSOUND *csound)
>> 
>> ....
>>    if (csound->file_io_start) {
>>        pthread_join(csound->file_io_thread, NULL);
>> .....
>> 
>> Quoting Edward Costello :
>> 
>>> Ok so it configured fine with that option, but now when I make it I  
>>> get this error:
>>> /Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1298:9:  
>>> error: implicit declaration of function
>>>     'pthread_join' is invalid in C99  
>>> [-Werror,-Wimplicit-function-declaration]
>>>       pthread_join(csound->file_io_thread, NULL);
>>>       ^
>>> /Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1351:7:  
>>> error: implicit declaration of function
>>>     'pthread_create' is invalid in C99  
>>> [-Werror,-Wimplicit-function-declaration]
>>>     pthread_create(&csound->file_io_thread,NULL, file_iothread,  
>>> (void *) csound);
>>> 
>>> 
>>>> On 28 Sep 2014, at 16:28, Steven Yi  wrote:
>>>> 
>>>> -DBUILD_CXX_INTERFACE=0 to the build.sh.
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-10-06 19:58
FromEdward Costello
SubjectRe: [Cs-dev] Emscripten build
Ok I ifdef’d a few things out and nearly have 100% of the files compiling, the error I have now is:

/Volumes/Data/Dropbox/Programming/csound/Engine/cs_par_base.c:43:11: error: expected expression
      if (UNLIKELY(pthread_equal(*(pthread_t *)threadId,
          ^
/Volumes/Data/Dropbox/Programming/csound/./include/sysdep.h:315:46: note: expanded from macro 'UNLIKELY'
#  define UNLIKELY(x)   __builtin_expect(!!(x),0)


> On 4 Oct 2014, at 18:33, Victor Lazzarini  wrote:
> 
> Why don’t you just #ifdef it out? That code is for —realtime mode, which you can also disable in Emscripten
> by #ifdefing it out (in argdecode.c), since it needs pthreads.
> 
> ========================
> 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 Oct 2014, at 16:24, Edward Costello  wrote:
> 
>> Can anyone point me in the direction of how I can fix this? I am looking to add MIDI functionality to the Emscripten build.
>> 
>>> On 28 Sep 2014, at 17:34, jpff@cs.bath.ac.uk wrote:
>>> 
>>> Used in
>>> void close_all_files(CSOUND *csound)
>>> 
>>> ....
>>>   if (csound->file_io_start) {
>>>       pthread_join(csound->file_io_thread, NULL);
>>> .....
>>> 
>>> Quoting Edward Costello :
>>> 
>>>> Ok so it configured fine with that option, but now when I make it I  
>>>> get this error:
>>>> /Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1298:9:  
>>>> error: implicit declaration of function
>>>>    'pthread_join' is invalid in C99  
>>>> [-Werror,-Wimplicit-function-declaration]
>>>>      pthread_join(csound->file_io_thread, NULL);
>>>>      ^
>>>> /Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1351:7:  
>>>> error: implicit declaration of function
>>>>    'pthread_create' is invalid in C99  
>>>> [-Werror,-Wimplicit-function-declaration]
>>>>    pthread_create(&csound->file_io_thread,NULL, file_iothread,  
>>>> (void *) csound);
>>>> 
>>>> 
>>>>> On 28 Sep 2014, at 16:28, Steven Yi  wrote:
>>>>> 
>>>>> -DBUILD_CXX_INTERFACE=0 to the build.sh.
>>> 
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-10-06 20:07
FromVictor Lazzarini
SubjectRe: [Cs-dev] Emscripten build
I think the problem is pthread_equal(), disable the PARCS code since you don’t have pthreads.
========================
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 6 Oct 2014, at 19:58, Edward Costello  wrote:

> Ok I ifdef’d a few things out and nearly have 100% of the files compiling, the error I have now is:
> 
> /Volumes/Data/Dropbox/Programming/csound/Engine/cs_par_base.c:43:11: error: expected expression
>      if (UNLIKELY(pthread_equal(*(pthread_t *)threadId,
>          ^
> /Volumes/Data/Dropbox/Programming/csound/./include/sysdep.h:315:46: note: expanded from macro 'UNLIKELY'
> #  define UNLIKELY(x)   __builtin_expect(!!(x),0)
> 
> 
>> On 4 Oct 2014, at 18:33, Victor Lazzarini  wrote:
>> 
>> Why don’t you just #ifdef it out? That code is for —realtime mode, which you can also disable in Emscripten
>> by #ifdefing it out (in argdecode.c), since it needs pthreads.
>> 
>> ========================
>> 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 Oct 2014, at 16:24, Edward Costello  wrote:
>> 
>>> Can anyone point me in the direction of how I can fix this? I am looking to add MIDI functionality to the Emscripten build.
>>> 
>>>> On 28 Sep 2014, at 17:34, jpff@cs.bath.ac.uk wrote:
>>>> 
>>>> Used in
>>>> void close_all_files(CSOUND *csound)
>>>> 
>>>> ....
>>>>  if (csound->file_io_start) {
>>>>      pthread_join(csound->file_io_thread, NULL);
>>>> .....
>>>> 
>>>> Quoting Edward Costello :
>>>> 
>>>>> Ok so it configured fine with that option, but now when I make it I  
>>>>> get this error:
>>>>> /Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1298:9:  
>>>>> error: implicit declaration of function
>>>>>   'pthread_join' is invalid in C99  
>>>>> [-Werror,-Wimplicit-function-declaration]
>>>>>     pthread_join(csound->file_io_thread, NULL);
>>>>>     ^
>>>>> /Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1351:7:  
>>>>> error: implicit declaration of function
>>>>>   'pthread_create' is invalid in C99  
>>>>> [-Werror,-Wimplicit-function-declaration]
>>>>>   pthread_create(&csound->file_io_thread,NULL, file_iothread,  
>>>>> (void *) csound);
>>>>> 
>>>>> 
>>>>>> On 28 Sep 2014, at 16:28, Steven Yi  wrote:
>>>>>> 
>>>>>> -DBUILD_CXX_INTERFACE=0 to the build.sh.
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>>>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>>>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>>>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ------------------------------------------------------------------------------
> Slashdot TV.  Videos for Nerds.  Stuff that Matters.
> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-10-06 20:11
Fromjpff
SubjectRe: [Cs-dev] Emscripten build
AttachmentsNone  None  
#define LIKELY and NOTLIKELY as

#define LIKELY(x) (x)
#define UNLIKELY(x) (x)


On Mon, 6 Oct 2014, Edward Costello wrote:

> Ok I ifdef’d a few things out and nearly have 100% of the files compiling, the error I have now is:
>
> /Volumes/Data/Dropbox/Programming/csound/Engine/cs_par_base.c:43:11: error: expected expression
>      if (UNLIKELY(pthread_equal(*(pthread_t *)threadId,
>          ^
> /Volumes/Data/Dropbox/Programming/csound/./include/sysdep.h:315:46: note: expanded from macro 'UNLIKELY'
> #  define UNLIKELY(x)   __builtin_expect(!!(x),0)
>
>
>> On 4 Oct 2014, at 18:33, Victor Lazzarini  wrote:
>>
>> Why don’t you just #ifdef it out? That code is for —realtime mode, which you can also disable in Emscripten
>> by #ifdefing it out (in argdecode.c), since it needs pthreads.
>>
>> ========================
>> 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 Oct 2014, at 16:24, Edward Costello  wrote:
>>
>>> Can anyone point me in the direction of how I can fix this? I am looking to add MIDI functionality to the Emscripten build.
>>>
>>>> On 28 Sep 2014, at 17:34, jpff@cs.bath.ac.uk wrote:
>>>>
>>>> Used in
>>>> void close_all_files(CSOUND *csound)
>>>>
>>>> ....
>>>>   if (csound->file_io_start) {
>>>>       pthread_join(csound->file_io_thread, NULL);
>>>> .....
>>>>
>>>> Quoting Edward Costello :
>>>>
>>>>> Ok so it configured fine with that option, but now when I make it I
>>>>> get this error:
>>>>> /Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1298:9:
>>>>> error: implicit declaration of function
>>>>>    'pthread_join' is invalid in C99
>>>>> [-Werror,-Wimplicit-function-declaration]
>>>>>      pthread_join(csound->file_io_thread, NULL);
>>>>>      ^
>>>>> /Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1351:7:
>>>>> error: implicit declaration of function
>>>>>    'pthread_create' is invalid in C99
>>>>> [-Werror,-Wimplicit-function-declaration]
>>>>>    pthread_create(&csound->file_io_thread,NULL, file_iothread,
>>>>> (void *) csound);
>>>>>
>>>>>
>>>>>> On 28 Sep 2014, at 16:28, Steven Yi  wrote:
>>>>>>
>>>>>> -DBUILD_CXX_INTERFACE=0 to the build.sh.
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>>>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>>>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>>>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.  Videos for Nerds.  Stuff that Matters.
> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>--279718404-1328554255-1412622696=:21011--


Date2014-10-06 21:52
FromEdward Costello
SubjectRe: [Cs-dev] Emscripten build
I’ve gotten it to build now without errors but it is complaining that csoundLockMutex and csoundUnlockMutex are not implemented. How do I disable the PARCS code? I don’t know what that stands for.

> On 6 Oct 2014, at 21:11, jpff  wrote:
> 
> #define LIKELY and NOTLIKELY as
> 
> #define LIKELY(x) (x)
> #define UNLIKELY(x) (x)
> 
> 
> On Mon, 6 Oct 2014, Edward Costello wrote:
> 
>> Ok I ifdef’d a few things out and nearly have 100% of the files compiling, the error I have now is:
>> 
>> /Volumes/Data/Dropbox/Programming/csound/Engine/cs_par_base.c:43:11: error: expected expression
>>     if (UNLIKELY(pthread_equal(*(pthread_t *)threadId,
>>         ^
>> /Volumes/Data/Dropbox/Programming/csound/./include/sysdep.h:315:46: note: expanded from macro 'UNLIKELY'
>> #  define UNLIKELY(x)   __builtin_expect(!!(x),0)
>> 
>> 
>>> On 4 Oct 2014, at 18:33, Victor Lazzarini  wrote:
>>> 
>>> Why don’t you just #ifdef it out? That code is for —realtime mode, which you can also disable in Emscripten
>>> by #ifdefing it out (in argdecode.c), since it needs pthreads.
>>> 
>>> ========================
>>> 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 Oct 2014, at 16:24, Edward Costello  wrote:
>>> 
>>>> Can anyone point me in the direction of how I can fix this? I am looking to add MIDI functionality to the Emscripten build.
>>>> 
>>>>> On 28 Sep 2014, at 17:34, jpff@cs.bath.ac.uk wrote:
>>>>> 
>>>>> Used in
>>>>> void close_all_files(CSOUND *csound)
>>>>> 
>>>>> ....
>>>>>  if (csound->file_io_start) {
>>>>>      pthread_join(csound->file_io_thread, NULL);
>>>>> .....
>>>>> 
>>>>> Quoting Edward Costello :
>>>>> 
>>>>>> Ok so it configured fine with that option, but now when I make it I
>>>>>> get this error:
>>>>>> /Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1298:9:
>>>>>> error: implicit declaration of function
>>>>>>   'pthread_join' is invalid in C99
>>>>>> [-Werror,-Wimplicit-function-declaration]
>>>>>>     pthread_join(csound->file_io_thread, NULL);
>>>>>>     ^
>>>>>> /Volumes/Data/Dropbox/Programming/csound/Engine/envvar.c:1351:7:
>>>>>> error: implicit declaration of function
>>>>>>   'pthread_create' is invalid in C99
>>>>>> [-Werror,-Wimplicit-function-declaration]
>>>>>>   pthread_create(&csound->file_io_thread,NULL, file_iothread,
>>>>>> (void *) csound);
>>>>>> 
>>>>>> 
>>>>>>> On 28 Sep 2014, at 16:28, Steven Yi  wrote:
>>>>>>> 
>>>>>>> -DBUILD_CXX_INTERFACE=0 to the build.sh.
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>>>>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>>>>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>>>>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>>>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>>>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>>>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> Slashdot TV.  Videos for Nerds.  Stuff that Matters.
>> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> --279718404-1328554255-1412622696=:21011--
> 
> ------------------------------------------------------------------------------
> Slashdot TV.  Videos for Nerds.  Stuff that Matters.
> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net