diff --git a/hsmodem/SharedLibs/aarch64/libsoundio.so b/hsmodem/SharedLibs/aarch64/libsoundio.so new file mode 120000 index 0000000..3f53e65 --- /dev/null +++ b/hsmodem/SharedLibs/aarch64/libsoundio.so @@ -0,0 +1 @@ +libsoundio.so.2 \ No newline at end of file diff --git a/hsmodem/SharedLibs/aarch64/libsoundio.so.2 b/hsmodem/SharedLibs/aarch64/libsoundio.so.2 new file mode 120000 index 0000000..dc6eecd --- /dev/null +++ b/hsmodem/SharedLibs/aarch64/libsoundio.so.2 @@ -0,0 +1 @@ +libsoundio.so.2.0.0 \ No newline at end of file diff --git a/hsmodem/SharedLibs/aarch64/libsoundio.so.2.0.0 b/hsmodem/SharedLibs/aarch64/libsoundio.so.2.0.0 new file mode 100644 index 0000000..9e2fff9 Binary files /dev/null and b/hsmodem/SharedLibs/aarch64/libsoundio.so.2.0.0 differ diff --git a/hsmodem/SharedLibs/windows/libsoundio.dll b/hsmodem/SharedLibs/windows/libsoundio.dll new file mode 100755 index 0000000..e9b8295 Binary files /dev/null and b/hsmodem/SharedLibs/windows/libsoundio.dll differ diff --git a/hsmodem/SharedLibs/x86_64/libsoundio.so b/hsmodem/SharedLibs/x86_64/libsoundio.so new file mode 120000 index 0000000..3f53e65 --- /dev/null +++ b/hsmodem/SharedLibs/x86_64/libsoundio.so @@ -0,0 +1 @@ +libsoundio.so.2 \ No newline at end of file diff --git a/hsmodem/SharedLibs/x86_64/libsoundio.so.2 b/hsmodem/SharedLibs/x86_64/libsoundio.so.2 new file mode 120000 index 0000000..dc6eecd --- /dev/null +++ b/hsmodem/SharedLibs/x86_64/libsoundio.so.2 @@ -0,0 +1 @@ +libsoundio.so.2.0.0 \ No newline at end of file diff --git a/hsmodem/SharedLibs/x86_64/libsoundio.so.2.0.0 b/hsmodem/SharedLibs/x86_64/libsoundio.so.2.0.0 new file mode 100755 index 0000000..0bc1be2 Binary files /dev/null and b/hsmodem/SharedLibs/x86_64/libsoundio.so.2.0.0 differ diff --git a/hsmodem/hsmodem.sh b/hsmodem/hsmodem.sh index feb50e9..158c136 100755 --- a/hsmodem/hsmodem.sh +++ b/hsmodem/hsmodem.sh @@ -13,26 +13,23 @@ echo echo "Install required packages and libraries. Press ENTER ..." read sudo apt-get update -sudo apt-get -y install libopus-dev libfftw3-dev libcodec2-dev libsndfile-dev libasound-dev mono-complete pavucontrol git g++ build-essential libsoundio-dev +sudo apt-get -y install libopus-dev libfftw3-dev libcodec2-dev libsndfile-dev libasound-dev mono-complete pavucontrol git g++ build-essential echo echo "Download hsmodem sources from github. Press ENTER ... " read git clone https://github.com/dj0abr/SSB_HighSpeed_Modem echo -echo "Compile the sources and build the executable program. Press ENTER ..." -read pwd cd SSB_HighSpeed_Modem/hsmodem -pwd -make -j 4 echo -echo "copy the shared libraries to it's final location. Press ENTER ..." +echo "copy GUI and the shared libraries to it's final location. Press ENTER ..." read echo copy oscardata.exe pwd cp ../oscardata/oscardata/bin/Release/oscardata.exe ../hsmodemLinux # now find the shared library directory # this is the directory where libopus.so is installed +# the program searches the shared libs in this directory LIBNAME=$(find /usr -name libopus.so | head -1) LIBFOLDER=$(dirname $LIBNAME) ARCHITECTURE=$(uname -m) @@ -40,18 +37,19 @@ echo copy shared libraries for $ARCHITECTURE to $LIBFOLDER echo if [ ${ARCHITECTURE} == 'x86_64' ]; then -sudo cp ./SharedLibs/$ARCHITECTURE/*.so $LIBFOLDER -echo "finished. Your project is in folder: ./SSB_HighSpeed_Modem/hsmodemLinux" -echo "you can copy this folder to any location" -echo "to run hsmodem: mono oscardata.exe" +sudo cp ./SharedLibs/$ARCHITECTURE/* $LIBFOLDER elif [ ${ARCHITECTURE} == 'aarch64' ]; then -sudo cp ./SharedLibs/$ARCHITECTURE/*.so $LIBFOLDER -echo "finished. Your project is in folder: ./SSB_HighSpeed_Modem/hsmodemLinux" -echo "you can copy this folder to any location" -echo "to run hsmodem: mono oscardata.exe" +sudo cp ./SharedLibs/$ARCHITECTURE/* $LIBFOLDER else echo ================================================================ echo error: no shared libs for $ARCHITECTURE . Install them manually. echo ================================================================ fi +echo "Compile the sources and build the executable program. Press ENTER ..." +read +pwd +make -j 4 +echo "finished. Your project is in folder: ./SSB_HighSpeed_Modem/hsmodemLinux" +echo "you can copy this folder to any location" +echo "to run hsmodem: mono oscardata.exe"