[Discuss-gnuradio] Problem finding gnuradio libraries on Mac OSX 10.6
From:
Scott Kovaleski
Subject:
[Discuss-gnuradio] Problem finding gnuradio libraries on Mac OSX 10.6
Date:
Sun, 29 Jan 2012 20:53:43 -0600
Hello,
I am very new to gnuradio, and I have been trying to build gnuradio on Mac OSX 10.6.8 on a 2.4 GHz Intel Core Duo Macbook Pro. I tried the Macports gnuradio, and it worked for me, but I couldn't get it to work with UHD which (I think) I need for my B100 USRP.
I installed the dependencies from Macports. I downloaded gnuradio from git into /opt. I run cmake in /opt/gnuradio/build with the following options:
then sudo make, then sudo make test (all but one test passes). Not sure if it's important, but I must use sudo even for cmake and make
When I try to run dial_tone, however, I get the following:
/opt/local/share/gnuradio/examples/audio> ./dial_tone.py Traceback (most recent call last): File "./dial_tone.py", line 24, in <module> from gnuradio import gr File "/opt/local/lib/python2.6/site-packages/gnuradio/gr/__init__.py", line 43, in <module>
from gnuradio_core import * File "/opt/local/lib/python2.6/site-packages/gnuradio/gr/gnuradio_core.py", line 23, in <module> from gnuradio_core_runtime import * File "/opt/local/lib/python2.6/site-packages/gnuradio/gr/gnuradio_core_runtime.py", line 26, in <module>
_gnuradio_core_runtime = swig_import_helper() File "/opt/local/lib/python2.6/site-packages/gnuradio/gr/gnuradio_core_runtime.py", line 22, in swig_import_helper _mod = imp.load_module('_gnuradio_core_runtime', fp, pathname, description)
ImportError: dlopen(/opt/local/lib/python2.6/site-packages/gnuradio/gr/_gnuradio_core_runtime.so, 2): Library not loaded: libgnuradio-core.3.5.2git.dylib Referenced from: /opt/local/lib/python2.6/site-packages/gnuradio/gr/_gnuradio_core_runtime.so
Reason: image not found
When I run gnuradio-companion, I get an error window that says I should check PYTHONPATH and LD_LIBRARY_PATH which are set in my .profile to be the following: