DISTRHO / Cardinal

Virtual modular synthesizer plugin
https://cardinal.kx.studio/
GNU General Public License v3.0
2.07k stars 141 forks source link

initial work for PdArray #658

Closed dromer closed 1 month ago

dromer commented 2 months ago

Not working yet, getting stuck at linker stage:

/bin/ld: ../../plugins/plugins.a(Widgets.cpp.o): in function `TextBox::draw(rack::widget::Widget::DrawArgs const&)':
Widgets.cpp:(.text._ZN7TextBox4drawERKN4rack6widget6Widget8DrawArgsE+0x0): multiple definition of `TextBox::draw(rack::widget::Widget::DrawArgs const&)'; ../../plugins/plugins.a(Widgets.cpp.o):Widgets.cpp:(.text._ZN7TextBox4drawERKN4rack6widget6Widget8DrawArgsE+0x0): first defined here
/bin/ld: ../../plugins/plugins.a(Widgets.cpp.o): in function `TextBox::draw(rack::widget::Widget::DrawArgs const&)':
Widgets.cpp:(.text._ZN7TextBox4drawERKN4rack6widget6Widget8DrawArgsE+0x0): multiple definition of `TextBox::draw(rack::widget::Widget::DrawArgs const&)'; ../../plugins/plugins.a(Widgets.cpp.o):Widgets.cpp:(.text._ZN7TextBox4drawERKN4rack6widget6Widget8DrawArgsE+0x0): first defined here
Creating CLAP plugin for Cardinal
Creating VST3 plugin for Cardinal
/bin/ld: ../../plugins/plugins.a(Widgets.cpp.o): in function `TextBox::draw(rack::widget::Widget::DrawArgs const&)':
Widgets.cpp:(.text._ZN7TextBox4drawERKN4rack6widget6Widget8DrawArgsE+0x0): multiple definition of `TextBox::draw(rack::widget::Widget::DrawArgs const&)'; ../../plugins/plugins.a(Widgets.cpp.o):Widgets.cpp:(.text._ZN7TextBox4drawERKN4rack6widget6Widget8DrawArgsE+0x0): first defined here
/bin/ld: ../../plugins/plugins.a(Widgets.cpp.o): in function `TextBox::draw(rack::widget::Widget::DrawArgs const&)':
Widgets.cpp:(.text._ZN7TextBox4drawERKN4rack6widget6Widget8DrawArgsE+0x0): multiple definition of `TextBox::draw(rack::widget::Widget::DrawArgs const&)'; ../../plugins/plugins.a(Widgets.cpp.o):Widgets.cpp:(.text._ZN7TextBox4drawERKN4rack6widget6Widget8DrawArgsE+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [../../dpf/Makefile.plugins.mk:515: ../../bin/Cardinal] Error 1
make[2]: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
make[2]: *** [../../dpf/Makefile.plugins.mk:558: ../../bin/Cardinal.lv2/Cardinal.so] Error 1
collect2: error: ld returned 1 exit status
make[2]: *** [../../dpf/Makefile.plugins.mk:712: ../../bin/Cardinal.clap/Cardinal.clap] Error 1
collect2: error: ld returned 1 exit status
make[2]: *** [../../dpf/Makefile.plugins.mk:690: ../../bin/Cardinal.vst3/Contents/x86_64-linux/Cardinal.so] Error 1
make[2]: Leaving directory '/home/dreamer/Sources/_audio/_DISTRHO/Cardinal/src/Cardinal'
make[1]: *** [Makefile:128: all] Error 2
make[1]: Leaving directory '/home/dreamer/Sources/_audio/_DISTRHO/Cardinal/src'
make: *** [Makefile:137: cardinal] Error 2

The MAX_POLY_CHANNELS is also not ideal, can probably be done differently?

dromer commented 2 months ago

Now builds .. but segfaults ..

falkTX commented 1 month ago

this needs some symbol conflict fixing, LTO reports the problems. also the drwav part too.

that should help with the crashes.

dromer commented 1 month ago

Still needs some tweaking for the Array panel darkMode: