From e1bcfc93b2573a2a966cd3b8a2f172dc6bd6e33b Mon Sep 17 00:00:00 2001 From: Andreas Butti Date: Sun, 3 Feb 2019 12:21:22 +0100 Subject: [PATCH] Windoes build working with portaudio --- readme/WindowsBuild.md | 12 ++++++++++-- windows-setup/build-sox.sh | 2 +- windows-setup/sox-pc.sh | 15 +++++++++++---- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/readme/WindowsBuild.md b/readme/WindowsBuild.md index 259bb766..10faa4bc 100644 --- a/readme/WindowsBuild.md +++ b/readme/WindowsBuild.md @@ -52,8 +52,16 @@ pacman -S mingw-w64-x86_64-gtk3 ``` ### SOX / PortAudio -Build/Install portaudio with windows-setup/build-portaudio.sh -TODO SOX +Build/Install portaudio with +```bash +windows-setup/build-portaudio.sh +``` + +Build/Install sox with +```bash +windows-setup/build-sox.sh +``` +**Read the comments in the .sh file - there are currently manual steps required! Help is welcome to automate it!** ## Get sources and build diff --git a/windows-setup/build-sox.sh b/windows-setup/build-sox.sh index bf324b62..c9be3b67 100644 --- a/windows-setup/build-sox.sh +++ b/windows-setup/build-sox.sh @@ -3,7 +3,7 @@ # go to script directory cd "${0%/*}" -# Generation does not work... +# Generation does not work... (really buggy with CMake, but does not work at all with automake on MingW) # So do this manually... ./sox-pc.sh > /mingw64/lib/pkgconfig/sox.pc diff --git a/windows-setup/sox-pc.sh b/windows-setup/sox-pc.sh index c2464ece..7db18490 100644 --- a/windows-setup/sox-pc.sh +++ b/windows-setup/sox-pc.sh @@ -1,15 +1,22 @@ echo "prefix=" echo "exec_prefix=" -echo "libdir=" -incdir=`pwd`/sox-code/src +libdir1=`pwd`/sox-code/build/src +echo "libdir1=$libdir1" + +libdir2=`pwd`/sox-code/build/libgsm +echo "libdir2=$libdir2" +libdir3=`pwd`/sox-code/build/lpc10 +echo "libdir3=$libdir3" + +incdir=`pwd`/sox-code/src echo "includedir=$incdir" echo "" echo "Name: SoX" echo "Description: Audio file format and effects library" -echo "Version: " +echo "Version: 14.4.2" echo "URL: http://sox.sourceforge.net" -echo "Libs: -L${libdir} -lsox" +echo "Libs: -L\${libdir1} -L\${libdir2} -L\${libdir3} -llibsox -llpc10 -lgsm -lgomp" echo "Libs.private: " echo "Cflags: -I\${includedir}"