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

Build error: #include "faust/dsp/libfaust.h" #1

Open
Bubobubobubobubo opened this issue Sep 14, 2021 · 7 comments
Open

Build error: #include "faust/dsp/libfaust.h" #1

Bubobubobubobubo opened this issue Sep 14, 2021 · 7 comments

Comments

@Bubobubobubobubo
Copy link

Hi! I ended up with a compilation error that you might want to investigate. I am using macOS Big Sur version 11.5.2. The system is up to date, to the best of my knowledge:

  • supercollider and faustgen sources are stored in my root directory.
  • the first step worked as intended. The error is encountered when running cmake --build . --config Release from the build directory.
[ 96%] Building CXX object CMakeFiles/FaustGen_supernova.dir/plugins/FaustGen/FaustGen.cpp.o
In file included from /Users/bubo/faustgen/plugins/FaustGen/FaustGen.cpp:4:
/Users/bubo/faustgen/plugins/FaustGen/FaustGen.hpp:7:10: fatal error: 'faust/dsp/libfaust.h' file not found
#include "faust/dsp/libfaust.h"
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake[2]: *** [CMakeFiles/FaustGen_supernova.dir/build.make:82: CMakeFiles/FaustGen_supernova.dir/plugins/FaustGen/FaustGen.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:241: CMakeFiles/FaustGen_supernova.dir/all] Error 2
gmake: *** [Makefile:171: all] Error 2

I do not use Cmake very often. It might be something trivial that I overlooked.

@madskjeldgaard
Copy link
Owner

madskjeldgaard commented Sep 14, 2021 via email

@Bubobubobubobubo
Copy link
Author

Bubobubobubobubo commented Sep 14, 2021

I runned git submodule update --init --recursive. The faust folder is here but does not contain any dsp folder.

There is a faustgen.h inside the faust/compiler/generator folder.

@madskjeldgaard
Copy link
Owner

Ah then it has something to do with where Faust is installed on your system. Did you install Faust before running this ? I might have to tweak cmakelists to better pick this up on macos

@Bubobubobubobubo
Copy link
Author

Bubobubobubobubo commented Sep 14, 2021

Faust is installed on my system, version 2.28.8. The command which faust returns /usr/local/bin/faust but isn't the build process using the freshly cloned submodule?

I'll try to uninstall Faust to see if it changes something.

@madskjeldgaard
Copy link
Owner

Faust is installed on my system, version 2.28.8. The command which faust returns /usr/local/bin/faust but isn't the build process using the freshly cloned submodule?

I'll try to uninstall Faust to see if it changes something.

Yeah you're right. As far as I can see, the CMake setup as it is now should pick this up if the submodule has been downloaded correctly. Hmm.

@Bubobubobubobubo
Copy link
Author

@madskjeldgaard : tried again this morning but stumbled upon the same error as two years ago.

/Users/bubo/faustgen/plugins/FaustGen/FaustGen.hpp:7:10: fatal error: 'faust/dsp/libfaust.h' file not found
#include "faust/dsp/libfaust.h"
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake[2]: *** [CMakeFiles/FaustGen_scsynth.dir/build.make:76: CMakeFiles/FaustGen_scsynth.dir/plugins/FaustGen/FaustGen.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:139: CMakeFiles/FaustGen_scsynth.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

@madskjeldgaard
Copy link
Owner

Thanks. I'm not working on this anymore or at the moment at least, but I think this might be solved by having CMake manage Faust as a dependency using CPM, sort of how PortedPlugins does it https://github.com/madskjeldgaard/portedplugins/blob/main/CMakeLists.txt

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

2 participants