BelaPlatform / supercollider

an environment and programming language for real time audio synthesis and algorithmic composition
GNU General Public License v3.0
14 stars 8 forks source link

Compile failed on latest BELA image #41

Closed LFSaw closed 7 years ago

LFSaw commented 7 years ago

following instructions on https://github.com/sensestage/supercollider/blob/bela_hackery_v01_master/README_BELA.md, I get the following compile error with the latest BELA image (master):

Building CXX object server/scsynth/CMakeFiles/libscsynth.dir/SC_Bela.cpp.o
/root/supercollider/server/scsynth/SC_Bela.cpp: In constructor ‘SC_BelaDriver::SC_BelaDriver(World*)’:
/root/supercollider/server/scsynth/SC_Bela.cpp:108:100: error: invalid conversion from ‘void (*)()’ to ‘void (*)(void*)’ [-fpermissive]
  mAudioSyncSignalTask = Bela_createAuxiliaryTask(staticMAudioSyncSignal, 90, "mAudioSyncSignalTask");
                                                                                                    ^
In file included from /root/supercollider/include/plugin_interface/SC_World.h:26:0,
                 from /root/supercollider/server/scsynth/SC_HiddenWorld.h:30,
                 from /root/supercollider/server/scsynth/SC_Bela.cpp:26:
/root/Bela/include/Bela.h:709:15: error:   initializing argument 1 of ‘void* Bela_createAuxiliaryTask(void (*)(void*), int, const char*, void*)’ [-fpermissive]
 AuxiliaryTask Bela_createAuxiliaryTask(void (*callback)(void*), int priority, const char *name, void* arg
               ^
make[2]: *** [server/scsynth/CMakeFiles/libscsynth.dir/SC_Bela.cpp.o] Error 1
make[1]: *** [server/scsynth/CMakeFiles/libscsynth.dir/all] Error 2
make: *** [all] Error 

- 2
giuliomoro commented 7 years ago

This is duplicated of https://github.com/sensestage/supercollider/issues/37 , both would be fixed by merging in https://github.com/sensestage/supercollider/pull/33 ( this one is fixed by https://github.com/giuliomoro/supercollider/commit/fd0aec88b82936d4f69a19fedff98a564205f043 )

LFSaw commented 7 years ago

thanks for the heads-up! Will comment in #33. @sensestage, qould you mind to merge? This way, compilation according to the wiki simply breaks...