brew update and retried your prior step?brew doctor, fixed as many issues as possible and retried your prior step?After installing gnuradio, the gnuradio-companion executable is no longer installed. gnuradio-config-info is installed (and confirmed to be installed when uninstalling this package).
$ brew config
HOMEBREW_VERSION: 1.1.8
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: e59ada508727f11464595893783beb914c26f60b
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 26f8cf0800081a07b855fda8e31a63f8b2ec2e70
Core tap last commit: 8 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.11.0 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_25, 1.7.0_75
macOS: 10.12.2-x86_64
Xcode: 8.2.1
CLT: 8.2.0.0.1.1480973914
X11: 2.7.9 => /opt/X11
```
$ brew doctor
Your system is ready to brew.
### brew gist-logs gnuradio
$ brew gist-logs gnuradio
Error: No logs.
```
Yup, this is due to the retirement of Qt 4 from Homebrew.
See https://github.com/gnuradio/gnuradio/issues/1090, which will eventually rectify the situation.
Thanks for the heads up. Glad there's a good reason and not someone just forgetting to compile with a flag that builds the GUI.
@axman6 hehe yeah. If you need an immediate solution: https://github.com/cartr/homebrew-qt4 + the old formula will get you back up and running.
@ilovezfs - can you just clarify a little?
I did:
brew tap cartr/qt4
brew tap-pin cartr/qt4
brew install qt
(which worked fine). But then if I installed gnuradio again it did not include gnuradio-companion. What did you mean by "the old formula"?
Cheers Hugh
git --no-pager show 4004e52cd4976e5753d540ad26979e96cf364e3e^:Formula/gnuradio.rb
OK - so I have the new formula. But when I try to run it, it does this:
Hughs-MacBook-Pro:homebrew-core hugh$ brew install ./gnuradio.rb
Error: Operation already in progress for qt
Another active Homebrew process is already using qt.
Please wait for it to finish or terminate it to continue.
If I delete all the lock files in /usr/local/var/homebrew/locks, it still happens. There is no other brew process running. Is there some other dependency that is causing a conflict maybe?
I'll answer my own question. I'm not sure if this is what I should do, but I changed the line in gnuradio.rb that said
depends_on "qt"
to
depends_on "cartr/homebrew-qt4/qt"
And then it works... Thanks to @ilovezfs ...
.... but .... I still have issues, that appear to be related to python bindings. When I try to run gnuradio-companion, it complains about swig (Sigh...):
Traceback (most recent call last):
File "/Users/hugh/qpsk_tx_uhd.py", line 20, in <module>
from gnuradio import blocks
File "/usr/local/lib/python2.7/site-packages/gnuradio/blocks/__init__.py", line 32, in <module>
from blocks_swig import *
File "/usr/local/lib/python2.7/site-packages/gnuradio/blocks/blocks_swig.py", line 22, in <module>
from blocks_swig0 import *
File "/usr/local/lib/python2.7/site-packages/gnuradio/blocks/blocks_swig0.py", line 21, in <module>
_blocks_swig0 = swig_import_helper()
File "/usr/local/lib/python2.7/site-packages/gnuradio/blocks/blocks_swig0.py", line 20, in swig_import_helper
return importlib.import_module('_blocks_swig0')
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named _blocks_swig0
Back to the drawing board. It appears to be something to do with boost:
ImportError: dlopen(./_blocks_swig0.so, 2): Symbol not found: __ZN5boost11this_thread5hiden11sleep_untilERK8timespec
Referenced from: /usr/local/Cellar/gnuradio/3.7.9.1_1/lib/libgnuradio-blocks.3.7.9.1.dylib
Expected in: /usr/local/opt/boost/lib/libboost_thread-mt.dylib
in /usr/local/Cellar/gnuradio/3.7.9.1_1/lib/libgnuradio-blocks.3.7.9.1.dylib
Could you (package maintainers) please add a notice (e.g. under "Caveats") to the current gnuradio Formula that GRC is not included, as I just wasted some time to figure this out and to me the Formula is pretty useless. Thanks.
Hopefully, the gnuradio-for-mac-without-macports may work for you
https://github.com/cfriedt/gnuradio-for-mac-without-macports
Most helpful comment
Hopefully, the gnuradio-for-mac-without-macports may work for you
https://github.com/cfriedt/gnuradio-for-mac-without-macports