audiofilter / homebrew-spuc

Homebrew formula for spuce
1 stars 2 forks source link

Issue on install pothoscomms #3

Open TranquilTravis opened 7 years ago

TranquilTravis commented 7 years ago

brew install pothoscomms
==> Installing pothoscomms from pothosware/pothos ==> Installing dependencies for pothosware/pothos/pothoscomms: audiofilter/spuc/spuce ==> Installing pothosware/pothos/pothoscomms dependency: audiofilter/spuc/s ==> Downloading https://github.com/audiofilter/spuce/archive/0.4.3.tar.gz Already downloaded: /Users/tranquilcity/Library/Caches/Homebrew/spuce-0.4.3.tar.gz ==> cmake .. -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5 -DCMAKE_C_FLAGS_RELEASE=-DND ==> make install Last 15 lines from /Users/tranquilcity/Library/Logs/Homebrew/spuce/02.make: [ 21%] Building CXX object spuce/CMakeFiles/spuce.dir/filters/elliptic_allpass.cpp.o cd /tmp/spuce-20170816-11006-tqib28/spuce-0.4.3/build/spuce && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -I/tmp/spuce-20170816-11006-tqib28/spuce-0.4.3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.12 -fPIC -std=c++11 -std=gnu++11 -o CMakeFiles/spuce.dir/filters/elliptic_allpass.cpp.o -c /tmp/spuce-20170816-11006-tqib28/spuce-0.4.3/spuce/filters/elliptic_allpass.cpp [ 22%] Building CXX object spuce/CMakeFiles/spuce.dir/filters/shelf_allpass1.cpp.o cd /tmp/spuce-20170816-11006-tqib28/spuce-0.4.3/build/spuce && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -I/tmp/spuce-20170816-11006-tqib28/spuce-0.4.3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.12 -fPIC -std=c++11 -std=gnu++11 -o CMakeFiles/spuce.dir/filters/shelf_allpass1.cpp.o -c /tmp/spuce-20170816-11006-tqib28/spuce-0.4.3/spuce/filters/shelf_allpass1.cpp [ 23%] Building CXX object spuce/CMakeFiles/spuce.dir/filters/farrow_upsampler.cpp.o cd /tmp/spuce-20170816-11006-tqib28/spuce-0.4.3/build/spuce && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -I/tmp/spuce-20170816-11006-tqib28/spuce-0.4.3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.12 -fPIC -std=c++11 -std=gnu++11 -o CMakeFiles/spuce.dir/filters/farrow_upsampler.cpp.o -c /tmp/spuce-20170816-11006-tqib28/spuce-0.4.3/spuce/filters/farrow_upsampler.cpp [ 24%] Building CXX object spuce/CMakeFiles/spuce.dir/filters/calculate_decimator_taps.cpp.o cd /tmp/spuce-20170816-11006-tqib28/spuce-0.4.3/build/spuce && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -I/tmp/spuce-20170816-11006-tqib28/spuce-0.4.3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.12 -fPIC -std=c++11 -std=gnu++11 -o CMakeFiles/spuce.dir/filters/calculate_decimator_taps.cpp.o -c /tmp/spuce-20170816-11006-tqib28/spuce-0.4.3/spuce/filters/calculate_decimator_taps.cpp [ 24%] Linking CXX static library libspuce.a cd /tmp/spuce-20170816-11006-tqib28/spuce-0.4.3/build/spuce && /usr/local/Cellar/cmake/3.9.1/bin/cmake -P CMakeFiles/spuce.dir/cmake_clean_target.cmake cd /tmp/spuce-20170816-11006-tqib28/spuce-0.4.3/build/spuce && /usr/local/Cellar/cmake/3.9.1/bin/cmake -E cmake_link_script CMakeFiles/spuce.dir/link.txt --verbose=1 /usr/bin/ar qc libspuce.a CMakeFiles/spuce.dir/filters/butterworth_iir.cpp.o CMakeFiles/spuce.dir/filters/chebyshev_iir.cpp.o CMakeFiles/spuce.dir/filters/chebyshev2_iir.cpp.o CMakeFiles/spuce.dir/filters/elliptic_iir.cpp.o CMakeFiles/spuce.dir/filters/find_roots.cpp.o CMakeFiles/spuce.dir/filters/fir_coeff.cpp.o CMakeFiles/spuce.dir/filters/iir_coeff.cpp.o CMakeFiles/spuce.dir/filters/design_iir.cpp.o CMakeFiles/spuce.dir/filters/design_fir.cpp.o CMakeFiles/spuce.dir/filters/gaussian_fir.cpp.o CMakeFiles/spuce.dir/filters/butterworth_fir.cpp.o CMakeFiles/spuce.dir/filters/raised_cosine_imp.cpp.o CMakeFiles/spuce.dir/filters/root_raised_cosine_imp.cpp.o CMakeFiles/spuce.dir/filters/remez_estimate.cpp.o CMakeFiles/spuce.dir/filters/remez_fir.cpp.o CMakeFiles/spuce.dir/filters/sinc_fir.cpp.o CMakeFiles/spuce.dir/filters/sinc_helper.cpp.o CMakeFiles/spuce.dir/filters/create_remez_lpfir.cpp.o CMakeFiles/spuce.dir/filters/fir_inv_dft.cpp.o CMakeFiles/spuce.dir/filters/transform_fir.cpp.o CMakeFiles/spuce.dir/filters/window.cpp.o CMakeFiles/spuce.dir/filters/design_window.cpp.o CMakeFiles/spuce.dir/filters/butterworth_allpass.cpp.o CMakeFiles/spuce.dir/filters/elliptic_allpass.cpp.o CMakeFiles/spuce.dir/filters/shelf_allpass1.cpp.o CMakeFiles/spuce.dir/filters/farrow_upsampler.cpp.o CMakeFiles/spuce.dir/filters/calculate_decimator_taps.cpp.o /usr/bin/ranlib libspuce.a [ 24%] Built target spuce make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): https://github.com/audiofilter/homebrew-spuc/issues

These open issues may also help: spuce compilation fails on missing Python.h https://github.com/audiofilter/homebrew-spuc/issues/2

muellermartin commented 7 years ago

I do have the same issue and the error messages are not helpful at all. Is there a solution, yet?

Edit: I was able to circumvent this issue by disabling the testing. This was done by adding -DBUILD_TESTING=OFF to the CMake flags in the spuce.rb formula file. This disables Python so it is definitively related to how it is included in the project. Edit2: I initially stated to edit pothoscomms.rb, but it is of course spuce.rb.

TranquilTravis commented 7 years ago

Sorry, no. I end up reinstalled my mac because I should do it long ago. And problem solved...

AussieSusan commented 7 years ago

I'm having the same problem. However I'm not sure that "reinstalled my mac" means, nor do I know how to edit the CMake flags (and I'm doing this to let me use Python in the long run so I'm not sure if the above comment means I will not be able to). I do note that the error message includes (after the lines listed above) a link to this issue. Can someone please provide "idiot proof" instructions as to how to proceed. (My ultimate goal is to allow Python to access my SDRPlay RSP2. I have the driver installed and the include and library files so can access the device from C. I understand that I need the Soapy layer for the Python bindings; hence why I'm following the instructions at "https://github.com/pothosware/homebrew-pothos/wiki".)

muellermartin commented 7 years ago

Hey @AussieSusan, here is a short guide on how I installed photoscomms with working spuce dependency: Basically just follow the guide which you already linked, but before running brew install pothoscomms first run brew fetch audiofilter/spuc/spuce (should not be necessary as you likely already have it because of this issue, but just in case...) and then edit the Formula file (should be under /usr/local/Homebrew/Library/Taps/audiofilter/homebrew-spuc/spuce.rb) with your favorite editor (shortcut: use brew edit pothoscomms).

In line 12 there sould be this:

system "cmake", "..", "-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5", *std_cmake_args

There add the flag -DBUILD_TESTING=OFF like this:

system "cmake", "..", "-DBUILD_TESTING=OFF", "-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5", *std_cmake_args

and save the file. Then proceed like stated in the mentioned guide with brew install pothoscomms.

Good luck and have fun with Python and your SDRPlay!

Edit: I issued a Pull Request to fix this issue. See #4.