grame-cncm / faust

Functional programming language for signal processing and sound synthesis
http://faust.grame.fr
Other
2.53k stars 319 forks source link

Version 2-5-10 doesn't install stdfaust.lib #109

Closed yurivict closed 6 years ago

yurivict commented 6 years ago

Version 2.1.0 did install it, and the test program from http://faust.grame.fr/examples/2015/09/30/oscillator.html worked.

Version 2.5.10 doesn't install it, and this test program fails:

$ faust2jaqt sine.dsp
ERROR : /usr/local/bin/faust2jaqt cannot find Faust library dir (usually /usr/local/share/faust)
ERROR : unable to open file stdfaust.lib

Please also note the first error: it's bogus because the directory /usr/local/share/faust exists.

pingdynasty commented 6 years ago

I'm getting the same thing, stdfaust.lib is not installed or even built. Building with current faust master, Version 2.5.13, on Ubuntu 16.04 64bit. Version 2.5.16 on master-dev branch builds and installs fine.

agraef commented 6 years ago

The library is now in a git submodule. You'll have to clone the git source (git clone https://github.com/grame-cncm/faust.git), then just running make will do the necessary git submodule update --init. This doesn't work with the tarball since it's not a git repo.

agraef commented 6 years ago

@sletz, maybe we need to provide a proper self-contained tarball for people who are not familiar with git submodules. That would also make things easier for package maintainers. I already have that in my $(debsrc) target in the main Makefile, we'd just have to massage that a bit so that you could do a make dist and upload the resulting tarball whenever you tag a release. Should I do a PR so that you can have a look?

sletz commented 6 years ago

"Should I do a PR so that you can have a look?" yes please ! (thanks)

agraef commented 6 years ago

Will do. (Might take a day or two, though, as I'm currently busy preparing courses for tomorrow and Friday.)

pingdynasty commented 6 years ago

I see - I'm using a git repo. Installation is fine now if I first do a git submodule update manually.

It looks to me like the git submodule update --init will only happen if I make debsrc.

agraef commented 6 years ago

@pingdynasty Only certain targets do this, but IIRC make is one of them (in the latest HEAD at least). In any case, it's a good idea to just run it manually after a git pull before you do a make or make world so that you can be sure.

agraef commented 6 years ago

@sletz there you go: PR #116. This also includes a new dist-snapshot target which uses the full Debian package version (useful to create git snapshots; contents is the same).

As proof of concept, I employed the new dist target to retroactively produce a tarball for the 2.5.10 release and uploaded it here: https://github.com/grame-cncm/faust/releases/tag/v2-5-10 (@pingdynasty, that tarball will hopefully solve your issue for now until @sletz merges the PR and tags/uploads the current 2.5.17 release.)

agraef commented 6 years ago

116 was just merged so I'm closing this issue for now. @pingdynasty feel free to reopen it if you still have problems with this.