Open Timvrakas opened 2 years ago
OK, I was able to fix the build by removing /Library/Frameworks/iio.framework
from my CMake link.txt files using brew install --debug
.
How can I set the formula up to do this properly?
It's these two files in particular:
build/gr-iio/lib/CMakeFiles/gnuradio-iio.dir/link.txt
build/gr-iio/python/iio/bindings/CMakeFiles/iio_python.dir/link.txt
For now I've added:
system "sed -i '' 's|/opt/homebrew/opt/libiio/Frameworks/iio.framework||g' gr-iio/lib/CMakeFiles/gnuradio-iio.dir/link.txt"
system "sed -i '' 's|/opt/homebrew/lib/ad9361.framework||g' gr-iio/lib/CMakeFiles/gnuradio-iio.dir/link.txt"
system "sed -i '' 's|/opt/homebrew/opt/libiio/Frameworks/iio.framework||g' gr-iio/python/iio/bindings/CMakeFiles/iio_python.dir/link.txt"
system "sed -i '' 's|/opt/homebrew/lib/ad9361.framework||g' gr-iio/python/iio/bindings/CMakeFiles/iio_python.dir/link.txt"
to the GNURadio formula
I've installed libiio and libad9361-iio using these formulae. Then I try building gnuradio 3.10.2.0 using the brew core formula, (with the "ENABLE_GR_IIO" flag added)
It dosen't seem to like libiio for some reason:
Any ideas?
EDIT: Narrowed it down: