metacollin/homebrew-gnuradio

problem building on OSX 10.10.2

Opened this issue · 6 comments

I'm trying to install gnuradio from this repo, using homebrew. I'm on OSX 10.10.2.

The install keeps failing and saying that my sip and pyqt modules ahave mismatched API versions.

I've done some searching and most things seem to indicate that I should remove sip as well as pyqt, then install sip, and build pyqt against that.

I've tried this approach several times using brew uninstall sip and brew uninstall pyqt then reinstalling them and it doesn't seem to work.

I have no idea what to look for next....is this an issue with this repo or one of my brew formulae?

==> python setup.py install --prefix=/usr/local/Cellar/gnuradio/HEAD/libexec
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py", line 251, in map
    return self.map_async(func, iterable, chunksize).get()
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py", line 558, in get
    raise self._value
RuntimeError: the sip module implements API v11.0 but the PyQt4.QtCore module requires API v11.1

@davidcranor Take a look at the new README.md and run brew update, I've reworked the entire formula and dependency handling. I suspect you will need to remove and reinstall all the gnuradio dependencies. Fortunately, they all have bottles now so it shouldn't take too long. :).

It looks like your sip install isn't up to date.

@davidcranor Let me know if that solved the issue or not. Eventually I am going to need to close these old issues, so if I haven't heard anything after a couple more weeks, I'll assume it worked and close the issue. Open a new one if that is not the case of course! Sorry.

Argh, sorry I dropped this thread! I ragequit in the middle of trying to
line up all the versions and dependencies. Tried the robotastic one as
well.

I uninstalled and reinstalled your repo, and it worked! Still can't do
anything as I am now trying to install osmosdr blocks for gnu radio from
here:

https://github.com/robotastic/homebrew-hackrf

and it's erroring out. Is this something to do with the difference in the
way that yours builds from his, since I am trying to build with your
gnuradio install?

Thanks!
David

/usr/local/share/gnuradio/grc/blocks> brew install gr-osmosdr -v --HEAD

==> Installing gr-osmosdr from robotastic/homebrew-hackrf

/usr/bin/env python -c import Cheetah

/usr/bin/env python -c import lxml

/usr/bin/env python -c import matplotlib

/usr/bin/env python -c import numpy

/usr/bin/env python -c import scipy

/usr/bin/env python -c import docutils

/usr/bin/env python -c import sphinx

/usr/bin/env python -c import Cheetah

/usr/bin/env python -c import lxml

/usr/bin/env python -c import matplotlib

/usr/bin/env python -c import numpy

/usr/bin/env python -c import scipy

/usr/bin/env python -c import docutils

/usr/bin/env python -c import sphinx

==> Cloning git://git.osmocom.org/gr-osmosdr

git --git-dir /Library/Caches/Homebrew/gr-osmosdr--git/.git status -s

Updating /Library/Caches/Homebrew/gr-osmosdr--git

git config remote.origin.url git://git.osmocom.org/gr-osmosdr

git config remote.origin.fetch +refs/heads/gr3.6:refs/remotes/origin/gr3.6

git fetch origin

git checkout -f gr3.6 --

Already on 'gr3.6'

git reset --hard origin/gr3.6

HEAD is now at c7cb045 file: follow-up for commit 24d54c36

==> Checking out branch gr3.6

==> cmake .. -DCMAKE_C_FLAGS_RELEASE= -DCMAKE_CXX_FLAGS_RELEASE=
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/gr-osmosdr/HEAD
-DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
-DPYTHON_LIBRARY=/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/

-- The CXX compiler identification is AppleClang 6.1.0.6020049

-- The C compiler identification is AppleClang 6.1.0.6020049

-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/clang++

-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/clang++ --
works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang

-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Detecting C compile features

-- Detecting C compile features - done

-- Found Git: /usr/local/bin/git (found version "1.8.4")

-- Extracting version information from git describe...

-- Configuring Boost C++ Libraries...

-- Boost version: 1.58.0

-- Found the following Boost libraries:

-- thread

-- system

-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28")

-- checking for module 'gruel'

-- package 'gruel' not found

-- Could NOT find GRUEL (missing: GRUEL_LIBRARIES GRUEL_INCLUDE_DIRS)

-- checking for module 'gnuradio-core'

-- package 'gnuradio-core' not found

-- Could NOT find GNURADIO_CORE (missing: GNURADIO_CORE_LIBRARIES
GNURADIO_CORE_INCLUDE_DIRS)

-- checking for module 'gnuradio-iqbalance'

-- package 'gnuradio-iqbalance' not found

-- Could NOT find GNURADIO_IQBALANCE (missing:
GNURADIO_IQBALANCE_LIBRARIES GNURADIO_IQBALANCE_INCLUDE_DIRS)

-- checking for module 'uhd'

-- package 'uhd' not found

-- Could NOT find UHD (missing: UHD_LIBRARIES UHD_INCLUDE_DIRS)

-- checking for module 'gnuradio-uhd'

-- package 'gnuradio-uhd' not found

-- gnuradio-uhd not found.

-- Could NOT find GNURADIO_UHD (missing: GNURADIO_UHD_LIBRARIES
GNURADIO_UHD_INCLUDE_DIRS)

-- checking for module 'gnuradio-fcd'

-- found gnuradio-fcd, version 3.7.5.1

-- gnuradio-fcd not found.

-- Could NOT find GNURADIO_FCD (missing: GNURADIO_FCD_INCLUDE_DIRS)

-- checking for module 'gnuradio-fcdproplus'

-- package 'gnuradio-fcdproplus' not found

-- gnuradio-fcdproplus not found.

-- Could NOT find GNURADIO_FCDPP (missing: GNURADIO_FCDPP_LIBRARIES
GNURADIO_FCDPP_INCLUDE_DIRS)

-- checking for module 'libosmosdr'

-- package 'libosmosdr' not found

-- libosmosdr not found.

-- checking for module 'librtlsdr'

-- found librtlsdr, version 0.5.3.10-8b4d

-- Found librtlsdr: /usr/local/include, /usr/local/lib/librtlsdr.dylib

-- checking for module 'libmirisdr'

-- package 'libmirisdr' not found

-- libmirisdr not found.

-- checking for module 'libhackrf'

-- package 'libhackrf' not found

-- Found LIBHACKRF: /usr/local/lib/libhackrf.dylib

-- checking for module 'libairspy'

-- package 'libairspy' not found

-- Could NOT find LIBAIRSPY (missing: LIBAIRSPY_LIBRARIES
LIBAIRSPY_INCLUDE_DIRS)

-- checking for module 'libbladeRF'

-- package 'libbladeRF' not found

-- libbladeRF not found.

-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

CMake Error at CMakeLists.txt:166 (message):

Gruel required to build gr-osmosdr

-- Configuring incomplete, errors occurred!

See also
"/tmp/gr-osmosdr20150518-42911-11u24dn/build/CMakeFiles/CMakeOutput.log".

==> Formula

Tap: robotastic/homebrew-hackrf

Path: /usr/local/Library/Taps/robotastic/homebrew-hackrf/gr-osmosdr.rb

==> Configuration

HOMEBREW_VERSION: 0.9.5

ORIGIN: https://github.com/Homebrew/homebrew

HEAD: 6f815cc180167b2380984d4b942183bc9777aa7b

Last commit: 4 hours ago

HOMEBREW_PREFIX: /usr/local

HOMEBREW_CELLAR: /usr/local/Cellar

CPU: quad-core 64-bit haswell

OS X: 10.10.3-x86_64

Xcode: 6.3.1

CLT: 6.3.1.0.1.1429149539

Clang: 6.1 build 602

X11: 2.7.7 => /opt/X11

System Ruby: 2.0.0-p481

Perl: /usr/bin/perl

Python: /usr/local/bin/python =>
/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/bin/python2.7

Ruby: /usr/bin/ruby

Java: 1.7.0_67

==> ENV

HOMEBREW_CC: clang

HOMEBREW_CXX: clang++

MAKEFLAGS: -j4

CMAKE_PREFIX_PATH:
/usr/local/opt/gettext:/usr/local/opt/libffi:/usr/local/opt/icu4c:/usr/local

CMAKE_INCLUDE_PATH:
/usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers

CMAKE_LIBRARY_PATH:
/opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries

CMAKE_FRAMEWORK_PATH:
/usr/local/opt/qt/Frameworks:/usr/local/opt/python/Frameworks

PKG_CONFIG_PATH:
/usr/local/opt/cppunit/lib/pkgconfig:/usr/local/opt/gsl/lib/pkgconfig:/usr/local/opt/fftw/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/pygobject/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/gobject-introspection/lib/pkgconfig:/usr/local/opt/gdk-pixbuf/lib/pkgconfig:/usr/local/opt/atk/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/fontconfig/lib/pkgconfig:/usr/local/opt/pixman/lib/pkgconfig:/usr/local/opt/cairo/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/harfbuzz/lib/pkgconfig:/usr/local/opt/pango/lib/pkgconfig:/usr/local/opt/gtk+/lib/pkgconfig:/usr/local/opt/py2cairo/lib/pkgconfig:/usr/local/opt/pygtk/lib/pkgconfig:/usr/local/opt/sdl/lib/pkgconfig:/usr/local/opt/libusb/lib/pkgconfig:/usr/local/opt/orc/lib/pkgconfig:/usr/local/opt/qt/lib/pkgconfig:/usr/local/opt/gnuradio/lib/pkgconfig:/usr/local/opt/rtlsdr/lib/pkgconfig

PKG_CONFIG_LIBDIR:
/usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.10:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig

