Comments (11)
When trying to compile piano.dsp with faust2lv2 (or faust2jack) from git I get:
/tmp/faust2lv2.GppFe0/piano.cpp:12:19: schwerwiegender Fehler: piano.h: Datei oder Verzeichnis nicht gefunden #include <piano.h>
Maybe it's the same cause. It's not related to the brackets instead of quotes.
EDIT: Happens with faust 0.9.95 too.
from faust.
Working here on git. Which Faust version are you using ?
from faust.
I'm on master branch. But as it happens on 0.9.95 too, maybe it's caused by the compiler stack. I'm on Fedora 25. Should the piano.h be copied to the tmp folder or how is it supposed to work?
from faust.
@sletz It depends on which source you try to compile. The problem is with dsp sources which require an external C header, such as the STK examples (I guess that's where Bart's example comes from). In that case Faust will generate an include like
#include <stklib.h>
in the generated C++ source, and the C++ compiler will subsequently fail to find that file in the current directory. That's because without something like -I.
in the compiler flags the C++ compiler will only look on the include path and not in the current directory.
I think that the proper solution for this would be to have the Faust compiler generate an include directive like
#include "stklib.h"
instead, then everything will just work with external headers which accompany the dsp source. Or, if that isn't wanted for whatever reason, we might also add -I.
to the C++ compilation flags in the faust2xyz scripts instead.
@magnetophon @ntonnaett For the time being, you can work around this problem by temporarily setting the CPLUS_INCLUDE_PATH
environment variable when invoking the script, e.g. (Bourne shell syntax):
CPLUS_INCLUDE_PATH=$PWD faust2lv2 piano.dsp
Note that this assumes that the required header file is in the current directory, otherwise specify whatever directory the header is in instead.
from faust.
Oops, sorry, it seems that actually two different bug reports got conflated here. My remarks apply to @ntonnaett's issue. The original problem reported by @magnetophon I cannot reproduce.
from faust.
I create a new one.
from faust.
I guess that Bart's problem was already solved in the meantime, so we might just keep to this one here. I'm not inclined to copy everything I said. :)
from faust.
It's not related to the brackets instead of quotes. If you change
ffunction(float getValueDryTapAmpT60(float), <piano.h>,"");
to
ffunction(float getValueDryTapAmpT60(float), "piano.h","");
there is #include "piano.h" in the generated c++ code. But the buildroot is in a new created tmp dir and there is no piano.h.
from faust.
@agraef My problem has not been solved afaik.
PS: it would help others understand the conversation better if you refer to me as magnetophon instead of Bart.
from faust.
It seems that some commit before or at rev a302793 fixes my issue.
from faust.
@ntonnaett, I just went ahead and added the needed include options to faust2lv2 and faust2faustvst in master-dev rev. 54ef7ff now, so at least with these scripts your issue should be fixed now. If you notice the same hiccup with any of the other faust2xxx scripts then please report those separately.
from faust.
Related Issues (20)
- Rust's F{32,64}::rem_euclid behaves differently from C/C++ remainder HOT 4
- Rust allocation HOT 2
- Need libfaust distribution for linux aarch64 HOT 5
- bagpipes model HOT 1
- Issue with process = (1.0 + ma.EPSILON/2.0) > 1.0 HOT 7
- Missing 'bitwise not' in the language HOT 1
- Creation of Windows LV2 bundles?
- basic Interpreter test failing for make libsall option HOT 4
- How to set the path to Faust libraries programmatically? HOT 8
- Current version of rtaudio doesn't use exceptions (fix included) HOT 6
- libfaustwithllvm.a has bogus symbols on arm64 HOT 1
- mesh2faust failing to build on Ubuntu 22.04 (Win 11 WSL) HOT 6
- Interpreter: Bad performance for this instrument HOT 7
- faust2lv2: -gui not working
- Compiler crash when slider name is a keyword. HOT 1
- Mesh2faust error with material density higher than 4019
- (IMPORTANT) need help bypassing an error HOT 2
- Compilation assertion failure using waveform primitive with LLVM HOT 1
- Generated synth LV2 plugin crashes very often on Windows HOT 3
- Rust backend does not support -double. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faust.