pothosware / homebrew-pothos

Homebrew formulas for Pothos and SoapySDR
https://github.com/pothosware/homebrew-pothos/wiki
MIT License
62 stars 17 forks source link

brew install soapy audio fails #56

Open warnes opened 2 years ago

warnes commented 2 years ago

On: macOS Monterey 12.3

 ~ brew install soapyaudio |& tee brew.log
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
==> Downloading https://github.com/pothosware/SoapyAudio/archive/soapy-audio-0.1.1.tar.gz
Warning: Use rtaudio instead of deprecated rt-audio
Already downloaded: /Users/warnes/Library/Caches/Homebrew/downloads/33b6e4c897e50e45a8124e93af8f1aa4f4e6d47ae4b29c1733af55c9660ab32d--SoapyAudio-soapy-audio-0.1.1.tar.gz
==> Installing soapyaudio from pothosware/pothos
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
==> cmake .. -DUSE_HAMLIB=ON
==> make install
Last 15 lines from /Users/warnes/Library/Logs/Homebrew/soapyaudio/02.make:
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -DUSE_HAMLIB -D__MACOSX_CORE__ -DaudioSupport_EXPORTS -I/tmp/soapyaudio-20220316-26760-1egbm36/SoapyAudio-soapy-audio-0.1.1 -I/usr/local/Cellar/rtaudio/5.2.0/include/rtaudio -std=c++11 -Wc++11-extensions -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -pthread -Wall -Wextra -Wnon-virtual-dtor -MD -MT CMakeFiles/audioSupport.dir/Streaming.cpp.o -MF CMakeFiles/audioSupport.dir/Streaming.cpp.o.d -o CMakeFiles/audioSupport.dir/Streaming.cpp.o -c /tmp/soapyaudio-20220316-26760-1egbm36/SoapyAudio-soapy-audio-0.1.1/Streaming.cpp
[ 83%] Building CXX object CMakeFiles/audioSupport.dir/Version.cpp.o
[ 83%] Building CXX object CMakeFiles/audioSupport.dir/Settings.cpp.o
[ 83%] Building CXX object CMakeFiles/audioSupport.dir/RigThread.cpp.o
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -DUSE_HAMLIB -D__MACOSX_CORE__ -DaudioSupport_EXPORTS -I/tmp/soapyaudio-20220316-26760-1egbm36/SoapyAudio-soapy-audio-0.1.1 -I/usr/local/Cellar/rtaudio/5.2.0/include/rtaudio -std=c++11 -Wc++11-extensions -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -pthread -Wall -Wextra -Wnon-virtual-dtor -MD -MT CMakeFiles/audioSupport.dir/Settings.cpp.o -MF CMakeFiles/audioSupport.dir/Settings.cpp.o.d -o CMakeFiles/audioSupport.dir/Settings.cpp.o -c /tmp/soapyaudio-20220316-26760-1egbm36/SoapyAudio-soapy-audio-0.1.1/Settings.cpp
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -DUSE_HAMLIB -D__MACOSX_CORE__ -DaudioSupport_EXPORTS -I/tmp/soapyaudio-20220316-26760-1egbm36/SoapyAudio-soapy-audio-0.1.1 -I/usr/local/Cellar/rtaudio/5.2.0/include/rtaudio -std=c++11 -Wc++11-extensions -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -pthread -Wall -Wextra -Wnon-virtual-dtor -MD -MT CMakeFiles/audioSupport.dir/Version.cpp.o -MF CMakeFiles/audioSupport.dir/Version.cpp.o.d -o CMakeFiles/audioSupport.dir/Version.cpp.o -c /tmp/soapyaudio-20220316-26760-1egbm36/SoapyAudio-soapy-audio-0.1.1/build/Version.cpp
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -DUSE_HAMLIB -D__MACOSX_CORE__ -DaudioSupport_EXPORTS -I/tmp/soapyaudio-20220316-26760-1egbm36/SoapyAudio-soapy-audio-0.1.1 -I/usr/local/Cellar/rtaudio/5.2.0/include/rtaudio -std=c++11 -Wc++11-extensions -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -pthread -Wall -Wextra -Wnon-virtual-dtor -MD -MT CMakeFiles/audioSupport.dir/RigThread.cpp.o -MF CMakeFiles/audioSupport.dir/RigThread.cpp.o.d -o CMakeFiles/audioSupport.dir/RigThread.cpp.o -c /tmp/soapyaudio-20220316-26760-1egbm36/SoapyAudio-soapy-audio-0.1.1/RigThread.cpp
/tmp/soapyaudio-20220316-26760-1egbm36/SoapyAudio-soapy-audio-0.1.1/RigThread.cpp:41:56: error: use of undeclared identifier 'FILPATHLEN'
        strncpy(rig->state.rigport.pathname, rigFile.c_str(), FILPATHLEN - 1);
                                                              ^
1 error generated.
make[2]: *** [CMakeFiles/audioSupport.dir/RigThread.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/audioSupport.dir/all] Error 2
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/pothosware/homebrew-pothos/issues
guruofquality commented 2 years ago

Can you confirm installing with --head works? I will tag a new release with the fix

warnes commented 2 years ago

Yes, it installs successfully with --head:

brew install soapyaudio --head
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
==> Cloning https://github.com/pothosware/SoapyAudio.git
Cloning into '/Users/warnes/Library/Caches/Homebrew/soapyaudio--git'...
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
==> Installing soapyaudio from pothosware/pothos
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
==> cmake .. -DUSE_HAMLIB=ON
==> make install
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
Warning: Use rtaudio instead of deprecated rt-audio
🍺  /usr/local/Cellar/soapyaudio/HEAD-79129c9: 6 files, 106.3KB, built in 14 seconds
==> Running `brew cleanup soapyaudio`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /Users/warnes/Library/Caches/Homebrew/soapyaudio--0.1.1.tar.gz... (91.7KB)