[chuck-users] chugin compile errors
Ge Wang
ge at ccrma.Stanford.EDU
Fri Oct 27 13:17:33 EDT 2023
Greetings!
Apologies! there has been a significant update to the chugins runtime
API, but Fluidsynth and Faust was not yet brought up-to-date.
Specifically `API->vm->get_srate( API, SHRED )` has been changed to
`API->vm->srate( VM )`, also ChuckArray4 has been renamed to
ChuckArrayInt and ChuckArray8 has been renamed to ChuckArrayFloat.
Both Faust and Fluidsynth have been updated and pushed to `main` branch
on the chugins repo.
Please let us know if you run into any other issues!
Rock on,
Ge!
~~~
Ge Wang
Associate Professor
Center for Computer Research in Music and Acoustics (CCRMA)
Department of Music (also Computer Science, by Courtesy)
Stanford University
https://ccrma.stanford.edu/~ge/
~
Senior Fellow & Faculty Associate Director, Stanford HAI
~
Artful Design: Technology in Search of the Sublime!
-- what we make, makes us --
https://artful.design/
~~~
On 10/25/23 12:32 PM, d wrote:
> Hi,
>
> When compiling chugins faust and fluidsynth , I get these errors
>
> ¶ make linux
> g++ -c -o Faust.o Faust.cpp -pthread -D__LINUX_ALSA__
> -D__PLATFORM_LINUX__ -I../chuck/include -fPIC -O3 Faust.cpp: In
> function ‘void faust_ctor(Chuck_Object*, void*, Chuck_VM*,
> Chuck_VM_Shred*, CK_DL_API)’: Faust.cpp:567:40: error: ‘struct
> Chuck_DL_Api::VMApi’ has no member named ‘get_srate’ 567 | Faust *
> f_obj = new Faust(API->vm->get_srate(API, SHRED)); |
> ^~~~~~~~~ make: *** [makefile:115: Faust.o] Error 1
>
>
> ¶ make linux
> g++ -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -I../chuck/include/ -fPIC -O3
> -c -o FluidSynth.o FluidSynth.cpp FluidSynth.cpp:108:30: error:
> ‘Chuck_Array8’ has not been declared 108 | void setTuning(int chan,
> Chuck_Array8 * tuning) | ^~~~~~~~~~~~
> FluidSynth.cpp:125:36: error: ‘Chuck_Array8’ has not been declared
> 125 | void setOctaveTuning(int chan, Chuck_Array8 * tuning)
>
> ¶ chuck --version
>
> chuck version: 1.5.1.7 (chai)
> Linux | 64-bit
> audio drivers: ALSA | JACK
> http://chuck.cs.princeton.edu/
> http://chuck.stanford.edu/
>
> ¶ uname -a
> Linux uptown 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-1
> (2023-07-14) x86_64 GNU/Linux
>
>
> thanks
> d
>
>
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
More information about the chuck-users
mailing list