[MacPorts] #53187: gr-osmosdr fails to build on OSX 10.7.5
MacPorts
noreply at macports.org
Wed Jan 4 17:35:42 CET 2017
#53187: gr-osmosdr fails to build on OSX 10.7.5
-------------------------+-----------------------
Reporter: nr0q | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.3.5
Resolution: | Keywords: lion
Port: gr-osmosdr |
-------------------------+-----------------------
Comment (by kencu):
Replying to [comment:7 michaelld]:
> gr-osmosdr does not use type_traits. This file is a legacy include
within boost when BOOST_NO_CXX11_RVALUE_REFERENCES is not defined.
Ah, I see -- that's inside knowledge, to be sure. My 10.7 system is no
longer stock, and has been upgraded to LibcxxOnOlderSystems, but I presume
you mean something like this:
{{{
$ BOOST_NO_CXX11_RVALUE_REFERENCES=1 sudo port -v install gr-osmosdr
}}}
Perhaps the original poster might try that on his stock system...
Here's what I did to install it -- after:
1. installing clang-3.7 and setting that as default compiler
2. fixing the qt4-mac issue as per the comments on this ticket
<https://trac.macports.org/ticket/50481>
3. fixing the wxWidgets issue again
<https://trac.macports.org/ticket/53040>
Overnight, gr-osmosdr did build through to completion without errors:
{{{
$ port -v installed gr-osmosdr
The following ports are currently installed:
gr-osmosdr
@20160622_0+airspy+bladeRF+docs+fcdproplus+hackrf+rtlsdr+sdrplay+soapysdr+swig+uhd
(active) platform='darwin 11' archs='x86_64'
}}}
So that method does work to get it installed.
I should point out, however, that when I tried to actually run it, I got
this:
{{{
$ /opt/local/bin/osmocom_siggen
Traceback (most recent call last):
File "/opt/local/bin/osmocom_siggen", line 23, in <module>
from gnuradio import gr
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/gnuradio/gr/__init__.py", line 56, in <module>
log.add_console_appender(log_file, "gr::log %d :%p: %m%n")
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/gnuradio/gr/runtime_swig.py", line 6984, in
add_console_appender
return _runtime_swig.logger_add_console_appender(self, target,
pattern)
RuntimeError: unterminated conversion specifier in 'gr::log %d :%p: %m%n'
at index -1
}}}
{{{
$ /opt/local/bin/osmocom_siggen_nogui
Traceback (most recent call last):
File "/opt/local/bin/osmocom_siggen_nogui", line 23, in <module>
from gnuradio import gr
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/gnuradio/gr/__init__.py", line 56, in <module>
log.add_console_appender(log_file, "gr::log %d :%p: %m%n")
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/gnuradio/gr/runtime_swig.py", line 6984, in
add_console_appender
return _runtime_swig.logger_add_console_appender(self, target,
pattern)
RuntimeError: unterminated conversion specifier in 'gr::log %d :%p: %m%n'
at index -1
}}}
{{{
$ /opt/local/bin/osmocom_fft
Traceback (most recent call last):
File "/opt/local/bin/osmocom_fft", line 33, in <module>
import osmosdr
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/osmosdr/__init__.py", line 26, in <module>
from osmosdr_swig import *
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/osmosdr/osmosdr_swig.py", line 17, in <module>
_osmosdr_swig = swig_import_helper()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/osmosdr/osmosdr_swig.py", line 16, in swig_import_helper
return importlib.import_module('_osmosdr_swig')
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py",
line 37, in import_module
__import__(name)
ImportError: No module named _osmosdr_swig
}}}
And I'm not sure what this means, if anything.
I hope this helps out the OP.
--
Ticket URL: <https://trac.macports.org/ticket/53187#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list