Skip to content

Commit 32b2899

Browse files
Fix SDRplay CI build on all linux distros
1 parent 5178de0 commit 32b2899

File tree

9 files changed

+18
-9
lines changed

9 files changed

+18
-9
lines changed

docker_builds/debian_bookworm/do_build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk2-dev
99
libcodec2-dev autoconf libtool xxd libspdlog-dev
1010

1111
# Install SDRPlay libraries
12+
SDRPLAY_ARCH=$(dpkg --print-architecture)
1213
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.15.1.run
1314
7z x ./SDRplay_RSP_API-Linux-3.15.1.run
1415
7z x ./SDRplay_RSP_API-Linux-3.15.1
15-
cp x86_64/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
16+
cp $SDRPLAY_ARCH/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
1617
cp inc/* /usr/include/
1718

1819
# Install libperseus

docker_builds/debian_bullseye/do_build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk2-dev
99
libcodec2-dev autoconf libtool xxd libspdlog-dev
1010

1111
# Install SDRPlay libraries
12+
SDRPLAY_ARCH=$(dpkg --print-architecture)
1213
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.15.1.run
1314
7z x ./SDRplay_RSP_API-Linux-3.15.1.run
1415
7z x ./SDRplay_RSP_API-Linux-3.15.1
15-
cp x86_64/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
16+
cp $SDRPLAY_ARCH/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
1617
cp inc/* /usr/include/
1718

1819
# Install libperseus

docker_builds/debian_buster/do_build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk1-dev
99
libcodec2-dev autoconf libtool xxd libspdlog-dev
1010

1111
# Install SDRPlay libraries
12+
SDRPLAY_ARCH=$(dpkg --print-architecture)
1213
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.15.1.run
1314
7z x ./SDRplay_RSP_API-Linux-3.15.1.run
1415
7z x ./SDRplay_RSP_API-Linux-3.15.1
15-
cp x86_64/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
16+
cp $SDRPLAY_ARCH/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
1617
cp inc/* /usr/include/
1718

1819
# Install libperseus

docker_builds/debian_sid/do_build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk-dev l
99
libcodec2-dev autoconf libtool xxd libspdlog-dev
1010

1111
# Install SDRPlay libraries
12+
SDRPLAY_ARCH=$(dpkg --print-architecture)
1213
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.15.1.run
1314
7z x ./SDRplay_RSP_API-Linux-3.15.1.run
1415
7z x ./SDRplay_RSP_API-Linux-3.15.1
15-
cp x86_64/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
16+
cp $SDRPLAY_ARCH/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
1617
cp inc/* /usr/include/
1718

1819
# Install libperseus

docker_builds/ubuntu_bionic/do_build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk1-dev
1515
libcodec2-dev libudev-dev autoconf libtool xxd libspdlog-dev
1616

1717
# Install SDRPlay libraries
18+
SDRPLAY_ARCH=$(dpkg --print-architecture)
1819
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.15.1.run
1920
7z x ./SDRplay_RSP_API-Linux-3.15.1.run
2021
7z x ./SDRplay_RSP_API-Linux-3.15.1
21-
cp x86_64/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
22+
cp $SDRPLAY_ARCH/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
2223
cp inc/* /usr/include/
2324

2425
# Install a more recent libusb version

docker_builds/ubuntu_focal/do_build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk2-dev
99
libcodec2-dev autoconf libtool xxd libspdlog-dev
1010

1111
# Install SDRPlay libraries
12+
SDRPLAY_ARCH=$(dpkg --print-architecture)
1213
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.15.1.run
1314
7z x ./SDRplay_RSP_API-Linux-3.15.1.run
1415
7z x ./SDRplay_RSP_API-Linux-3.15.1
15-
cp x86_64/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
16+
cp $SDRPLAY_ARCH/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
1617
cp inc/* /usr/include/
1718

1819
# Install libperseus

docker_builds/ubuntu_jammy/do_build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk2-dev
99
libcodec2-dev autoconf libtool xxd libspdlog-dev
1010

1111
# Install SDRPlay libraries
12+
SDRPLAY_ARCH=$(dpkg --print-architecture)
1213
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.15.1.run
1314
7z x ./SDRplay_RSP_API-Linux-3.15.1.run
1415
7z x ./SDRplay_RSP_API-Linux-3.15.1
15-
cp x86_64/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
16+
cp $SDRPLAY_ARCH/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
1617
cp inc/* /usr/include/
1718

1819
# Install libperseus

docker_builds/ubuntu_noble/do_build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk-dev l
99
libcodec2-dev autoconf libtool xxd libspdlog-dev
1010

1111
# Install SDRPlay libraries
12+
SDRPLAY_ARCH=$(dpkg --print-architecture)
1213
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.15.1.run
1314
7z x ./SDRplay_RSP_API-Linux-3.15.1.run
1415
7z x ./SDRplay_RSP_API-Linux-3.15.1
15-
cp x86_64/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
16+
cp $SDRPLAY_ARCH/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
1617
cp inc/* /usr/include/
1718

1819
# Install libperseus

docker_builds/ubuntu_oracular/do_build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libvolk-dev l
99
libcodec2-dev autoconf libtool xxd libspdlog-dev
1010

1111
# Install SDRPlay libraries
12+
SDRPLAY_ARCH=$(dpkg --print-architecture)
1213
wget https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.15.1.run
1314
7z x ./SDRplay_RSP_API-Linux-3.15.1.run
1415
7z x ./SDRplay_RSP_API-Linux-3.15.1
15-
cp x86_64/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
16+
cp $SDRPLAY_ARCH/libsdrplay_api.so.3.15 /usr/lib/libsdrplay_api.so
1617
cp inc/* /usr/include/
1718

1819
# Install libperseus

0 commit comments

Comments
 (0)