Hi James,
Thanks for the fix!
This was the only error.
Now faust2faustvst builds a vst instrument, loaded by Reaper, but still no luck 
with MIDI notes. Attached is the dsp code. I'll take a look at the intermediate 
cpp code.

For the other faust2vst scripts this is happening:

When using faust2vsti no errors in the code, but the linker complains about
Undefined symbols for architecture i386:
"__Unwind_Resume", referenced from:
      createEffectInstance(int (*)(AEffect*, int, int, int, void*, float)) in 
exfaust14-5d175f.o
      Faust::Faust(int (*)(AEffect*, int, int, int, void*, float), dsp*, 
vstUI*) in exfaust14-5d175f.o
      Faust::getMetadata(char const*, char const*) in exfaust14-5d175f.o
      Faust::compute(float**, float**, int) in exfaust14-5d175f.o
      vstUI::addButton(char const*, float*) in exfaust14-5d175f.o
      vstUI::addCheckButton(char const*, float*) in exfaust14-5d175f.o
      vstUI::addVerticalSlider(char const*, float*, float, float, float, float) 
in exfaust14-5d175f.o
      ...

etc.

How do you change the arch to x86_64 ?
Thanks

Best

Georg


________________________________
From: James Mckernon <jmcker...@gmail.com>
Sent: Saturday, November 21, 2020 2:39 PM
To: Boenn, Georg <georg.bo...@uleth.ca>
Cc: faudiostream-users@lists.sourceforge.net 
<faudiostream-users@lists.sourceforge.net>
Subject: Re: [Faudiostream-users] vsti midi keys not working

Caution: This email was sent from someone outside of the University of 
Lethbridge. Do not click on links or open attachments unless you know they are 
safe. Suspicious emails should be forwarded to phish...@uleth.ca.


On 11/21/20, Boenn, Georg <georg.bo...@uleth.ca> wrote:
> Thanks James,
>
> I have now installed everything locally.
> When i run any of the faust2vst scripts i get this compile error from
> steinberg code:
>
> /usr/local/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffect.cpp:512:20:
> error: non-constant-expression cannot be narrowed from type 'int' to 'char'
> in initializer list [-Wc++11-narrowing]
>                         char temp[2] = {'0' + (char)digit, '\0'};
>                                         ^~~~~~~~~~~~~~~~~
> /usr/local/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffect.cpp:512:20:
> note: insert an explicit cast to silence this issue
>                         char temp[2] = {'0' + (char)digit, '\0'};
>                                         ^~~~~~~~~~~~~~~~~
>                                         static_cast<char>( )
> 1 error generated.
>
> Even if i change this line to:
> char temp[2] = {'0' + static_cast<char>(digit), '\0'};
>
> I still get the same error. Any ideas?
>
> Thanks
>
> G.

Hi Georg,

Interesting, thanks. That was with faust2vst? Did you try with
faust2faustvst as well? Can you paste the command you run?

If you want to attempt to tweak the source, it looks like the line the
compiler is suggesting there is:
char temp[2] = {static_cast<char>('0' + (char)digit), '\0'};

However, the fact that there's one error probably suggests that
something deeper isn't right, and there will most likely be more to
solve if you fix this one...

Cheers,
James

Attachment: exfaust14.dsp
Description: exfaust14.dsp

_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to