Hi All,

I wanted to try out "faust2jackconsole -osc" this morning on a MacBook Pro, and below are the diffs I used to make it compile (resulting script attached).  It seems there should be some centralized way to handle this for all the scripts with less distraction in the main script.  Perhaps an included script file?  A sed pass when installing?  I'm not sure what's best to do for this recurring issue.

- Julius

diff --git a/tools/faust2appls/faust2jackconsole b/tools/faust2appls/faust2jackconsole
index 6b9357a..a943aae 100755
--- a/tools/faust2appls/faust2jackconsole
+++ b/tools/faust2appls/faust2jackconsole
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 #-------------------------------------------------------------------
-# Set Faust include path
+# Set Faust library (architecture-file) path
 
 if [ -f $FAUST_LIB_PATH/music.lib ]
 then
@@ -16,6 +16,21 @@ else
   error "$0: Cannot find Faust library dir (usually /usr/local/lib/faust)"
 fi
 
+#-------------------------------------------------------------------
+# Set Faust include path
+
+if [ -f $FAUST_INC_PATH/gui/GUI.h ]
+then
+  FAUSTINC=$FAUST_INC_PATH
+elif [ -f /usr/local/include/faust/gui/GUI.h ]
+then
+  FAUSTINC=/usr/local/include/faust/
+elif [ -f /usr/include/faust/gui/GUI.h ]
+then
+  FAUSTINC=/usr/include/faust/
+else
+  error "$0: Cannot find Faust include dir (usually /usr/local/include/faust)"
+fi
 
 #-------------------------------------------------------------------
 # Analyze command arguments :
@@ -37,12 +52,11 @@ for p in $@; do
        fi
 done
 
-
 #-------------------------------------------------------------------
 # compile the *.dsp files
 #
 for f in $FILES; do
     faust -a jack-console.cpp $OPTIONS $f -o $f.cpp
-    g++  $f.cpp -ljack $OSCDEFS $HTTPDEFS -o  ${f%.dsp}
+    g++  $f.cpp -I$FAUSTINC -ljack $OSCDEFS $HTTPDEFS -o  ${f%.dsp}
     rm $f.cpp
 done


Julius O. Smith III <[email protected]>
Prof. of Music and Assoc. Prof. (by courtesy) of Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/

Attachment: faust2jackconsole
Description: Binary data

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Faudiostream-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel

Reply via email to