ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | LICENSE

Commit: 387c8147b0570244c1afb830638031bdb258cb1e
Parent: bb7ae0cfd1d153387100ca8ee8233f7fa95fbc76
Author: Randy Palamar
Date:   Thu, 10 Oct 2024 10:40:37 -0600

build: don't fail because libmat/libmex are not available

Diffstat:
Mbuild.sh | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/build.sh b/build.sh @@ -14,12 +14,14 @@ main=main_generic.c case $(uname -sm) in MINGW64*) ldflags="$ldflags -lgdi32 -lwinmm" - [ ! ${NO_MATLAB} ] && [ -d "C:/Program Files/MATLAB/R2022a/extern/lib/win64/microsoft" ] && - libcflags="$libcflags -DMATLAB_CONSOLE" + if [ ! ${NO_MATLAB} ] && [ -d "C:/Program Files/MATLAB/R2022a/extern/lib/win64/microsoft" ]; then + libcflags="$libcflags -DMATLAB_CONSOLE" + extra_ldflags="-llibmat -llibmex" + fi libname="beamformer.dll" ${cc} $libcflags helpers/ogl_beamformer_lib.c -o helpers/ogl_beamformer_lib.dll \ -L'C:/Program Files/MATLAB/R2022a/extern/lib/win64/microsoft' \ - -llibmat -llibmex + $extra_ldflags ;; Linux*) cflags="$cflags -D_DEFAULT_SOURCE"