synth
synth copied to clipboard
Cannot build the synth test program -- link errors.
Cannot build the synth test program.
OS is Ubuntu-derived 16.04LTS. The libjack-dev package is installed.
Steps to build:
$ git clone https://github.com/RustAudio/synth
$ cargo build --example test
Output from last step:
Compiling num-traits v0.2.6
Compiling num-integer v0.1.39
Compiling libc v0.2.43
Compiling num-iter v0.1.37
Compiling rustc-serialize v0.3.24
Compiling fixedbitset v0.1.9
Compiling pkg-config v0.3.14
Compiling interpolation v0.1.0
Compiling sample v0.6.2
Compiling panning v0.1.1
Compiling bitflags v0.3.3
Compiling petgraph v0.2.10
Compiling portaudio v0.6.4
Compiling rand v0.4.3
Compiling time v0.1.40
Compiling daggy v0.4.1
Compiling rand v0.3.22
Compiling num-bigint v0.1.44
Compiling num-complex v0.1.43
Compiling num-rational v0.1.42
Compiling num v0.1.42
Compiling pitch_calc v0.11.1
Compiling time_calc v0.11.1
Compiling mindtree_utils v0.4.0
Compiling envelope v0.8.1
Compiling simple_gaussian v0.4.5
Compiling instrument v0.1.0
Compiling dsp-chain v0.13.1
Compiling synth v0.11.0 (file:///projects/rust/synth)
error: linking with
cc failed: exit code: 1
Then there follows about 80 errors like this sample:
.cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.6.4/portaudio/src/hostapi/jack/pa_jack.c:1738: undefined reference to 'jack_frame_time'
Traced the error to portaudio, by trying to build it in .cargo/registry/src/github.com-1ecc6299db9ec823/portaudio-0.6.4
, which resulted in the same linker errors. Turnes out there is a dependency on Ubuntu package portaudio19-dev
which is not detected by the cargo
installation process. Installing that package resolved the linker problems.
Have raised the issue in portaudio
.