Skip to content

Commit d10a1c6

Browse files
authored
Merge pull request #3142 from lilyinstarlight/fix/pi-build
Build - fix raspberry pi build and update docs a little bit
2 parents 442c69d + 0d0b684 commit d10a1c6

File tree

8 files changed

+12
-14
lines changed

8 files changed

+12
-14
lines changed

BUILD-LINUX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ few dependencies:
5858
### 1.1 Debian
5959
The following is a rough list of Debian packages that are needed that can serve as a starting position:
6060
```bash
61-
sudo apt-get install -y build-essential git libssl-dev ruby-dev elixir erlang-dev erlang-xmerl qttools5-dev qttools5-dev-tools libqt5svg5-dev libqt5opengl5-dev supercollider-server sc3-plugins-server alsa-utils jackd2 libjack-jackd2-dev libjack-jackd2-0 libasound2-dev librtmidi-dev pulseaudio-module-jack cmake ninja-build
61+
sudo apt-get install -y build-essential git libssl-dev ruby-dev elixir erlang-dev erlang-xmerl qttools5-dev qttools5-dev-tools libqt5svg5-dev libqt5opengl5-dev supercollider-server sc3-plugins-server alsa-utils jackd2 libjack-jackd2-dev libjack-jackd2-0 libasound2-dev pulseaudio-module-jack cmake ninja-build
6262
```
6363

6464
*Note:* The main repositories may not have a recent enough version of

BUILD-RASPBERRY-PI.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ etc., you can fetch, build and start Sonic Pi with the following:
1111
```
1212
git clone https://github.com/sonic-pi-net/sonic-pi.git
1313
cd sonic-pi/app
14-
sudo ./pi-setup.sh
14+
./pi-setup.sh
1515
./pi-install-elixir.sh
1616
```
1717

@@ -84,12 +84,10 @@ cd ~/Development/sonic-pi
8484

8585
## 2. Fetch the Development Dependencies
8686

87-
Now we're ready to fetch all the development dependencies. You can do
88-
this by running the following script with `sudo` (this is necessary as
89-
it calls `apt-get` to install your packages)
87+
Now we're ready to fetch all the development dependencies.
9088

9189
```
92-
sudo ./app/pi-setup.sh
90+
./app/pi-setup.sh
9391
```
9492

9593
The versions of Erlang and Elixir installed by default are not currently

app/linux-pre-vcpkg.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ fi
4343
cd vcpkg
4444

4545
if [ "$no_imgui" == true ]; then
46-
./vcpkg install libsndfile kissfft crossguid platform-folders reproc catch2 --recurse
46+
./vcpkg install libsndfile[core,external-libs] kissfft crossguid platform-folders reproc catch2 --recurse
4747
else
48-
./vcpkg install libsndfile kissfft fmt crossguid sdl2[x11] gl3w reproc gsl-lite concurrentqueue platform-folders catch2 --recurse
48+
./vcpkg install libsndfile[core,external-libs] kissfft fmt crossguid sdl2[x11] gl3w reproc gsl-lite concurrentqueue platform-folders catch2 --recurse
4949
fi
5050

5151

app/mac-pre-vcpkg.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ cd vcpkg
4444
triplet=(x64-osx)
4545

4646
if [ "$no_imgui" == true ]; then
47-
./vcpkg install libsndfile kissfft crossguid platform-folders reproc catch2 --triplet ${triplet[0]} --recurse
47+
./vcpkg install libsndfile[core,external-libs] kissfft crossguid platform-folders reproc catch2 --triplet ${triplet[0]} --recurse
4848
else
49-
./vcpkg install libsndfile kissfft fmt sdl2 gl3w reproc gsl-lite concurrentqueue platform-folders catch2 --triplet ${triplet[0]} --recurse
49+
./vcpkg install libsndfile[core,external-libs] kissfft fmt sdl2 gl3w reproc gsl-lite concurrentqueue platform-folders catch2 --triplet ${triplet[0]} --recurse
5050
fi
5151

5252

app/pi-build-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ WORKING_DIR="$(pwd)"
77
"${SCRIPT_DIR}"/pi-prebuild.sh -n
88
"${SCRIPT_DIR}"/pi-config.sh -n
99
"${SCRIPT_DIR}"/pi-build-gui.sh
10-
${SCRIPT_DIR}/pi-post-tau-prod-release.sh
10+
"${SCRIPT_DIR}"/pi-post-tau-prod-release.sh
1111

1212
cd "${WORKING_DIR}"

app/pi-prebuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44
WORKING_DIR="$(pwd)"
55

6-
VCPKG_FORCE_SYSTEM_BINARIES=1 "${SCRIPT_DIR}"/linux-prebuild.sh "$@"
6+
VCPKG_FORCE_SYSTEM_BINARIES=1 CC="$(type -p clang)" CXX="$(type -p clang++)" "${SCRIPT_DIR}"/linux-prebuild.sh "$@"
77

88
# Restore working directory as it was prior to this script running...
99
cd "${WORKING_DIR}"

app/pi-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
echo "Fetching dependencies via apt..."
44

55
sudo apt-get update
6-
sudo apt-get install -y curl build-essential libssl-dev git ruby-dev elixir erlang-dev erlang-xmerl qttools5-dev qttools5-dev-tools libqt5svg5-dev supercollider-server sc3-plugins-server alsa-utils jackd2 libjack-jackd2-0 pulseaudio-module-jack librtmidi-dev cmake ninja-build
6+
sudo apt-get install -y curl build-essential libssl-dev git ruby-dev elixir erlang-dev erlang-xmerl qttools5-dev qttools5-dev-tools libqt5svg5-dev supercollider-server sc3-plugins-server alsa-utils jackd2 libjack-jackd2-0 pulseaudio-module-jack libasound2-dev clang cmake ninja-build
77

88
# Dependencies for building Erlang/Elixir via asdf...
99
sudo apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.0-gtk3-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop

app/win-pre-vcpkg.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ if not exist "vcpkg\vcpkg.exe" (
1717

1818
cd vcpkg
1919
@echo Installing Libraries
20-
vcpkg install libsndfile kissfft fmt crossguid sdl2 gl3w reproc gsl-lite concurrentqueue platform-folders catch2 --triplet x64-windows-static-md --recurse
20+
vcpkg install libsndfile[core,external-libs] kissfft fmt crossguid sdl2 gl3w reproc gsl-lite concurrentqueue platform-folders catch2 --triplet x64-windows-static-md --recurse
2121

2222
cd %WORKING_DIR%

0 commit comments

Comments
 (0)