googlecreativelab / open-nsynth-super

Open NSynth Super is an experimental physical interface for the NSynth algorithm
Apache License 2.0
2.42k stars 270 forks source link

Error in bash nsynth-setup.sh #21

Closed SarahHopeB closed 6 years ago

SarahHopeB commented 6 years ago

Hi there, I'm building one of these and following along with the readme: https://github.com/googlecreativelab/open-nsynth-super/blob/master/linux/readme.md

I'm having an issue on Step 6. All other steps were completed without error. However, on the Raspberry Pi when executing $ bash nsynth-setup.sh

I receive four errors: line 11: $'\r': command not found line 12: $'\r\: command not found line 13: syntax error near unexpected token '$' {\r'' line 13: 'setup_audio() {

and then it returns...

One thing that it different from the instructions is that i've copied over the directory structure open-nsynth-super/ and not open-nsynth-super-master/ as I've been unable to locate that...?

Any help would be most appreciated.

SarahHopeB commented 6 years ago

I had a hunch given the errors that it had to do with my line ending configuration used when I cloned the repo with git... I ended up using web browser instead to download zip package of repo from github. Once I did this (open-nsynth-super-master was the downloaded package). I was able to scp the package over to the Pi and execute the $ bash nsynth-setup.sh step.

Will update shortly once I work thru some of the errors in execution (all related right now to local network being used and packages not downloading, etc..)

SarahHopeB commented 6 years ago

OK, quick update. After resolving network hiccup and getting nsynth-setup.sh to start pulling packages it continuously failed on cloning openocd. After digging into a bit I found that the primary openocd git repo was in fact unavailable (Couldn't get to it from two other machines either). So, I manually went thru process of pulling from this mirror source and working thru the config/make options (really, just copying from the nsynth-setup.sh script) --> http://repo.or.cz/r/openocd.git

I'm now in the process of scp'ing over the onss_lite_audio package to the Pi. Considering this issue closed.

Thanks!

nsynthsuper commented 6 years ago

Thanks for the update Sarah and good to know about the repo, will mark as closed for now.