Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Problem building Csound with Faust opcodes

Date2017-10-31 09:24
FromFrancois PINOT
Subject[Csnd-dev] Problem building Csound with Faust opcodes
Hello Victor,

I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:

[ 53%] Built target csound64
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
   controls  *ctls = new controls();
                                  ^
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
 class controls : public UI {
       ^
In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
/usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
         virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
                      ^
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
   controls  *ctls = new controls();

I solved the problem by adding the following line to faustgen.cpp (89):
virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};

François

Date2017-10-31 09:44
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
Thanks. The API probably has changed again.
========================
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 31 Oct 2017, at 09:24, Francois PINOT  wrote:
> 
> Hello Victor,
> 
> I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:
> 
> [ 53%] Built target csound64
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
>    controls  *ctls = new controls();
>                                   ^
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
>  class controls : public UI {
>        ^
> In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
> /usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
>          virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
>                       ^
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
>    controls  *ctls = new controls();
> 
> I solved the problem by adding the following line to faustgen.cpp (89):
> virtual void addSoundfile(const char* label, Soundfi

Date2017-11-14 10:52
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
Hi François,

I updated my faust2 build from GIT and it did not have the Soundfile interface you are mentioning here,
so I could not build the file. I am not sure what is going on. For the moment, I’ve added a forward
declaration for struct Soundfile in order to compile. Do you know anything about this mismatch
of interfaces?

thanks
========================
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 31 Oct 2017, at 09:24, Francois PINOT  wrote:
> 
> Hello Victor,
> 
> I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:
> 
> [ 53%] Built target csound64
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
>    controls  *ctls = new controls();
>                                   ^
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
>  class controls : public UI {
>        ^
> In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
> /usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
>          virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
>                       ^
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
>    controls  *ctls = new controls();
> 
> I solved the problem by adding the following line to faustgen.cpp (89):
> virtual void addSoundfile(const cha

Date2017-11-14 12:03
FromFrancois PINOT
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
Hello Victor,

the problem was the addSoundfile virtual method in the UI class definition (https://github.com/grame-cncm/faust/blob/faust2/architecture/faust/gui/UI.h). I had to add an empty addSoundfile method in faustgen.cpp (line (89) in order to build the csound faust opodes. I had no problem building faust.

François

2017-11-14 11:52 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Hi François,

I updated my faust2 build from GIT and it did not have the Soundfile interface you are mentioning here,
so I could not build the file. I am not sure what is going on. For the moment, I’ve added a forward
declaration for struct Soundfile in order to compile. Do you know anything about this mismatch
of interfaces?

thanks
========================
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 31 Oct 2017, at 09:24, Francois PINOT <fggpinot@gmail.com> wrote:
>
> Hello Victor,
>
> I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:
>
> [ 53%] Built target csound64
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
>    controls  *ctls = new controls();
>                                   ^
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
>  class controls : public UI {
>        ^
> In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
> /usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
>          virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
>                       ^
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
>    controls  *ctls = new controls();
>
> I solved the problem by adding the following line to faustgen.cpp (89):
> virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
>
> François



Date2017-11-14 13:38
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
I understand this, but then if I build the opcodes with that, I get

/Users/victor/src/csound6/Opcodes/faustgen.cpp:93:48: error: unknown type name 'Soundfile'
  virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
                                               ^
1 error generated.

I pulled faust this morning and the UI.h file I have is different from this one.

========================
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 Nov 2017, at 12:03, Francois PINOT  wrote:
> 
> Hello Victor,
> 
> the problem was the addSoundfile virtual method in the UI class definition (https://github.com/grame-cncm/faust/blob/faust2/architecture/faust/gui/UI.h). I had to add an empty addSoundfile method in faustgen.cpp (line (89) in order to build the csound faust opodes. I had no problem building faust.
> 
> François
> 
> 2017-11-14 11:52 GMT+01:00 Victor Lazzarini :
> Hi François,
> 
> I updated my faust2 build from GIT and it did not have the Soundfile interface you are mentioning here,
> so I could not build the file. I am not sure what is going on. For the moment, I’ve added a forward
> declaration for struct Soundfile in order to compile. Do you know anything about this mismatch
> of interfaces?
> 
> thanks
> ========================
> 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 31 Oct 2017, at 09:24, Francois PINOT  wrote:
> >
> > Hello Victor,
> >
> > I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:
> >
> > [ 53%] Built target csound64
> > /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
> > /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
> >    controls  *ctls = new controls();
> >                                   ^
> > /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
> >  class controls : public UI {
> >        ^
> > In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
> > /usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
> >          virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
> >                       ^
> > /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
> > /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
> >    controls  *ctls = new controls();
> >
> > I solved the problem by adding the following line to faustgen.cpp (89):
> > virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
> >

Date2017-11-14 14:28
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
Actually, I noticed the change in git address, so I got the new code now. However, this appears to have changed significantly and it will not compile
the faust opcodes now. 
========================
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 Nov 2017, at 13:38, Victor Lazzarini  wrote:
> 
> I understand this, but then if I build the opcodes with that, I get
> 
> /Users/victor/src/csound6/Opcodes/faustgen.cpp:93:48: error: unknown type name 'Soundfile'
>  virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
>                                               ^
> 1 error generated.
> 
> I pulled faust this morning and the UI.h file I have is different from this one.
> 
> ========================
> 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 Nov 2017, at 12:03, Francois PINOT  wrote:
>> 
>> Hello Victor,
>> 
>> the problem was the addSoundfile virtual method in the UI class definition (https://github.com/grame-cncm/faust/blob/faust2/architecture/faust/gui/UI.h). I had to add an empty addSoundfile method in faustgen.cpp (line (89) in order to build the csound faust opodes. I had no problem building faust.
>> 
>> François
>> 
>> 2017-11-14 11:52 GMT+01:00 Victor Lazzarini :
>> Hi François,
>> 
>> I updated my faust2 build from GIT and it did not have the Soundfile interface you are mentioning here,
>> so I could not build the file. I am not sure what is going on. For the moment, I’ve added a forward
>> declaration for struct Soundfile in order to compile. Do you know anything about this mismatch
>> of interfaces?
>> 
>> thanks
>> ========================
>> 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 31 Oct 2017, at 09:24, Francois PINOT  wrote:
>>> 
>>> Hello Victor,
>>> 
>>> I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:
>>> 
>>> [ 53%] Built target csound64
>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
>>>   controls  *ctls = new controls();
>>>                                  ^
>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
>>> class controls : public UI {
>>>       ^
>>> In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
>>> /usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
>>>         virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
>>>                      ^
>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
>>>   controls  *ctls = new controls();
>>> 
>>> I solved the problem by adding the following line to faustgen.cpp (89):
>>> virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
>>> 
>>

Date2017-11-14 14:48
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
Ok, I was in the wrong branch. The interface changed again, the function signature is now:

virtual void addSoundfile(const char* label, const char* filename, Soundfile** sf_zone) {};

it is compiling OK. You might want to update your faust build.
========================
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 Nov 2017, at 14:28, Victor Lazzarini  wrote:
> 
> Actually, I noticed the change in git address, so I got the new code now. However, this appears to have changed significantly and it will not compile
> the faust opcodes now. 
> ========================
> 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 Nov 2017, at 13:38, Victor Lazzarini  wrote:
>> 
>> I understand this, but then if I build the opcodes with that, I get
>> 
>> /Users/victor/src/csound6/Opcodes/faustgen.cpp:93:48: error: unknown type name 'Soundfile'
>> virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
>>                                              ^
>> 1 error generated.
>> 
>> I pulled faust this morning and the UI.h file I have is different from this one.
>> 
>> ========================
>> 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 Nov 2017, at 12:03, Francois PINOT  wrote:
>>> 
>>> Hello Victor,
>>> 
>>> the problem was the addSoundfile virtual method in the UI class definition (https://github.com/grame-cncm/faust/blob/faust2/architecture/faust/gui/UI.h). I had to add an empty addSoundfile method in faustgen.cpp (line (89) in order to build the csound faust opodes. I had no problem building faust.
>>> 
>>> François
>>> 
>>> 2017-11-14 11:52 GMT+01:00 Victor Lazzarini :
>>> Hi François,
>>> 
>>> I updated my faust2 build from GIT and it did not have the Soundfile interface you are mentioning here,
>>> so I could not build the file. I am not sure what is going on. For the moment, I’ve added a forward
>>> declaration for struct Soundfile in order to compile. Do you know anything about this mismatch
>>> of interfaces?
>>> 
>>> thanks
>>> ========================
>>> 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 31 Oct 2017, at 09:24, Francois PINOT  wrote:
>>>> 
>>>> Hello Victor,
>>>> 
>>>> I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:
>>>> 
>>>> [ 53%] Built target csound64
>>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
>>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
>>>>  controls  *ctls = new controls();
>>>>                                 ^
>>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
>>>> class controls : public UI {
>>>>      ^
>>>> In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
>>>> /usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
>>>>        virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
>>>>                     ^
>>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
>>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
>>>>  controls  *ctls = new controls();
>>>> 
>>>> I solved the problem by adding the following line to faustgen.cpp (89):
>>>> virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
>>>> 
>>>> François

Date2017-11-14 15:01
FromFrancois PINOT
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
I just rebuilt the whole thing on my system (ubuntu 16.10) and it works. Here is what I've done:

1) Download a zip file of faust2 from https://github.com/grame-cncm/faust/tree/faust2
2) Unzip and build faust (make & sudo make install)
3) Pull csound sources from github
3) Build csound

My cmake command for csound is;
cmake -DLLVM_DIR=/usr/share/llvm-4.0/cmake -DCMAKE_MODULE_LINKER_FLAGS="-L /usr/lib/llvm-4.0/lib" -DBUILD_FAUST_OPCODES=1 -DFAUST_LIBRARY=/usr/local/lib/libfaust.a -DLUAJIT_LIBRARY="/usr/lib/x86_64-linux-gnu/libluajit-5.1.so" -DLUA_H_PATH="/usr/include/luajit-2.0" -DBUILD_CSOUND_AC=0 -DBUILD_CSOUND_AC_PYTHON_INTERFACE=0 -DBUILD_CSOUND_AC_LUA_INTERFACE=0 ../../github/csound/csound

This was done 10 mn ago

François

2017-11-14 15:28 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Actually, I noticed the change in git address, so I got the new code now. However, this appears to have changed significantly and it will not compile
the faust opcodes now.
========================
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 Nov 2017, at 13:38, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:
>
> I understand this, but then if I build the opcodes with that, I get
>
> /Users/victor/src/csound6/Opcodes/faustgen.cpp:93:48: error: unknown type name 'Soundfile'
>  virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
>                                               ^
> 1 error generated.
>
> I pulled faust this morning and the UI.h file I have is different from this one.
>
> ========================
> 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 Nov 2017, at 12:03, Francois PINOT <fggpinot@gmail.com> wrote:
>>
>> Hello Victor,
>>
>> the problem was the addSoundfile virtual method in the UI class definition (https://github.com/grame-cncm/faust/blob/faust2/architecture/faust/gui/UI.h). I had to add an empty addSoundfile method in faustgen.cpp (line (89) in order to build the csound faust opodes. I had no problem building faust.
>>
>> François
>>
>> 2017-11-14 11:52 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
>> Hi François,
>>
>> I updated my faust2 build from GIT and it did not have the Soundfile interface you are mentioning here,
>> so I could not build the file. I am not sure what is going on. For the moment, I’ve added a forward
>> declaration for struct Soundfile in order to compile. Do you know anything about this mismatch
>> of interfaces?
>>
>> thanks
>> ========================
>> 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 31 Oct 2017, at 09:24, Francois PINOT <fggpinot@gmail.com> wrote:
>>>
>>> Hello Victor,
>>>
>>> I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:
>>>
>>> [ 53%] Built target csound64
>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
>>>   controls  *ctls = new controls();
>>>                                  ^
>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
>>> class controls : public UI {
>>>       ^
>>> In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
>>> /usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
>>>         virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
>>>                      ^
>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
>>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
>>>   controls  *ctls = new controls();
>>>
>>> I solved the problem by adding the following line to faustgen.cpp (89):
>>> virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
>>>
>>> François
>>
>>
>



Date2017-11-14 15:03
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
thanks, I was in the master git branch rather than faust2.
========================
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 Nov 2017, at 15:01, Francois PINOT  wrote:
> 
> I just rebuilt the whole thing on my system (ubuntu 16.10) and it works. Here is what I've done:
> 
> 1) Download a zip file of faust2 from https://github.com/grame-cncm/faust/tree/faust2
> 2) Unzip and build faust (make & sudo make install)
> 3) Pull csound sources from github
> 3) Build csound
> 
> My cmake command for csound is;
> cmake -DLLVM_DIR=/usr/share/llvm-4.0/cmake -DCMAKE_MODULE_LINKER_FLAGS="-L /usr/lib/llvm-4.0/lib" -DBUILD_FAUST_OPCODES=1 -DFAUST_LIBRARY=/usr/local/lib/libfaust.a -DLUAJIT_LIBRARY="/usr/lib/x86_64-linux-gnu/libluajit-5.1.so" -DLUA_H_PATH="/usr/include/luajit-2.0" -DBUILD_CSOUND_AC=0 -DBUILD_CSOUND_AC_PYTHON_INTERFACE=0 -DBUILD_CSOUND_AC_LUA_INTERFACE=0 ../../github/csound/csound
> 
> This was done 10 mn ago
> 
> François
> 
> 2017-11-14 15:28 GMT+01:00 Victor Lazzarini :
> Actually, I noticed the change in git address, so I got the new code now. However, this appears to have changed significantly and it will not compile
> the faust opcodes now.
> ========================
> 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 Nov 2017, at 13:38, Victor Lazzarini  wrote:
> >
> > I understand this, but then if I build the opcodes with that, I get
> >
> > /Users/victor/src/csound6/Opcodes/faustgen.cpp:93:48: error: unknown type name 'Soundfile'
> >  virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
> >                                               ^
> > 1 error generated.
> >
> > I pulled faust this morning and the UI.h file I have is different from this one.
> >
> > ========================
> > 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 Nov 2017, at 12:03, Francois PINOT  wrote:
> >>
> >> Hello Victor,
> >>
> >> the problem was the addSoundfile virtual method in the UI class definition (https://github.com/grame-cncm/faust/blob/faust2/architecture/faust/gui/UI.h). I had to add an empty addSoundfile method in faustgen.cpp (line (89) in order to build the csound faust opodes. I had no problem building faust.
> >>
> >> François
> >>
> >> 2017-11-14 11:52 GMT+01:00 Victor Lazzarini :
> >> Hi François,
> >>
> >> I updated my faust2 build from GIT and it did not have the Soundfile interface you are mentioning here,
> >> so I could not build the file. I am not sure what is going on. For the moment, I’ve added a forward
> >> declaration for struct Soundfile in order to compile. Do you know anything about this mismatch
> >> of interfaces?
> >>
> >> thanks
> >> ========================
> >> 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 31 Oct 2017, at 09:24, Francois PINOT  wrote:
> >>>
> >>> Hello Victor,
> >>>
> >>> I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:
> >>>
> >>> [ 53%] Built target csound64
> >>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
> >>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
> >>>   controls  *ctls = new controls();
> >>>                                  ^
> >>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
> >>> class controls : public UI {
> >>>       ^
> >>> In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
> >>> /usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
> >>>         virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
> >>>                      ^
> >>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
> >>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
> >>>   controls  *ctls = new controls();
> >>>
> >>> I solved the problem by adding the following line to faustgen.cpp (89):
> >>> virtual void addSoundfile(const char* label, Soundfile** sf_zone)

Date2017-11-15 01:16
FromMichael Gogins
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
I installed LLVM 5 by untarring in usr/local and pulled faust2 and
built it. I had to adjust the CMake parameters as follows to build
Csound develop head with gcc and the Faust opcodes:

cmake ../csound -DSCORE_PARSER:BOOL=Yes
-DABLETON_LINK_HOME:PATH=/home/mkg/link
-DBUILD_ABLETON_LINK_OPCODES:BOOL=Yes -DBUILD_STATIC_LIBRARY:Bool=Yes
-DBUILD_TESTS:BOOL=Yes -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DBUILD_HDF5_OPCODES:BOOL=Yes
-DVSTSDK2X_HOME:PATH=/home/mkg/VST_SDK/VST2_SDK
-DBUILD_CSOUND_VST:BOOL=Yes -DBUILD_VST4CS_OPCODES:BOOL=Yes
-DLLVM_DIR=/usr/local/lib/cmake/llvm -DCMAKE_MODULE_LINKER_FLAGS="-L
/usr/local/lib" -DFAUST_LIBRARY=/usr/local/lib/libfaust.a
-DBUILD_FAUST_OPCODES:BOOL=Yes

Everything built without error. Unfortunately the manual example for
faustgen failed with this error:

mkg@Sun-Yukong:~/csound/cs6make$ ./csound faustgen.csd
0dBFS level = 32768.0
--Csound version 6.10 (double samples) Nov 14 2017
[commit: 98baca09ea4b6ffbc6a8ccc52835861b34681cbd]
libsndfile-1.0.25
WARNING: could not open library
'/home/mkg/csound/cs6make/libfaustcsound.so'
(/home/mkg/csound/cs6make/libfaustcsound.so: undefined symbol:
_ZTIN4llvm11ObjectCacheE)
UnifiedCSD:  faustgen.csd
STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
Loading command-line libraries:
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled

error: syntax error, unexpected T_IDENT, expecting T_OPCODE or
T_FUNCTION or ',' or '['  (token "faustgen") from file faustgen.csd
(1)
 line 8:
>>> idsp,a1 faustgen <<<
Unexpected untyped word a1 when expecting a variable
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra
end of score.    overall amps:      0.0
   overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: 0.034s, CPU: 0.004s
mkg@Sun-Yukong:~/csound/cs6make$

What am I doing wrong?

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


On Tue, Nov 14, 2017 at 10:03 AM, Victor Lazzarini
 wrote:
> thanks, I was in the master git branch rather than faust2.
> ========================
> 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 Nov 2017, at 15:01, Francois PINOT  wrote:
>>
>> I just rebuilt the whole thing on my system (ubuntu 16.10) and it works. Here is what I've done:
>>
>> 1) Download a zip file of faust2 from https://github.com/grame-cncm/faust/tree/faust2
>> 2) Unzip and build faust (make & sudo make install)
>> 3) Pull csound sources from github
>> 3) Build csound
>>
>> My cmake command for csound is;
>> cmake -DLLVM_DIR=/usr/share/llvm-4.0/cmake -DCMAKE_MODULE_LINKER_FLAGS="-L /usr/lib/llvm-4.0/lib" -DBUILD_FAUST_OPCODES=1 -DFAUST_LIBRARY=/usr/local/lib/libfaust.a -DLUAJIT_LIBRARY="/usr/lib/x86_64-linux-gnu/libluajit-5.1.so" -DLUA_H_PATH="/usr/include/luajit-2.0" -DBUILD_CSOUND_AC=0 -DBUILD_CSOUND_AC_PYTHON_INTERFACE=0 -DBUILD_CSOUND_AC_LUA_INTERFACE=0 ../../github/csound/csound
>>
>> This was done 10 mn ago
>>
>> François
>>
>> 2017-11-14 15:28 GMT+01:00 Victor Lazzarini :
>> Actually, I noticed the change in git address, so I got the new code now. However, this appears to have changed significantly and it will not compile
>> the faust opcodes now.
>> ========================
>> 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 Nov 2017, at 13:38, Victor Lazzarini  wrote:
>> >
>> > I understand this, but then if I build the opcodes with that, I get
>> >
>> > /Users/victor/src/csound6/Opcodes/faustgen.cpp:93:48: error: unknown type name 'Soundfile'
>> >  virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
>> >                                               ^
>> > 1 error generated.
>> >
>> > I pulled faust this morning and the UI.h file I have is different from this one.
>> >
>> > ========================
>> > 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 Nov 2017, at 12:03, Francois PINOT  wrote:
>> >>
>> >> Hello Victor,
>> >>
>> >> the problem was the addSoundfile virtual method in the UI class definition (https://github.com/grame-cncm/faust/blob/faust2/architecture/faust/gui/UI.h). I had to add an empty addSoundfile method in faustgen.cpp (line (89) in order to build the csound faust opodes. I had no problem building faust.
>> >>
>> >> François
>> >>
>> >> 2017-11-14 11:52 GMT+01:00 Victor Lazzarini :
>> >> Hi François,
>> >>
>> >> I updated my faust2 build from GIT and it did not have the Soundfile interface you are mentioning here,
>> >> so I could not build the file. I am not sure what is going on. For the moment, I’ve added a forward
>> >> declaration for struct Soundfile in order to compile. Do you know anything about this mismatch
>> >> of interfaces?
>> >>
>> >> thanks
>> >> ========================
>> >> 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 31 Oct 2017, at 09:24, Francois PINOT  wrote:
>> >>>
>> >>> Hello Victor,
>> >>>
>> >>> I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:
>> >>>
>> >>> [ 53%] Built target csound64
>> >>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
>> >>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
>> >>>   controls  *ctls = new controls();
>> >>>                                  ^
>> >>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
>> >>> class controls : public UI {
>> >>>       ^
>> >>> In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
>> >>> /usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
>> >>>         virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
>> >>>                      ^
>> >>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
>> >>> /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
>> >>>   controls  *ctls = new controls();
>> >>>
>> >>> I solved the problem by adding the following line to faustgen.cpp (89):
>> >>> virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
>> >>>
>> >>> François
>> >>
>> >>
>> >
>>
>>

Date2017-11-15 06:21
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
The opcode did not load, maybe a dependency problem?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 15 Nov 2017, at 01:17, Michael Gogins <michael.gogins@GMAIL.COM> wrote:

I installed LLVM 5 by untarring in usr/local and pulled faust2 and
built it. I had to adjust the CMake parameters as follows to build
Csound develop head with gcc and the Faust opcodes:

cmake ../csound -DSCORE_PARSER:BOOL=Yes
-DABLETON_LINK_HOME:PATH=/home/mkg/link
-DBUILD_ABLETON_LINK_OPCODES:BOOL=Yes -DBUILD_STATIC_LIBRARY:Bool=Yes
-DBUILD_TESTS:BOOL=Yes -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DBUILD_HDF5_OPCODES:BOOL=Yes
-DVSTSDK2X_HOME:PATH=/home/mkg/VST_SDK/VST2_SDK
-DBUILD_CSOUND_VST:BOOL=Yes -DBUILD_VST4CS_OPCODES:BOOL=Yes
-DLLVM_DIR=/usr/local/lib/cmake/llvm -DCMAKE_MODULE_LINKER_FLAGS="-L
/usr/local/lib" -DFAUST_LIBRARY=/usr/local/lib/libfaust.a
-DBUILD_FAUST_OPCODES:BOOL=Yes

Everything built without error. Unfortunately the manual example for
faustgen failed with this error:

mkg@Sun-Yukong:~/csound/cs6make$ ./csound faustgen.csd
0dBFS level = 32768.0
--Csound version 6.10 (double samples) Nov 14 2017
[commit: 98baca09ea4b6ffbc6a8ccc52835861b34681cbd]
libsndfile-1.0.25
WARNING: could not open library
'/home/mkg/csound/cs6make/libfaustcsound.so'
(/home/mkg/csound/cs6make/libfaustcsound.so: undefined symbol:
_ZTIN4llvm11ObjectCacheE)
UnifiedCSD:  faustgen.csd
STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
Loading command-line libraries:
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled

error: syntax error, unexpected T_IDENT, expecting T_OPCODE or
T_FUNCTION or ',' or '['  (token "faustgen") from file faustgen.csd
(1)
line 8:
idsp,a1 faustgen <<<
Unexpected untyped word a1 when expecting a variable
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra
end of score.    overall amps:      0.0
  overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: 0.034s, CPU: 0.004s
mkg@Sun-Yukong:~/csound/cs6make$

What am I doing wrong?

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


On Tue, Nov 14, 2017 at 10:03 AM, Victor Lazzarini
<Victor.Lazzarini@mu.ie> wrote:
thanks, I was in the master git branch rather than faust2.
========================
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 Nov 2017, at 15:01, Francois PINOT <fggpinot@GMAIL.COM> wrote:

I just rebuilt the whole thing on my system (ubuntu 16.10) and it works. Here is what I've done:

1) Download a zip file of faust2 from https://github.com/grame-cncm/faust/tree/faust2
2) Unzip and build faust (make & sudo make install)
3) Pull csound sources from github
3) Build csound

My cmake command for csound is;
cmake -DLLVM_DIR=/usr/share/llvm-4.0/cmake -DCMAKE_MODULE_LINKER_FLAGS="-L /usr/lib/llvm-4.0/lib" -DBUILD_FAUST_OPCODES=1 -DFAUST_LIBRARY=/usr/local/lib/libfaust.a -DLUAJIT_LIBRARY="/usr/lib/x86_64-linux-gnu/libluajit-5.1.so" -DLUA_H_PATH="/usr/include/luajit-2.0" -DBUILD_CSOUND_AC=0 -DBUILD_CSOUND_AC_PYTHON_INTERFACE=0 -DBUILD_CSOUND_AC_LUA_INTERFACE=0 ../../github/csound/csound

This was done 10 mn ago

François

2017-11-14 15:28 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Actually, I noticed the change in git address, so I got the new code now. However, this appears to have changed significantly and it will not compile
the faust opcodes now.
========================
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 Nov 2017, at 13:38, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

I understand this, but then if I build the opcodes with that, I get

/Users/victor/src/csound6/Opcodes/faustgen.cpp:93:48: error: unknown type name 'Soundfile'
virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
                                             ^
1 error generated.

I pulled faust this morning and the UI.h file I have is different from this one.

========================
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 Nov 2017, at 12:03, Francois PINOT <fggpinot@gmail.com> wrote:

Hello Victor,

the problem was the addSoundfile virtual method in the UI class definition (https://github.com/grame-cncm/faust/blob/faust2/architecture/faust/gui/UI.h). I had to add an empty addSoundfile method in faustgen.cpp (line (89) in order to build the csound faust opodes. I had no problem building faust.

François

2017-11-14 11:52 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Hi François,

I updated my faust2 build from GIT and it did not have the Soundfile interface you are mentioning here,
so I could not build the file. I am not sure what is going on. For the moment, I’ve added a forward
declaration for struct Soundfile in order to compile. Do you know anything about this mismatch
of interfaces?

thanks
========================
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 31 Oct 2017, at 09:24, Francois PINOT <fggpinot@gmail.com> wrote:

Hello Victor,

I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:

[ 53%] Built target csound64
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
 controls  *ctls = new controls();
                                ^
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
class controls : public UI {
     ^
In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
/usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
       virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
                    ^
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
 controls  *ctls = new controls();

I solved the problem by adding the following line to faustgen.cpp (89):
virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};

François







Date2017-11-15 12:49
FromMichael Gogins
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
Did you see the part about the missing symbol?  Where is llvm::ObjectCache? 

On Nov 15, 2017 01:22, "Victor Lazzarini" <Victor.Lazzarini@mu.ie> wrote:
The opcode did not load, maybe a dependency problem?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 15 Nov 2017, at 01:17, Michael Gogins <michael.gogins@GMAIL.COM> wrote:

I installed LLVM 5 by untarring in usr/local and pulled faust2 and
built it. I had to adjust the CMake parameters as follows to build
Csound develop head with gcc and the Faust opcodes:

cmake ../csound -DSCORE_PARSER:BOOL=Yes
-DABLETON_LINK_HOME:PATH=/home/mkg/link
-DBUILD_ABLETON_LINK_OPCODES:BOOL=Yes -DBUILD_STATIC_LIBRARY:Bool=Yes
-DBUILD_TESTS:BOOL=Yes -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DBUILD_HDF5_OPCODES:BOOL=Yes
-DVSTSDK2X_HOME:PATH=/home/mkg/VST_SDK/VST2_SDK
-DBUILD_CSOUND_VST:BOOL=Yes -DBUILD_VST4CS_OPCODES:BOOL=Yes
-DLLVM_DIR=/usr/local/lib/cmake/llvm -DCMAKE_MODULE_LINKER_FLAGS="-L
/usr/local/lib" -DFAUST_LIBRARY=/usr/local/lib/libfaust.a
-DBUILD_FAUST_OPCODES:BOOL=Yes

Everything built without error. Unfortunately the manual example for
faustgen failed with this error:

mkg@Sun-Yukong:~/csound/cs6make$ ./csound faustgen.csd
0dBFS level = 32768.0
--Csound version 6.10 (double samples) Nov 14 2017
[commit: 98baca09ea4b6ffbc6a8ccc52835861b34681cbd]
libsndfile-1.0.25
WARNING: could not open library
'/home/mkg/csound/cs6make/libfaustcsound.so'
(/home/mkg/csound/cs6make/libfaustcsound.so: undefined symbol:
_ZTIN4llvm11ObjectCacheE)
UnifiedCSD:  faustgen.csd
STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
Loading command-line libraries:
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled

error: syntax error, unexpected T_IDENT, expecting T_OPCODE or
T_FUNCTION or ',' or '['  (token "faustgen") from file faustgen.csd
(1)
line 8:
idsp,a1 faustgen <<<
Unexpected untyped word a1 when expecting a variable
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra
end of score.    overall amps:      0.0
  overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: 0.034s, CPU: 0.004s
mkg@Sun-Yukong:~/csound/cs6make$

What am I doing wrong?

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


On Tue, Nov 14, 2017 at 10:03 AM, Victor Lazzarini
<Victor.Lazzarini@mu.ie> wrote:
thanks, I was in the master git branch rather than faust2.
========================
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 Nov 2017, at 15:01, Francois PINOT <fggpinot@GMAIL.COM> wrote:

I just rebuilt the whole thing on my system (ubuntu 16.10) and it works. Here is what I've done:

1) Download a zip file of faust2 from https://github.com/grame-cncm/faust/tree/faust2
2) Unzip and build faust (make & sudo make install)
3) Pull csound sources from github
3) Build csound

