فهرست منبع

Fixing rnnoise build on mac. Correct plugin extension configuration for mac

Luciano Dato 7 سال پیش
والد
کامیت
577a6e075e
3فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 1 1
      lv2ttl/manifest.ttl.in
  2. 2 0
      src/sdenoise.c
  3. 3 2
      static_rnnoise.sh

+ 1 - 1
lv2ttl/manifest.ttl.in

@@ -3,5 +3,5 @@
 
 <https://github.com/lucianodato/speech-denoiser>
   a lv2:Plugin;
-  lv2:binary <sdenoise.so> ;
+  lv2:binary <sdenoise@LIB_EXT@> ;
   rdfs:seeAlso <sdenoise.ttl> .

+ 2 - 0
src/sdenoise.c

@@ -39,7 +39,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/
 
 #define FRAME_SIZE 480 //Frame default size (For 48 kHz sampling rate)
 
+#ifndef M_PI
 #define M_PI 3.14159265358979323846f
+#endif
 
 ///---------------------------------------------------------------------
 

+ 3 - 2
static_rnnoise.sh

@@ -5,8 +5,9 @@ fi
 git clone https://github.com/xiph/rnnoise.git
 cd rnnoise/
 ./autogen.sh
-CFLAGS="-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL" \
+CFLAGS="-fvisibility=hidden -fPIC " \ 
 	./configure \
   --disable-examples --disable-doc \
 	--disable-shared --enable-static
-make -j2
+make -j2
+#-Wl,--exclude-libs,ALL