Hi,
I built and installed libgig .deb files ok. But I can't seem to build the LinuxSampler .deb files.
I'm on Ubuntu 18.04.5.
I installed flex and re-made parser which seemed to help, but when I run this command:
sudo dpkg-buildpackage -b
I get the following output:
In file included from parser_shared.h:24:0,
from parser.y:14:
../common/global_private.h:99:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
inline int ToInt(const std::string& s) throw(LinuxSampler::Exception) {
^~~~~
../common/global_private.h:106:44: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
inline float ToFloat(const std::string& s) throw(LinuxSampler::Exception) {
^~~~~
parser.y: In function ‘int InstrScript_parse(LinuxSampler::ParserContext*)’:
parser.y:311:25: sorry, unimplemented: non-trivial designated initializers not supported
});
^
parser.y:311:25: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:311:25: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:311:25: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:318:26: sorry, unimplemented: non-trivial designated initializers not supported
});
^
parser.y:318:26: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:318:26: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:318:26: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:348:25: sorry, unimplemented: non-trivial designated initializers not supported
});
^
parser.y:348:25: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:348:25: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:348:25: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:355:26: sorry, unimplemented: non-trivial designated initializers not supported
});
^
parser.y:355:26: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:355:26: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:355:26: sorry, unimplemented: non-trivial designated initializers not supported
Makefile:534: recipe for target 'parser.lo' failed
make[6]: *** [parser.lo] Error 1
make[6]: Leaving directory '/home/justin/software/LinuxSampler/linuxsampler/src/scriptvm'
Makefile:575: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/justin/software/LinuxSampler/linuxsampler/src/scriptvm'
Makefile:454: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/justin/software/LinuxSampler/linuxsampler/src/scriptvm'
Makefile:691: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/justin/software/LinuxSampler/linuxsampler/src'
Makefile:511: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/justin/software/LinuxSampler/linuxsampler'
Makefile:416: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/justin/software/LinuxSampler/linuxsampler'
debian/rules:35: recipe for target 'build-stamp' failed
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Any help would be much appreciated.
Also I want to use this as a plugin with Ardour. How can I enable VST?
# Building sampler as plugin for following host standards:
# DSSI: yes, LV2: yes, VST: no, AU: no
Many thanks,
Justin
Cannot build LinuxSampler .deb files
-
- Newbie
- Posts: 2
- Joined: Sun May 23, 2021 5:41 am
Re: Cannot build LinuxSampler .deb files
Definitely not an expert (I've had my own fair share of challenges building these packages) but is there any chance this is related to using an old version of your compiler? Might be worth double-checking your compiler is up-to-date.
Another idea: one of the issues I had in the past was with a dependency on Bison that wasn't caught by the Debian dependencies system. Essentially I needed to manually install the bison package, even though it wasn't listed as a required dependency. At first blush it doesn't seem like this is your issue, but perhaps there's another missing package?
Sorry not to be more help and good luck sorting it out!
Another idea: one of the issues I had in the past was with a dependency on Bison that wasn't caught by the Debian dependencies system. Essentially I needed to manually install the bison package, even though it wasn't listed as a required dependency. At first blush it doesn't seem like this is your issue, but perhaps there's another missing package?
Sorry not to be more help and good luck sorting it out!
-
- Newbie
- Posts: 2
- Joined: Sun May 23, 2021 5:41 am
Re: Cannot build LinuxSampler .deb files
Hi effia_esi,
Thanks for the speedy reply.
I checked my compiler is the latest version and I do have Bison installed. In fact I installed all of these (or had them already):
g++
debhelper
pkg-config
automake
libtool
fakeroot
bison
libsndfile1-dev
libjack-jackd2-dev
doxygen
dssi-dev
lv2-dev
libsqlite3-dev
flex
I've also tried using the binary distro as well as from svn but get the same problem.
Also, I was running the command:
dpkg-buildpackage -rfakeroot -b
as root before, but I guess that should be run as ordinary user, so I did that too but it made no difference.
However, I did manage to enable the VST plugin using:
--enable-vstsdk-dir
as a param to ./configure.
Still can't build the LinuxSampler .deb files though.
Any more ideas would be massively appreciated...
Thanks
Thanks for the speedy reply.
I checked my compiler is the latest version and I do have Bison installed. In fact I installed all of these (or had them already):
g++
debhelper
pkg-config
automake
libtool
fakeroot
bison
libsndfile1-dev
libjack-jackd2-dev
doxygen
dssi-dev
lv2-dev
libsqlite3-dev
flex
I've also tried using the binary distro as well as from svn but get the same problem.
Also, I was running the command:
dpkg-buildpackage -rfakeroot -b
as root before, but I guess that should be run as ordinary user, so I did that too but it made no difference.
However, I did manage to enable the VST plugin using:
--enable-vstsdk-dir
as a param to ./configure.
Still can't build the LinuxSampler .deb files though.
Any more ideas would be massively appreciated...
Thanks
Re: Cannot build LinuxSampler .deb files
I will fix these soon. Right now that's more a warning, but as of C++17 enabled this can actually lead to compiler errors.justintime wrote: ↑Sun May 23, 2021 6:20 amIn file included from parser_shared.h:24:0,
from parser.y:14:
../common/global_private.h:99:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
inline int ToInt(const std::string& s) throw(LinuxSampler::Exception) {
^~~~~
../common/global_private.h:106:44: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
inline float ToFloat(const std::string& s) throw(LinuxSampler::Exception) {
^~~~~
Which GCC version are you using there?justintime wrote: ↑Sun May 23, 2021 6:20 amparser.y: In function ‘int InstrScript_parse(LinuxSampler::ParserContext*)’:
parser.y:311:25: sorry, unimplemented: non-trivial designated initializers not supported
});
^
parser.y:311:25: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:311:25: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:311:25: sorry, unimplemented: non-trivial designated initializers not supported
parser.y:318:26: sorry, unimplemented: non-trivial designated initializers not supported
});
^
Code: Select all
gcc --version
Re: Cannot build LinuxSampler .deb files
No, you definitely NEVER need to build the packages as root. In fact, even fakeroot should no longer be required with a modern deb-based OS for several years now.justintime wrote: ↑Mon May 24, 2021 3:39 amAlso, I was running the command:
dpkg-buildpackage -rfakeroot -b
as root before, but I guess that should be run as ordinary user, so I did that too but it made no difference.
However, I did manage to enable the VST plugin using:
--enable-vstsdk-dir
as a param to ./configure.
Still can't build the LinuxSampler .deb files though.
Any more ideas would be massively appreciated...
Thanks
About VST, note that only VST2 is currently supported, not VST3 yet. Which is actually an issue right now, because it seems the VST2 SDK can barely be found for download in public anymore:
viewtopic.php?f=6&t=19949
For some reason Steinberg pulled off all download locations of the VST2 SDK. Did you still find a location to download the VST2 SDK?
Re: Cannot build LinuxSampler .deb files
I actually linked the wrong VST discussion. The one about finding a valid VST2 SDK download link was this one here on the mailing list:
https://sourceforge.net/p/linuxsampler/ ... sg37231337
https://sourceforge.net/p/linuxsampler/ ... sg37231337