My cmake command for csound is;
cmake -DLLVM_DIR=/usr/share/llvm-4.0/cmake -DCMAKE_MODULE_LINKER_FLAGS="-L /usr/lib/llvm-4.0/lib" -DBUILD_FAUST_OPCODES=1 -DFAUST_LIBRARY=/usr/local/lib/libfaust.a -DLUAJIT_LIBRARY="/usr/lib/x86_64-linux-gnu/libluajit-5.1.so" -DLUA_H_PATH="/usr/include/luajit-2.0" -DBUILD_CSOUND_AC=0 -DBUILD_CSOUND_AC_PYTHON_INTERFACE=0 -DBUILD_CSOUND_AC_LUA_INTERFACE=0 ../../github/csound/csound

This was done 10 mn ago

François

2017-11-14 15:28 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Actually, I noticed the change in git address, so I got the new code now. However, this appears to have changed significantly and it will not compile
the faust opcodes now.
========================
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 Nov 2017, at 13:38, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

I understand this, but then if I build the opcodes with that, I get

/Users/victor/src/csound6/Opcodes/faustgen.cpp:93:48: error: unknown type name 'Soundfile'
virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
                                             ^
1 error generated.

I pulled faust this morning and the UI.h file I have is different from this one.

========================
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 Nov 2017, at 12:03, Francois PINOT <fggpinot@gmail.com> wrote:

