Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLOsc error build and install on Linux #39

Closed
duckt14 opened this issue Jan 12, 2024 · 4 comments
Closed

BLOsc error build and install on Linux #39

duckt14 opened this issue Jan 12, 2024 · 4 comments

Comments

@duckt14
Copy link

duckt14 commented Jan 12, 2024

Hi,
I'm unable to install the plugins because CMake tells me that BLOsc was not declared during the building.
This is the text of the error:

In file included from /home/enrico/portedplugins/plugins/BLOsc/BLOsc.cpp:4: /home/enrico/portedplugins/plugins/BLOsc/BLOsc.hpp:26:18: error: ‘BlOsc’ in namespace ‘daisysp’ does not name a type 26 | daisysp::BlOsc blosc; | ^~~~~ /home/enrico/portedplugins/plugins/BLOsc/BLOsc.cpp: In constructor ‘BLOsc::BLOsc::BLOsc()’: /home/enrico/portedplugins/plugins/BLOsc/BLOsc.cpp:14:3: error: ‘blosc’ was not declared in this scope 14 | blosc.Init(samplerate); | ^~~~~ /home/enrico/portedplugins/plugins/BLOsc/BLOsc.cpp: In member function ‘void BLOsc::BLOsc::next(int)’: /home/enrico/portedplugins/plugins/BLOsc/BLOsc.cpp:32:5: error: ‘blosc’ was not declared in this scope 32 | blosc.SetFreq(slopedFreq.consume()); | ^~~~~ gmake[2]: *** [CMakeFiles/BLOsc_scsynth.dir/build.make:76: CMakeFiles/BLOsc_scsynth.dir/plugins/BLOsc/BLOsc.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:1898: CMakeFiles/BLOsc_scsynth.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2

Any solutions?
Thank you, Enrico :)

Desktop:

  • OS: Fedora Linux 39
  • Architecture: x86
  • SC Version: 3.14.0-dev
  • PortedPlugins Version: v0.4.1
@madskjeldgaard
Copy link
Owner

madskjeldgaard commented Jan 12, 2024 via email

@WhiteGobo
Copy link
Contributor

I have the same error on arch linux via yay -S supercollider-portedplugins .
daisysp-library updated on january 8 to v1.0.
The Source/Synthesis/blosc.h/cpp were removed in the new version

@WhiteGobo
Copy link
Contributor

WhiteGobo commented Feb 23, 2024

They moved LGPL modules to a new submodule. See here for more information
They said, "after updating libDaisy, and DaisySP (including pulling the new submodule), users can add USE_DAISYSP_LGPL=1 to their Makefile, and continue without any other changes."

@WhiteGobo
Copy link
Contributor

WhiteGobo commented Mar 13, 2024

With the PR the old version of daisysp will be used. That fixes the problem for me.
Adding the option USE_DAISYSP_LGPL should fix the problem also. So adding

target_compile_definitions("${plugin_name}_scsynth PUBLIC "USE_DAISYSP_LGPL")

after:

target_link_libraries("${plugin_name}_scsynth" DaisySP)

should fix the problem. But cmake of daisysp doesnt load daisysp-lgpl automaticly and i didnt got it to work.

I tried to fix the problem with the current version of daisysp but i guess daisysp-lgpl should be loaded automaticly from daisysp, and that isnt the case currently. So I tried adding

        CPMAddPackage(
                NAME daisysplgpl
                GITHUB_REPOSITORY "electro-smith/DaisySP-LPGL"
                GIT_TAG master
                )

after

if(USE_DAISYSP_LIB)
# Print message to let user know these are being built
message(STATUS "Adding DaisySP plugins")
# Add DaisySP library
CPMAddPackage(
NAME daisysp
GITHUB_REPOSITORY "electro-smith/DaisySP"
GIT_TAG master
)

and adding after setting USE_DAISYSP_LGPL:

    target_include_directories("${plugin_name}_scsynth" PUBLIC include/daisysplgpl)
    target_link_libraries("${plugin_name}_scsynth" DaisySP-LGPL)

Then i got an error that within daisysplpgl is missing dsp.h from daisysp couldnt be found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants