Hello,

I am new to faust and encounter two issues while trying to compile a DSP that plays WAV files on macOS using the faust2caqt command.
I am using Faust 2.79.3, installed via Homebrew.

1) Linking issue with LAME
I had a linking problem with LAME, which I resolved by manually adding:
Libs.private: -L/opt/homebrew/Cellar/lame/3.100/lib/ -lmp3lame
to:
/opt/homebrew/Cellar/libsndfile/1.2.2_1/lib/pkgconfig/sndfile.pc
However, I have the intuition that this is not a good practice...

2) In my dsp, I specify the paths to the WAV files relatively, but it seems that faust2caqt is missing a -p option in a mkdir command executed when embedding the WAV file in the .app bundle, below the corrected version (it is the last mkdir)

        for snd in $(cat $p-tmp.txt); do
            if [ -f $snd ]; then
                if [ ${snd:0:1} = "/" ]; then
                    echo "Warning: soundfile with absolute path is not copied !"
                else
                    # create destination path and possibly create directory
sfpath="$TMP/${f%.dsp}$EXT/Contents/Resources/$(dirname $snd)/"
                    if ! [ -d $sfpath ]; then
                        echo "Create $sfpath"
                        mkdir -p $sfpath


FYI, during compilation, I get a lot of error messages like the following.
However, despite these errors, the generated .app is functional.

ERROR: Cannot resolve rpath "@rpath/QtGui.framework/Versions/A/QtGui"
ERROR:  using QList("/hiddenpath/faust/faust.EvpiJ4/mydsp/lib")
ERROR: Cannot resolve rpath "@rpath/QtCore.framework/Versions/A/QtCore"
ERROR:  using QList("/hiddenpath/faust/faust.EvpiJ4/mydsp/lib")

Regards,
Sylvain.




_______________________________________________
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel

Reply via email to