Hello Victor,

the problem was the addSoundfile virtual method in the UI class definition (https://github.com/grame-cncm/faust/blob/faust2/architecture/faust/gui/UI.h). I had to add an empty addSoundfile method in faustgen.cpp (line (89) in order to build the csound faust opodes. I had no problem building faust.

François

2017-11-14 11:52 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Hi François,

I updated my faust2 build from GIT and it did not have the Soundfile interface you are mentioning here,
so I could not build the file. I am not sure what is going on. For the moment, I’ve added a forward
declaration for struct Soundfile in order to compile. Do you know anything about this mismatch
of interfaces?

thanks
========================
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 31 Oct 2017, at 09:24, Francois PINOT <fggpinot@gmail.com> wrote:

Hello Victor,

I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:

[ 53%] Built target csound64
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
 controls  *ctls = new controls();
                                ^
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
class controls : public UI {
     ^
In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
/usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
       virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
                    ^
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
 controls  *ctls = new controls();

I solved the problem by adding the following line to faustgen.cpp (89):
virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};

François







Date2017-11-15 13:41
FromFrancois PINOT
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
Hello Michael,

on my system (Ubuntu 16.4), I installed the llvm package from here: https://apt.llvm.org/. I choosed the stable branch which is version 4.0. after the installation I had to create this symbolic link: sudo ln -s /usr/lib/llvm-4.0/bin/llvm-config llvm-config (llvm-config is needed by faust).
And then I was able to build faust2 (https://github.com/grame-cncm/faust/tree/faust2) and Csound with the faust opcodes.

François

2017-11-15 13:49 GMT+01:00 Michael Gogins <michael.gogins@gmail.com>:
Did you see the part about the missing symbol?  Where is llvm::ObjectCache? 

On Nov 15, 2017 01:22, "Victor Lazzarini" <Victor.Lazzarini@mu.ie> wrote:
The opcode did not load, maybe a dependency problem?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 15 Nov 2017, at 01:17, Michael Gogins <michael.gogins@GMAIL.COM> wrote:

I installed LLVM 5 by untarring in usr/local and pulled faust2 and
built it. I had to adjust the CMake parameters as follows to build
Csound develop head with gcc and the Faust opcodes:

cmake ../csound -DSCORE_PARSER:BOOL=Yes
-DABLETON_LINK_HOME:PATH=/home/mkg/link
-DBUILD_ABLETON_LINK_OPCODES:BOOL=Yes -DBUILD_STATIC_LIBRARY:Bool=Yes
-DBUILD_TESTS:BOOL=Yes -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DBUILD_HDF5_OPCODES:BOOL=Yes
-DVSTSDK2X_HOME:PATH=/home/mkg/VST_SDK/VST2_SDK
-DBUILD_CSOUND_VST:BOOL=Yes -DBUILD_VST4CS_OPCODES:BOOL=Yes
-DLLVM_DIR=/usr/local/lib/cmake/llvm -DCMAKE_MODULE_LINKER_FLAGS="-L
/usr/local/lib" -DFAUST_LIBRARY=/usr/local/lib/libfaust.a
-DBUILD_FAUST_OPCODES:BOOL=Yes

Everything built without error. Unfortunately the manual example for
faustgen failed with this error:

mkg@Sun-Yukong:~/csound/cs6make$ ./csound faustgen.csd
0dBFS level = 32768.0
--Csound version 6.10 (double samples) Nov 14 2017
[commit: 98baca09ea4b6ffbc6a8ccc52835861b34681cbd]
libsndfile-1.0.25
WARNING: could not open library
'/home/mkg/csound/cs6make/libfaustcsound.so'
(/home/mkg/csound/cs6make/libfaustcsound.so: undefined symbol:
_ZTIN4llvm11ObjectCacheE)
UnifiedCSD:  faustgen.csd
STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
Loading command-line libraries:
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled

error: syntax error, unexpected T_IDENT, expecting T_OPCODE or
T_FUNCTION or ',' or '['  (token "faustgen") from file faustgen.csd
(1)
line 8:
idsp,a1 faustgen <<<
Unexpected untyped word a1 when expecting a variable
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra
end of score.    overall amps:      0.0
  overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: 0.034s, CPU: 0.004s
mkg@Sun-Yukong:~/csound/cs6make$

What am I doing wrong?

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


On Tue, Nov 14, 2017 at 10:03 AM, Victor Lazzarini
<Victor.Lazzarini@mu.ie> wrote:
thanks, I was in the master git branch rather than faust2.
========================
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 Nov 2017, at 15:01, Francois PINOT <fggpinot@GMAIL.COM> wrote:

I just rebuilt the whole thing on my system (ubuntu 16.10) and it works. Here is what I've done:

1) Download a zip file of faust2 from https://github.com/grame-cncm/faust/tree/faust2
2) Unzip and build faust (make & sudo make install)
3) Pull csound sources from github
3) Build csound

