-
-
Notifications
You must be signed in to change notification settings - Fork 959
Description
I have successfully built Sonic-Pi version 3.2.0-dev on Debian 9 Stretch in the past
after having recently migrated to Debian 10 Buster I had a encountered a few problems building but managed to find workarounds which may provide useful for modifications to the build-debian-app
the first snag was this
error: ‘FF_MIN_BUFFER_SIZE’ undeclared (first use in this function); did you mean ‘AVUTIL_BUFFER_H’?
#define AUBIO_AVCODEC_MAX_BUFFER_SIZE FF_MIN_BUFFER_SIZE
this is corrected by making the following change to the file aubio/src/io/source_avcodec.c
line 61 replace FF_MIN_BUFFER_SIZE with AV_INPUT_BUFFER_MIN_SIZE
#define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE
the next issue was with ruby rugged
rugged 0.26.0 cannot be installed
Could not find a valid gem 'rugged' (= 0.26.0) in any repository
However
sudo gem install rugged -v '0.28.0'
installs successfully
I tried executing export RUGGED_VERSION=0.28.0 or changing line 13 of build-debian-app to RUGGED_VERSION=0.28.0 but neither seemed to have had any effect
I followed your instructions and modified the paths so that it looked like
cp -a "/var/lib/gems/2.5.0/gems/rugged-0.28.0/." "../../server/ruby/vendor/rugged-0.26.0/"
afterwards the build completed successfully and Sonic-Pi loaded
the last step to get MIDI devices recognized was to move the osmid folder up one level
from
app/server/native/linux/osmid/
to
app/server/native/osmid
