tfcollins / homebrew-formulae

Some useful homebrew taps
2 stars 3 forks source link

Unknown CMake command "GR_SWIG_MAKE" #19

Closed codrutpopescu closed 1 year ago

codrutpopescu commented 2 years ago

macOS Monterey arm64 (M1) no Rosetta installed. I have installed HoRNDIS and then:

brew install --build-from-source tfcollins/homebrew-formulae/libiio brew install --build-from-source tfcollins/homebrew-formulae/libad9361-iio brew install --HEAD tfcollins/homebrew-formulae/gr-iio

The last statement has some errors:

Last 15 lines from /Users/codrut/Library/Logs/Homebrew/gr-iio/02.cmake:
-- Found BISON: /opt/homebrew/opt/bison/bin/bison (found suitable version "3.8.2", minimum required is "3.0.2") 
-- Found SWIG: /opt/homebrew/bin/swig (found version "4.0.2")  
-- Found PythonLibs: /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/libpython3.9.dylib (found version "3.9.13") 
CMake Error at swig/CMakeLists.txt:36 (include):
  include could not find requested file:

    GrSwig

CMake Error at swig/CMakeLists.txt:47 (GR_SWIG_MAKE):
  Unknown CMake command "GR_SWIG_MAKE".

-- Configuring incomplete, errors occurred!
See also "/tmp/gr-iio-20220618-27479-16fjrw6/build/CMakeFiles/CMakeOutput.log".

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

Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels.
tfcollins commented 2 years ago

gnuradio 3.10 already includes gr-iio. No need to install it again

codrutpopescu commented 2 years ago

Do you mean it's built into gnuradio itself? Because, if I cleanup everything and reinstall using:

brew install --build-from-source tfcollins/homebrew-formulae/libiio
brew install --build-from-source tfcollins/homebrew-formulae/libad9361-iio
brew install gnuradio

then it's not listed:

brew list|grep gr
graphite2

Thanks for clarification.

tfcollins commented 2 years ago

gr-iio is part of the gnuradio source tree since 3.10 . You may need to check the brew recipe to see what is turned on in the build. The gr-iio OOT repo does not support 3.10 since it's already in tree