My cmake command for csound is;
cmake -DLLVM_DIR=/usr/share/llvm-4.0/cmake -DCMAKE_MODULE_LINKER_FLAGS="-L /usr/lib/llvm-4.0/lib" -DBUILD_FAUST_OPCODES=1 -DFAUST_LIBRARY=/usr/local/lib/libfaust.a -DLUAJIT_LIBRARY="/usr/lib/x86_64-linux-gnu/libluajit-5.1.so" -DLUA_H_PATH="/usr/include/luajit-2.0" -DBUILD_CSOUND_AC=0 -DBUILD_CSOUND_AC_PYTHON_INTERFACE=0 -DBUILD_CSOUND_AC_LUA_INTERFACE=0 ../../github/csound/csound

This was done 10 mn ago

François

2017-11-14 15:28 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Actually, I noticed the change in git address, so I got the new code now. However, this appears to have changed significantly and it will not compile
the faust opcodes now.
========================
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 Nov 2017, at 13:38, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

I understand this, but then if I build the opcodes with that, I get

/Users/victor/src/csound6/Opcodes/faustgen.cpp:93:48: error: unknown type name 'Soundfile'
virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
                                             ^
1 error generated.

I pulled faust this morning and the UI.h file I have is different from this one.

========================
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 Nov 2017, at 12:03, Francois PINOT <fggpinot@gmail.com> wrote:

Hello Victor,

the problem was the addSoundfile virtual method in the UI class definition (https://github.com/grame-cncm/faust/blob/faust2/architecture/faust/gui/UI.h). I had to add an empty addSoundfile method in faustgen.cpp (line (89) in order to build the csound faust opodes. I had no problem building faust.

François

2017-11-14 11:52 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Hi François,

I updated my faust2 build from GIT and it did not have the Soundfile interface you are mentioning here,
so I could not build the file. I am not sure what is going on. For the moment, I’ve added a forward
declaration for struct Soundfile in order to compile. Do you know anything about this mismatch
of interfaces?

thanks
========================
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 31 Oct 2017, at 09:24, Francois PINOT <fggpinot@gmail.com> wrote:

Hello Victor,

I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:

[ 53%] Built target csound64
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
 controls  *ctls = new controls();
                                ^
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
class controls : public UI {
     ^
In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
/usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
       virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
                    ^
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
 controls  *ctls = new controls();

I solved the problem by adding the following line to faustgen.cpp (89):
virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};

François








Date2017-11-15 14:40
FromMichael Gogins
SubjectRe: [Csnd-dev] Problem building Csound with Faust opcodes
Thanks, it's probably my version of llvm.

On Nov 15, 2017 8:41 AM, "Francois PINOT" <fggpinot@gmail.com> wrote:
Hello Michael,

on my system (Ubuntu 16.4), I installed the llvm package from here: https://apt.llvm.org/. I choosed the stable branch which is version 4.0. after the installation I had to create this symbolic link: sudo ln -s /usr/lib/llvm-4.0/bin/llvm-config llvm-config (llvm-config is needed by faust).
And then I was able to build faust2 (https://github.com/grame-cncm/faust/tree/faust2) and Csound with the faust opcodes.

François

2017-11-15 13:49 GMT+01:00 Michael Gogins <michael.gogins@gmail.com>:
Did you see the part about the missing symbol?  Where is llvm::ObjectCache? 

On Nov 15, 2017 01:22, "Victor Lazzarini" <Victor.Lazzarini@mu.ie> wrote:
The opcode did not load, maybe a dependency problem?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 15 Nov 2017, at 01:17, Michael Gogins <michael.gogins@GMAIL.COM> wrote:

I installed LLVM 5 by untarring in usr/local and pulled faust2 and
built it. I had to adjust the CMake parameters as follows to build
Csound develop head with gcc and the Faust opcodes:

cmake ../csound -DSCORE_PARSER:BOOL=Yes
-DABLETON_LINK_HOME:PATH=/home/mkg/link
-DBUILD_ABLETON_LINK_OPCODES:BOOL=Yes -DBUILD_STATIC_LIBRARY:Bool=Yes
-DBUILD_TESTS:BOOL=Yes -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DBUILD_HDF5_OPCODES:BOOL=Yes
-DVSTSDK2X_HOME:PATH=/home/mkg/VST_SDK/VST2_SDK
-DBUILD_CSOUND_VST:BOOL=Yes -DBUILD_VST4CS_OPCODES:BOOL=Yes
-DLLVM_DIR=/usr/local/lib/cmake/llvm -DCMAKE_MODULE_LINKER_FLAGS="-L
/usr/local/lib" -DFAUST_LIBRARY=/usr/local/lib/libfaust.a
-DBUILD_FAUST_OPCODES:BOOL=Yes

Everything built without error. Unfortunately the manual example for
faustgen failed with this error:

mkg@Sun-Yukong:~/csound/cs6make$ ./csound faustgen.csd
0dBFS level = 32768.0
--Csound version 6.10 (double samples) Nov 14 2017
[commit: 98baca09ea4b6ffbc6a8ccc52835861b34681cbd]
libsndfile-1.0.25
WARNING: could not open library
'/home/mkg/csound/cs6make/libfaustcsound.so'
(/home/mkg/csound/cs6make/libfaustcsound.so: undefined symbol:
_ZTIN4llvm11ObjectCacheE)
UnifiedCSD:  faustgen.csd
STARTING FILE
Creating options
Creating orchestra
closing tag
Creating score
Loading command-line libraries:
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled

error: syntax error, unexpected T_IDENT, expecting T_OPCODE or
T_FUNCTION or ',' or '['  (token "faustgen") from file faustgen.csd
(1)
line 8:
idsp,a1 faustgen <<<
Unexpected untyped word a1 when expecting a variable
Parsing failed due to invalid input!
Stopping on parser failure
cannot compile orchestra
end of score.    overall amps:      0.0
  overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: 0.034s, CPU: 0.004s
mkg@Sun-Yukong:~/csound/cs6make$

What am I doing wrong?

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


On Tue, Nov 14, 2017 at 10:03 AM, Victor Lazzarini
<Victor.Lazzarini@mu.ie> wrote:
thanks, I was in the master git branch rather than faust2.
========================
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 Nov 2017, at 15:01, Francois PINOT <fggpinot@GMAIL.COM> wrote:

I just rebuilt the whole thing on my system (ubuntu 16.10) and it works. Here is what I've done:

1) Download a zip file of faust2 from https://github.com/grame-cncm/faust/tree/faust2
2) Unzip and build faust (make & sudo make install)
3) Pull csound sources from github
3) Build csound

My cmake command for csound is;
cmake -DLLVM_DIR=/usr/share/llvm-4.0/cmake -DCMAKE_MODULE_LINKER_FLAGS="-L /usr/lib/llvm-4.0/lib" -DBUILD_FAUST_OPCODES=1 -DFAUST_LIBRARY=/usr/local/lib/libfaust.a -DLUAJIT_LIBRARY="/usr/lib/x86_64-linux-gnu/libluajit-5.1.so" -DLUA_H_PATH="/usr/include/luajit-2.0" -DBUILD_CSOUND_AC=0 -DBUILD_CSOUND_AC_PYTHON_INTERFACE=0 -DBUILD_CSOUND_AC_LUA_INTERFACE=0 ../../github/csound/csound

This was done 10 mn ago

François

2017-11-14 15:28 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Actually, I noticed the change in git address, so I got the new code now. However, this appears to have changed significantly and it will not compile
the faust opcodes now.
========================
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 Nov 2017, at 13:38, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

I understand this, but then if I build the opcodes with that, I get

/Users/victor/src/csound6/Opcodes/faustgen.cpp:93:48: error: unknown type name 'Soundfile'
virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};
                                             ^
1 error generated.

I pulled faust this morning and the UI.h file I have is different from this one.

========================
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 Nov 2017, at 12:03, Francois PINOT <fggpinot@gmail.com> wrote:

Hello Victor,

the problem was the addSoundfile virtual method in the UI class definition (https://github.com/grame-cncm/faust/blob/faust2/architecture/faust/gui/UI.h). I had to add an empty addSoundfile method in faustgen.cpp (line (89) in order to build the csound faust opodes. I had no problem building faust.

François

2017-11-14 11:52 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Hi François,

I updated my faust2 build from GIT and it did not have the Soundfile interface you are mentioning here,
so I could not build the file. I am not sure what is going on. For the moment, I’ve added a forward
declaration for struct Soundfile in order to compile. Do you know anything about this mismatch
of interfaces?

thanks
========================
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 31 Oct 2017, at 09:24, Francois PINOT <fggpinot@gmail.com> wrote:

Hello Victor,

I tried to build Csound with the Faust opcodes on my linux system. I built faust2 successfully from git. Then when compiling Csound I got this error:

[ 53%] Built target csound64
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘int init_faustaudio(CSOUND*, faustgen*)’:
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:402:34: error: invalid new-expression of abstract class type ‘controls’
 controls  *ctls = new controls();
                                ^
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:51:7: note:   because the following virtual functions are pure within ‘controls’:
class controls : public UI {
     ^
In file included from /home/pinot/github/csound/csound/Opcodes/faustgen.cpp:40:0:
/usr/local/include/faust/gui/UI.h:71:22: note:     virtual void UI::addSoundfile(const char*, Soundfile**)
       virtual void addSoundfile(const char* label, Soundfile** sf_zone) = 0;
                    ^
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp: In function ‘void* init_faustgen_thread(void*)’:
/home/pinot/github/csound/csound/Opcodes/faustgen.cpp:510:34: error: invalid new-expression of abstract class type ‘controls’
 controls  *ctls = new controls();

I solved the problem by adding the following line to faustgen.cpp (89):
virtual void addSoundfile(const char* label, Soundfile** sf_zone) {};

François