ACLOCAL_PATH:
/usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal

PATH:
/usr/local/opt/python/bin:/usr/local/opt/python/bin:/usr/local/opt/python/bin:/usr/local/opt/python/bin:/usr/local/Library/ENV/4.3:/usr/local/opt/cmake/bin:/usr/local/opt/cppunit/bin:/usr/local/opt/gsl/bin:/usr/local/opt/fftw/bin:/usr/local/opt/sip/bin:/usr/local/opt/gettext/bin:/usr/local/opt/glib/bin:/usr/local/opt/pygobject/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/libpng/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/gobject-introspection/bin:/usr/local/opt/gdk-pixbuf/bin:/usr/local/opt/freetype/bin:/usr/local/opt/fontconfig/bin:/usr/local/opt/cairo/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/harfbuzz/bin:/usr/local/opt/pango/bin:/usr/local/opt/gtk+/bin:/usr/local/opt/pygtk/bin:/usr/local/opt/sdl/bin:/usr/local/opt/orc/bin:/usr/local/opt/qt/bin:/usr/local/opt/pyqt/bin:/usr/local/opt/sphinx/bin:/usr/local/opt/wxmac/bin:/usr/local/opt/gnuradio/bin:/usr/local/opt/autoconf/bin:/usr/local/opt/rtlsdr/bin:/usr/local/opt/python/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: gr-osmosdr HEAD did not build

Logs:

 /Users/davidcranor/Library/Logs/Homebrew/gr-osmosdr/01.cmake

 /Users/davidcranor/Library/Logs/Homebrew/gr-osmosdr/01.cmake.cc

On Sun, May 17, 2015 at 6:35 PM, metacollin notifications@github.com
wrote:

@davidcranor https://github.com/davidcranor Let me know if that solved
the issue or not. Eventually I am going to need to close these old issues,
so if I haven't heard anything after a couple more weeks, I'll assume it
worked and close the issue. Open a new one if that is not the case of
course! Sorry.


Reply to this email directly or view it on GitHub
#32 (comment)
.

No, much simplier than that. He is building gnuradio 3.6.5. That's 2 years out of date, the current stable release is 3.7.7, and my formula builds 3.7.5 (and will be updated to 3.7.7 shortly). From the logs, it is looking for Gruel, which hasn't existed in Gnuradio for over a year, it was removed when 3.7.0 came out.

Basically, that tap seems severely outdated. It's also just a collection of other people's taps, very old ones. Heck, librtlsdr/rtlsdr is in the main homebrew repository now, there is no need to have it in a tap anymore. The documentation is also incorrect as homebrew made significant changes to how python was handled since it was written (I mean to say, there are no errors, it just became outdated). I don't know what else to say, except that I would probably give up on using that tap entirely, its too old to be useful now. Unless you can bug the maintainer enough to update it ;).

I would recommend using @chleggett's excellent gqrx tap, https://github.com/chleggett/homebrew-gqrx . I actively try to maintain compatibility with it, and it uses this tap's gnuradio as a dependency. I just checked, and it works without issue with the latest version of my gnuradio tap. It also builds gr-osmosdr. Between his tap and my tap, that gives you almost all of the hack-rf tap right there, you just need gr-baz and the hackrf bit.

I won't make any promises, but Mike Osman is awesome and so is his HackRF, and I wasn't aware there was no good option for working with it on OS X, so I'll see if I can create my own HackRF tap. I might even pull it off tonight, but again, no promises. I'll post again and let you know if it happens :). I know gr-baz is trivial, hackrf is probably...not hehe.

Thanks for the mention and for looking into HackRF (if you do get a chance to).

What do you think about us submitting pull requests for Gnuradio and Gqrx into the main homebrew repository?

Thanks for the support, that would be awesome! I'm working with RTL-SDR,
but have a friend who wanted to work with HackRF on his mac and gave up...

I removed all dependencies for everything, and rebuilt gnuradio clean. The
companion launched ok. But then after I installed gqrx according to
@chleggett's instructions, the companion errors out when I try to launch
it. Check out the terminal log I attached - you can see the end of the
gnuradio install, run it ok and quit, then I install the other things, then
I try to run it a couple of times and it dies. :-/

GQRX launches ok, but my RTL-SDR does not appear in the list of things that
can be accessed (closest is RTL-SDR Spectrum server, but I'm not sure if
that's correct....it crashes so I'm guessing not).

It would be really cool if you guys added this stuff to the main homebrew
repo!


screen shot 2015-05-19 at 1 53 11 pm

[image: Inline image 1]

On Tue, May 19, 2015 at 5:57 AM, Charles H. Leggett <
notifications@github.com> wrote:

Thanks for the mention and for looking into HackRF (if you do get a chance
to).

What do you think about us submitting pull requests for Gnuradio and Gqrx
into the main homebrew repository?


Reply to this email directly or view it on GitHub
#32 (comment)
.