[MacPorts] #49919: gr-osmosdr is still broken after rebuilding it more than 3 times.
MacPorts
noreply at macports.org
Mon Dec 7 06:17:10 PST 2015
#49919: gr-osmosdr is still broken after rebuilding it more than 3 times.
-------------------------+-------------------------
Reporter: ton@… | Owner: michaelld@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords:
Port: gr-osmosdr |
-------------------------+-------------------------
Comment (by michaelld@…):
Replying to [comment:6 ton@…]:
> Almost there. Now, when i run anything gnuradio related i get an error
that python cannot import the osmosdr library.
> {{{
> TM-MBP:gr-osmosdr Ton$ osmocom_fft
> Traceback (most recent call last):
> File "/opt/local/bin/osmocom_fft", line 33, in <module>
> import osmosdr
> File "/usr/local/lib/python2.7/site-packages/osmosdr/__init__.py",
line 26, in <module>
> from osmosdr_swig import *
> File "/usr/local/lib/python2.7/site-packages/osmosdr/osmosdr_swig.py",
line 28, in <module>
> _osmosdr_swig = swig_import_helper()
> File "/usr/local/lib/python2.7/site-packages/osmosdr/osmosdr_swig.py",
line 24, in swig_import_helper
> _mod = imp.load_module('_osmosdr_swig', fp, pathname, description)
> ImportError: dlopen(/usr/local/lib/python2.7/site-
packages/osmosdr/_osmosdr_swig.so, 2): Library not loaded: /opt/local/lib
/libgnuradio-runtime.3.7.8.dylib
> Referenced from: /usr/local/lib/python2.7/site-
packages/osmosdr/_osmosdr_swig.so
> Reason: image not found
> }}}
The above means that GR was updated by OSMO was not. Best way to deal with
this is to:
{{{
sudo port uninstall gr-osmosdr
sudo port selfupdate
sudo port upgrade outdated
sudo port install gr-osmosdr
}}}
You might have to force uninstall ('-f') gr-osmosdr.
I'll add in the SOAPYSDR cmake flag when I get a chance. I didn't know
there was a new interface to enable / disable. cmake will find an try to
use libraries / frameworks outside of MacPorts, e.g., in
/Library/Frameworks, /usr/local, and other "common" UNIX or OSX locations.
--
Ticket URL: <https://trac.macports.org/ticket/49919#comment:7>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list