You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
ld: can't map file, errno=22 file '/Library/Frameworks/iio.framework' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [gr-iio/lib/libgnuradio-iio.3.10.2.0.dylib] Error 1
make[1]: *** [gr-iio/lib/CMakeFiles/gnuradio-iio.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
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"
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:
The text was updated successfully, but these errors were encountered: